4.3 Article

PyCUDA and PyOpenCL: A scripting-based approach to GPU run-time code generation

Journal

PARALLEL COMPUTING
Volume 38, Issue 3, Pages 157-174

Publisher

ELSEVIER
DOI: 10.1016/j.parco.2011.09.001

Keywords

GPU; Many-core; Code generation; Automated tuning; Software engineering; High-level languages; Massive parallelism; Single-instruction multiple-data; CUDA; OpenCL

Funding

  1. Ohio State University
  2. Ohio Supercomputer Center

Ask authors/readers for more resources

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, CPU run-time code generation (RTCG), along with PyCUDA and PyOpenCL, two open-source tool-kits that supports 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 CPU 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. (C) 2011 Elsevier B.V. All rights

Authors

I am an author on this paper
Click your name to claim this paper and add it to your profile.

Reviews

Primary Rating

4.3
Not enough ratings

Secondary Ratings

Novelty
-
Significance
-
Scientific rigor
-
Rate this paper

Recommended

No Data Available
No Data Available