DocumentCode
1799869
Title
Locality-Aware Mapping of Nested Parallel Patterns on GPUs
Author
Hyoukjoong Lee ; Brown, Kevin J. ; Sujeeth, Arvind K. ; Rompf, Tiark ; Olukotun, Kunle
Author_Institution
Stanford Univ., Stanford, CA, USA
fYear
2014
fDate
13-17 Dec. 2014
Firstpage
63
Lastpage
74
Abstract
Recent work has explored using higher level languages to improve programmer productivity on GPUs. These languages often utilize high level computation patterns (e.g., Map and Reduce) that encode parallel semantics to enable automatic compilation to GPU kernels. However, the problem of efficiently mapping patterns to GPU hardware becomes significantly more difficult when the patterns are nested, which is common in non-trivial applications. To address this issue, we present a general analysis framework for automatically and efficiently mapping nested patterns onto GPUs. The analysis maps nested patterns onto a logical multidimensional domain and parameterizes the block size and degree of parallelism in each dimension. We then add GPU-specific hard and soft constraints to prune the space of possible mappings and select the best mapping. We also perform multiple compiler optimizations that are guided by the mapping to avoid dynamic memory allocations and automatically utilize shared memory within GPU kernels. We compare the performance of our automatically selected mappings to hand-optimized implementations on multiple benchmarks and show that the average performance gap on 7 out of 8 benchmarks is 24%. Furthermore, our mapping strategy outperforms simple 1D mappings and existing 2D mappings by up to 28.6x and 9.6x respectively.
Keywords
graphics processing units; optimising compilers; parallel processing; shared memory systems; 1D mapping; 2D mapping; GPU hardware; GPU kernels; GPU-specific hard constraints; GPU-specific soft constraints; block size parameterization; compiler optimizations; general analysis framework; high level computation patterns; higher level languages; locality-aware mapping; logical multidimensional domain; nested parallel pattern; parallel semantics encoding; parallelism degree; pattern mapping; shared memory; Graphics processing units; Hardware; Instruction sets; Kernel; Optimization; Parallel processing; Programming;
fLanguage
English
Publisher
ieee
Conference_Titel
Microarchitecture (MICRO), 2014 47th Annual IEEE/ACM International Symposium on
Conference_Location
Cambridge
ISSN
1072-4451
Type
conf
DOI
10.1109/MICRO.2014.23
Filename
7011378
Link To Document