首页> 外文会议>Principles and practice of parallel programming >An Optimizing Compiler for GPGPU Programs with Input-Data Sharing
【24h】

An Optimizing Compiler for GPGPU Programs with Input-Data Sharing

机译:具有输入数据共享功能的GPGPU程序的优化编译器

获取原文

摘要

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.
机译:由于性能取决于代码对特定图形处理器的硬件功能的利用程度,因此开发高性能的GPGPU程序对于应用程序开发人员而言具有挑战性。为解决此问题并使应用程序开发人员不必进行针对特定硬件的低级优化,我们引入了一种新颖的编译器来优化GPGPU程序。我们的编译器采用了天真的GPU内核功能,该功能在功能上是正确的,但不考虑性能优化。然后,编译器分析代码,识别内存访问模式,并生成优化的代码。所提出的编译器优化针对一类科学和媒体处理算法,该算法具有计算相邻输出像素/元素时输入数据共享的特征。许多常用的算法(例如矩阵乘法,卷积等)共享此类特征。对于这些算法,提出了新颖的方法来强制执行存储器合并并实现有效的数据重用。数据预取和特定于硬件的调整也可以通过我们的编译器框架自动执行。基于一组应用程序的实验结果表明,我们的编译器可达到非常高的性能,无论是优于或非常接近经过高度微调的库NVIDIA CUBLAS 2.1。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号