【24h】

A Directive-Based Data Layout Abstraction for Performance Portability of OpenACC Applications

机译:OpenACC应用程序性能可移植性的基于指令的数据布局抽象

获取原文

摘要

Directive-based programming interfaces such as OpenACC and OpenMP are becoming more prevalent in application development targeting accelerators, in particular when porting existing CPU-only code. Unlike vendor-specific alternatives such as CUDA, they are designed to be portable across different accelerators, and therefore once necessary directives are added to an existing CPU-only code, it can be executed on different accelerator architectures depending on the availability of supporting compilers. However, it does not automatically mean that such code runs efficiently on different architectures, and in fact, architecture-specific coding such as choosing optimal data layouts is almost mandatory for optimal performance, imposing a significant burden if implemented manually. Towards realizing performance portability in accelerator programming, we propose a set of extended directives that allow the programmer to optimize data layouts for a given accelerator without modifying original program code. Unlike the manual approach, the code change is confined in the directives with the original code kept as it is. This paper evaluates the effectiveness of our proposed extensions in the OpenACC standard by extending UPACS and CCS-QCD OpenACC applications. A prototype source-to-source translator for the extensions achieves 123% and 120% of the baseline performance, respectively, which are comparable to manually tuned versions.
机译:基于指令的编程接口(例如OpenACC和OpenMP)在面向加速器的应用程序开发中变得越来越普遍,尤其是在移植现有的仅CPU代码时。与诸如CUDA之类的特定于供应商的替代产品不同,它们被设计为可跨不同的加速器移植,因此,一旦将必要的指令添加到现有的仅CPU代码中,即可根据支持的编译器的可用性在不同的加速器体系结构上执行该指令。但是,这并不意味着这些代码可以在不同的体系结构上高效运行,实际上,特定于体系结构的编码(例如选择最佳数据布局)对于实现最佳性能几乎是必不可少的,如果手动实施,则会带来巨大的负担。为了实现加速器编程中的性能可移植性,我们提出了一组扩展指令,这些指令允许程序员在不修改原始程序代码的情况下优化给定加速器的数据布局。与手动方法不同,代码更改被限制在指令中,并且原始代码保持原样。本文通过扩展UPACS和CCS-QCD OpenACC应用程序,评估了我们在OpenACC标准中提出的扩展的有效性。用于扩展的原型源到源转换器分别达到基准性能的123%和120%,与手动调整的版本相当。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号