ForOpenCL: Transformations Exploiting Array Syntax in Fortran for Accelerator Programming
Galois, Inc., Portland, OR 97204
arXiv:1107.2157v1 [cs.PL] (11 Jul 2011)
@article{2011arXiv1107.2157S,
author={Sottile}, M.~J. and {Rasmussen}, C.~E and {Weseloh}, W.~N. and {Robey}, R.~W. and {Quinlan}, D. and {Overbey}, J.},
title={"{ForOpenCL: Transformations Exploiting Array Syntax in Fortran for Accelerator Programming}"},
journal={ArXiv e-prints},
archivePrefix={"arXiv"},
eprint={1107.2157},
primaryClass={"cs.PL"},
keywords={Computer Science – Programming Languages},
year={2011},
month={jul},
adsurl={http://adsabs.harvard.edu/abs/2011arXiv1107.2157S},
adsnote={Provided by the SAO/NASA Astrophysics Data System}
}
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, standardized 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-optimized OpenCL code.
July 14, 2011 by hgpu