arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 0911.3456cs.DCcs.SE
收藏

PyCUDA和PyOpenCL:一种基于脚本的GPU运行时间代码生成方法

PyCUDA and PyOpenCL: A Scripting-Based Approach to GPU Run-Time Code Generation

Andreas Klöckner, Nicolas Pinto, Yunsup Lee, Bryan Catanzaro, Paul Ivanov, Ahmed Fasih

摘要:

高性能计算最近在异构系统中引起了极大的兴趣,重点是现代图形处理单元(GPU)。这些器件在计算科学的重要大规模应用中提供了巨大的性能和效率潜力。然而,利用这种潜力可能具有挑战性,因为人们必须适应GPU目前所展示的专业和快速发展的计算环境。应对这一挑战的方法之一是采用更好的技术,开发适合他们需求的工具。本文介绍了一种简单的技术,GPU运行时间代码生成(RTCG),以及支持该技术的两个开源工具包PyCUDA和PyOpenCL。在介绍PyCUDA和PyOpenCL时,本文提出将动态的高级脚本语言与GPU的巨大性能相结合,作为一个引人注目的双层计算平台,与传统的单层静态系统相比,可能提供显着的性能和生产力优势。RTCG的概念很简单,很容易使用现有的强大基础设施实现。尽管如此,它仍然足够强大,可以支持(和鼓励)用户创建定制的特定于应用程序的工具。本文的前提是说明了广泛的例子,该技术已被应用,取得了相当大的成功。

英文摘要:

High-performance computing has recently seen a surge of interest in heterogeneous systems, with an emphasis on modern Graphics Processing Units (GPUs). These devices offer tremendous potential for performance and efficiency in important large-scale applications of computational science. However, exploiting this potential can be challenging, as one must adapt to the specialized and rapidly evolving computing environment currently exhibited by GPUs. One way of addressing this challenge is to embrace better techniques and develop tools tailored to their needs. This article presents one simple technique, GPU run-time code generation (RTCG), along with PyCUDA and PyOpenCL, two open-source toolkits that support this technique. In introducing PyCUDA and PyOpenCL, this article proposes the combination of a dynamic, high-level scripting language with the massive performance of a GPU as a compelling two-tiered computing platform, potentially offering significant performance and productivity advantages over conventional single-tier, static systems. The concept of RTCG is simple and easily implemented using existing, robust infrastructure. Nonetheless it is powerful enough to support (and encourage) the creation of custom application-specific tools by its users. The premise of the paper is illustrated by a wide range of examples where the technique has been applied with considerable success.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑