ForOpenCL: transformations exploiting array syntax in Fortran for accelerator programming

  • Authors:
  • Matthew J. Sottile;Craig E. Rasmussen;Wayne N. Weseloh;Robert W. Robey;Daniel Quinlan;Jeffrey Overbey

  • Affiliations:
  • Galois, Inc., Portland, OR 97204, USA;Los Alamos National Laboratory, Los Alamos, NM 87545, USA;Los Alamos National Laboratory, Los Alamos, NM 87545, USA;Los Alamos National Laboratory, Los Alamos, NM 87545, USA;Lawrence Livermore National Laboratory, Livermore, CA 94550, USA;National Centre for Supercomputing Applications, Urbana, IL 61801, USA

  • Venue:
  • International Journal of Computational Science and Engineering
  • Year:
  • 2013

Quantified Score

Hi-index 0.00

Visualization

Abstract

Emerging GPU architectures for high performance computing are well suited to a data-parallel programming model. This paper presents preliminary work examining a programming methodology that provides Fortran programmers with access to these emerging systems. We use array constructs in Fortran to show how this infrequently exploited, standardised language feature is easily transformed to lower-level accelerator code. The transformations in ForOpenCL are based on a simple mapping from Fortran to OpenCL. We demonstrate, using a stencil code solving the shallow-water fluid equations, that the performance of the ForOpenCL compiler-generated transformations is comparable with that of hand-optimised OpenCL code.