题目/Title:A Polyhedral Modeling Based Source-to-Source Code Optimization Framework for GPGPU
作者/Author:王晨曦,亢康,朱茂华,邓仰东
Chenxi Wang,Kang Kang,Maohua Zhu,Yangdong Deng
会议/Conference:IPDPSW 2012
地点/Location:Shanghai
年份/Issue Date:2012.21-25 May
页码/pages:pp. 1964 - 1970
摘要/Abstract:
In this paper, we propose a source-to-source code optimization framework for general purpose computing on graphics processing units (GPGPU). Our framework is based on a re-formulation of the polyhedral loop transformation theory under the context of GPGPU. We prove that the number of actual memory transactions can be used as a performance metric to guide the code optimization process. In addition, we show how to analytically derive such a metric from a GPU program’s polyhedral model. We also develop formations of GPGPU-specific optimization problems and propose corresponding affine transformations, which can be applied to an initial parallelized solution derived from input C/C++ code. The experiment results demonstrate the effectiveness of our work. On average, the code generated by our work outperforms a leading GPGPU compiler and NVIDIA handcrafted CUBLAS 4.0 by 20% and 17%, respectively.