Coarray Fortran

Coarray Fortran
Paradigmmulti-paradigm: parallel, message passing, imperative (procedural, object-oriented), structured
Designed byRobert Numrich and John Reid
DeveloperPL22.3 Fortran Committee
Stable release
Fortran 2008 (ISO/IEC 1539-1:2010)
Typing disciplinestrong, static
OSCross-platform
Major implementations
Cray, g95, GNU Fortran, Intel Fortran Compiler, Rice CAF 2.0, OpenUH, NAG Fortran Compiler
Influenced by
Fortran

Coarray Fortran (CAF), formerly known as F--, started as an extension of Fortran 95/2003 for parallel processing created by Robert Numrich and John Reid in the 1990s. The Fortran 2008 standard (ISO/IEC 1539-1:2010) now includes coarrays (spelled without hyphen), as decided at the May 2005 meeting of the ISO Fortran Committee; the syntax in the Fortran 2008 standard is slightly different from the original CAF proposal.

A CAF program is interpreted as if it were replicated a number of times and all copies were executed asynchronously. Each copy has its own set of data objects and is termed an image. The array syntax of Fortran is extended with additional trailing subscripts in square brackets to provide a concise representation of references to data that is spread across images.

The CAF extension was implemented in some Fortran compilers such as those from Cray (since release 3.1). Since the inclusion of coarrays in the Fortran 2008 standard, the number of implementations is growing. The first open-source compiler which implemented coarrays as specified in the Fortran 2008 standard for Linux architectures is G95. Currently, GNU Fortran provides wide coverage of Fortran's coarray features in single- and multi-image configuration (the latter based on the OpenCoarrays library). Another implementation of coarrays and related parallel extensions from Fortran 2008 is available in the OpenUH compiler (a branch of Open64) developed at the University of Houston.