An Efficient Approach to Vectorize the Hybrid Breadth-First Search

Chi Zhu,Weixuan Shi,Zhiguang Chen,Nong Xiao,Yutong Lu
DOI: https://doi.org/10.1109/hpcc-smartcity-dss50907.2020.00066
2020-01-01
Abstract:Graph, as a powerful data structure, is widely used in numerous applications. Among plenty of algorithms in graph analysis, Breadth-First Search (BFS) is one of the most basic and important kernels. As the size of the graph increases rapidly, how to speed up the processing remains a meaningful task. Meanwhile, modern processors are commonly equipped with vectorization (Single Instruction Multiple Data, SIMD) processing units, which support processing multiple data elements in a single instruction. These processing units show the potential to accelerate data-intensive applications. In this paper, we evaluate the vectorized implementations of a direction-optimizing BFS, which consists of both the classical top-down and a novel bottom-up methods. We analyze the previous representative implementations, and against the defect and inefficiency they exhibit, we propose a new approach, which features compacting valid data elements in the SIMD vectors and supplementing new input data to replace the invalid ones regularly. Our experiments using the AVX2 instruction set show a maximum speedup of 1.67x on synthetic graphs and 19. 73x on real-world graphs by comparing to the state-of-the-art work.
What problem does this paper attempt to address?