首页> 外文会议>Euromicro International Conference on Parallel, Distributed, and Network-Based Processing >An OpenACC Optimizer for Accelerating Histogram Computation on a GPU
【24h】

An OpenACC Optimizer for Accelerating Histogram Computation on a GPU

机译:用于在GPU上加速直方图计算的OpenACC优化器

获取原文
获取外文期刊封面目录资料

摘要

This paper presents a source-to-source OpenACC optimizer that automatically optimizes a histogram computation code for a graphics processing unit (GPU). Parallel histogram computation codes typically deploy multiple copies of histograms and update them with atomic operations. This duplication method can be implemented as an OpenACC code. However, the structure of sequential code blocks must be manually rewritten owing to the limitation on OpenACC directives. Such a rewritten code does not always achieve the highest performance on arbitrary platforms, and thus, the duplication method degrades the performance portability of the code. To tackle this issue, we propose an optimizer that identifies histogram-related blocks in a naive OpenACC code and automatically rewrites the detected blocks such that multiple copies of histograms can be exploited for acceleration. In experiments, we apply our optimizer to three practical applications and investigate their performance on three platforms: an NVIDIA GPU, an AMD GPU and an Intel CPU. Experimental results show that our automated approach is useful for OpenACC codes to maximize the performance of histogram computation, and thereby enhancing the performance portability of the code.
机译:本文介绍了一种源到源的OpenACC优化器,该优化器可自动优化图形处理单元(GPU)的直方图计算代码。并行直方图计算代码通常会部署多个直方图副本,并使用原子操作对其进行更新。可以将这种复制方法实现为OpenACC代码。但是,由于OpenACC指令的限制,必须手动重写顺序代码块的结构。这样的重写代码在任何平台上都无法始终获得最高性能,因此,复制方法会降低代码的性能可移植性。为解决此问题,我们提出了一种优化器,该优化器可以在朴素的OpenACC代码中识别与直方图相关的块,并自动重写检测到的块,以便可以利用直方图的多个副本进行加速。在实验中,我们将优化器应用于三个实际应用,并研究了它们在三个平台上的性能:NVIDIA GPU,AMD GPU和Intel CPU。实验结果表明,我们的自动化方法对于OpenACC代码非常有用,可以最大程度地提高直方图计算的性能,从而增强代码的性能可移植性。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号