Portable Mapping of Data Parallel Programs to OpenCL for Heterogeneous Systems

被引:0
作者
Grewe, Dominik [1 ]
Wang, Zheng [1 ]
O'Boyle, Michael F. P. [1 ]
机构
[1] Univ Edinburgh, Sch Informat, Edinburgh EH8 9YL, Midlothian, Scotland
来源
PROCEEDINGS OF THE 2013 IEEE/ACM INTERNATIONAL SYMPOSIUM ON CODE GENERATION AND OPTIMIZATION (CGO) | 2013年
关键词
GPU; OpenCL; Machine-Learning Mapping;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
General purpose GPU based systems are highly attractive as they give potentially massive performance at little cost. Realizing such potential is challenging due to the complexity of programming. This paper presents a compiler based approach to automatically generate optimized OpenCL code from data-parallel OpenMP programs for GPUs. Such an approach brings together the benefits of a clear high level language (OpenMP) and an emerging standard (OpenCL) for heterogeneous multi-cores. A key feature of our scheme is that it leverages existing transformations, especially data transformations, to improve performance on GPU architectures and uses predictive modeling to automatically determine if it is worthwhile running the OpenCL code on the GPU or OpenMP code on the multi-core host. We applied our approach to the entire NAS parallel benchmark suite and evaluated it on two distinct GPU based systems: Core i7/NVIDIA GeForce GTX 580 and Core i7/AMD Radeon 7970. We achieved average (up to) speedups of 4.51x and 4.20x (143x and 67x) respectively over a sequential baseline. This is, on average, a factor 1.63 and 1.56 times faster than a hand-coded, GPU-specific OpenCL implementation developed by independent expert programmers.
引用
收藏
页码:161 / 170
页数:10
相关论文
共 25 条
[1]  
AMD, AMD ATI STREAM SDK
[2]  
[Anonymous], 2014, C4. 5: programs for machine learning
[3]  
[Anonymous], 2008, NVIDIA CUDA
[4]  
Baskaran M. M., CC 10
[5]  
Bordawekar R., PACT 10
[6]  
Che S., SC 11
[7]  
Cooper K. D., LCTES 99
[8]  
Danalis Anthony, GPGPU 10
[9]  
Dubach C., PLDI 12
[10]  
Grewe D., CC 11