Title :
Improving Performance of GPU Specific OpenCL Program on CPUs
Author :
Qiang Lan ; Changqing Xun ; Mei Wen ; Huayou Su ; Lifang Liu ; Chunyuan Zhang
Author_Institution :
Comput. Coll., Nat. Univ. of Defense Technol., Changsha, China
Abstract :
OpenCL provides unified programming interface for various parallel computing platforms. The OpenCL framework manifests good functional portability, the programs can be run on platforms supporting OpenCL programming without any modification. However, most of the OpenCL programs are optimized for massively parallel processors, such as GPU, it´s hard to achieve good performance on general multi-core processors without sophisticate modification to the GPU specific OpenCL programs. The major reason is the immense gap between CPU and GPU architecture. In this paper, we evaluate the performance portability of OpenCL programs between CPU and GPU, and analyse the reasons why GPU specific OpenCL programs are not fit for CPU. Based on the profiling, we proposed three optimization strategies for improving performance of GPU specific OpenCL programs on CPU, including increasing the granularity of task partition, optimizing the usage of memory hierarchy and block-based data accessing. In addition, we applied the proposed techniques on several benchmarks. The experimental results show that the performance of the optimized OpenCL programs achieve high performance in terms of speedup ratio from 2 to 4 on CPUs, when compared with their corresponding GPU specific ones.
Keywords :
graphics processing units; multiprocessing programs; optimisation; parallel programming; software performance evaluation; software portability; CPU architecture; GPU specific OpenCL program performance improvement; OpenCL program portability performance evaluation; block-based data access; functional portability; massively parallel processors; memory hierarchy usage optimization strategies; parallel computing platforms; profiling; task partition granularity; unified programming interface; Benchmark testing; Computational modeling; Computer architecture; Graphics processing units; Optimization; Programming; GPU specific; OpenCL; functional portability; performance portability;
Conference_Titel :
Parallel and Distributed Computing, Applications and Technologies (PDCAT), 2012 13th International Conference on
Conference_Location :
Beijing
Print_ISBN :
978-0-7695-4879-1
DOI :
10.1109/PDCAT.2012.81