The Community for Technology Leaders
Proceedings of the 2013 IEEE/ACM International Symposium on Code Generation and Optimization (CGO) (2013)
Shenzhen, China China
Feb. 23, 2013 to Feb. 27, 2013
ISBN: 978-1-4673-5524-7
pp: 1-10
B. Ren , Dept. of Comput. Sci. & Eng., Ohio State Univ., Columbus, OH, USA
G. Agrawal , Dept. of Comput. Sci. & Eng., Ohio State Univ., Columbus, OH, USA
ABSTRACT
Fine-grained data parallelism is increasingly common in mainstream processors in the form of longer vectors and on-chip GPUs. This paper develops support for exploiting such data parallelism for a class of non-numeric, non-graphic applications, which perform computations while traversing many independent, irregular data structures. While the traversal of any one irregular data structure does not give opportunity for parallelization, traversing a set of these does. However, mapping such parallelism to SIMD units is nontrivial and not addressed in prior work. We address this problem by developing an intermediate language for specifying such traversals, followed by a run-time scheduler that maps traversals to SIMD units. A key idea in our run-time scheme is converting branches to arithmetic operations, which then allows us to use SIMD hardware. In order to make our approach fast, we demonstrate several optimizations including a stream compaction method that aids with control flow in SIMD, a set of layouts that reduce memory latency, and a tiling approach that enables more effective prefetching. Using our approach, we demonstrate significant increases in single-core performance over optimized baselines for two applications.
INDEX TERMS
Indexes, Data structures, Parallel processing, Vegetation, Compaction, Layout, Decision trees,SIMD, Irregular Data Structure, Fine Grained Parallelism
CITATION
B. Ren, G. Agrawal, J. R. Larus, T. Mytkowicz, T. Poutanen, W. Schulte, "SIMD parallelization of applications that traverse irregular data structures", Proceedings of the 2013 IEEE/ACM International Symposium on Code Generation and Optimization (CGO), vol. 00, no. , pp. 1-10, 2013, doi:10.1109/CGO.2013.6494989
175 ms
(Ver 3.3 (11022016))