Appendix C

CUDA Fortran

Greg Ruetsch and Massimiliano Fatica

Abstract

This appendix introduces CUDA FORTRAN, the FORTRAN language programming interface for CUDA GPU devices. It demonstrates the advantage of FORTRAN multidimensional arrays. It also shows how the generic interfaces and compiler directives can be used to improve performance with minimal programmer effort. It also shows how to achieve asynchronous data transfers in CUDA FORTRAN programs.

Keywords

CUDA FORTRAN; multidimensional array; generic interfaces; directives; asynchronous data transfer

Chapter Outline

Get Programming Massively Parallel Processors, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.