Skip to main content
U.S. Department of Energy
Office of Scientific and Technical Information

Experiences with High-Level Programming Directives for Porting Applications to GPUs. In: Facing the Multicore--Challenge II, Lecture Notes in Computer Science.

Book ·

HPC systems now exploit GPUs within their compute nodes to accelerate program performance. As a result, high-end application development has become extremely complex at the node level. In addition to restructuring the node code to exploit the cores and specialized devices, the programmer may need to choose a programming model such as OpenMP or CPU threads in conjunction with an accelerator programming model to share and manage the different node resources. This comes at a time when programmer productivity and the ability to produce portable code has been recognized as a major concern. In order to offset the high development cost of creating CUDA or OpenCL kernels, directives have been proposed for programming accelerator devices, but their implications are not well known. In this paper, we evaluate the state of the art accelerator directives to program several applications kernels, explore transformations to achieve good performance, and examine the expressivity and performance penalty of using high-level directives versus CUDA. We also compare our results to OpenMP implementations to understand the benefits of running the kernels in the accelerator versus CPU cores.

Research Organization:
Oak Ridge National Laboratory (ORNL), Oak Ridge, TN (United States). Oak Ridge Leadership Computing Facility (OLCF); Oak Ridge National Laboratory (ORNL), Oak Ridge, TN (United States)
Sponsoring Organization:
USDOE Office of Science; USDOE
DOE Contract Number:
AC05-00OR22725
OSTI ID:
1567520
Country of Publication:
United States
Language:
English

References (4)

Frameworks for GPU Accelerators: A comprehensive evaluation using 2D/3D image registration conference June 2011
Terascale direct numerical simulations of turbulent combustion using S3D journal January 2009
Language and Compiler Design for Streaming Applications journal June 2005
hi CUDA : a high-level directive-based language for GPU programming conference January 2009