DocumentCode :
2009199
Title :
On the GPU-CPU Performance Portability of OpenCL for 3D Stencil Computations
Author :
Huayou Su ; Nan Wu ; Mei Wen ; Chunyuan Zhang ; Xing Cai
Author_Institution :
Sch. of Comput., Nat. Univ. of Defense Technol., Changsha, China
fYear :
2013
fDate :
15-18 Dec. 2013
Firstpage :
78
Lastpage :
85
Abstract :
Although OpenCL programming provides full code portability between different hardware platforms, performance portability can be far from satisfactory. In this work, we use a set of representative 3D stencil computations to study OpenCL´s performance portability between GPUs and CPUs. For each stencil computation, we have devised different implementations of the computational kernel function, all being 100% code-portable between the two architectures. The most straightforward and compact implementation gives satisfactory CPU performance but performs poorly on GPUs, because such an implementation hampers effective use of the GPU hardware. By injecting code complexity into the involved loop nests, we can create kernel functions that still have full code portability but with increased performance portability. It is found that spatial data blocking and register reuse can be beneficial for performance on both GPUs and CPUs, whereas use of OpenCL´s local memory (and subsequent temporal blocking) may only have positive effects on GPUs.
Keywords :
graphics processing units; software portability; GPU-CPU performance portability; OpenCL programming; code complexity; full code portability; hardware platforms; representative 3D stencil computations; spatial data blocking; Computer architecture; Graphics processing units; Hardware; Kernel; Programming; Registers; Three-dimensional displays; 3D stencil computation; GPU-CPU; OpenCL; performance portability;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Parallel and Distributed Systems (ICPADS), 2013 International Conference on
Conference_Location :
Seoul
ISSN :
1521-9097
Type :
conf
DOI :
10.1109/ICPADS.2013.23
Filename :
6808160
Link To Document :
بازگشت