An Optimizing Compiler for GPGPU Programs with Input-Data Sharing

被引:4
作者
Yang, Yi [1 ]
Xiang, Ping [2 ]
Kong, Jingfei [2 ]
Zhou, Huiyang [1 ]
机构
[1] N Carolina State Univ, Dept ECE, Raleigh, NC 27695 USA
[2] Univ Cent Florida, Sch EECS, Orlando, FL 32816 USA
关键词
Performance; Experimentation; Languages; GPGPU; Compiler;
D O I
10.1145/1837853.1693505
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Developing high performance GPGPU programs is challenging for application developers since the performance is dependent upon how well the code leverages the hardware features of specific graphics processors. To solve this problem and relieve application developers of low-level hardware-specific optimizations, we introduce a novel compiler to optimize GPGPU programs. Our compiler takes a naive GPU kernel function, which is functionally correct but without any consideration for performance optimization. The compiler then analyzes the code, identifies memory access patterns, and generates optimized code. The proposed compiler optimizations target at one category of scientific and media processing algorithms, which has the characteristics of input-data sharing when computing neighboring output pixels/elements. Many commonly used algorithms, such as matrix multiplication, convolution, etc., share such characteristics. For these algorithms, novel approaches are proposed to enforce memory coalescing and achieve effective data reuse. Data prefetching and hardware-specific tuning are also performed automatically with our compiler framework. The experimental results based on a set of applications show that our compiler achieves very high performance, either superior or very close to the highly fine-tuned library, NVIDIA CUBLAS 2.1.
引用
收藏
页码:343 / 344
页数:2
相关论文
共 2 条
  • [1] LEE SI, 2003, CETUS EXTENSIBLE COM
  • [2] Stratton J.A., 2008, MCUDA EFFICIENT IMPL