Preprints
https://doi.org/10.5194/egusphere-2026-3844
https://doi.org/10.5194/egusphere-2026-3844
19 Aug 2026
 | 19 Aug 2026
Status: this preprint is open for discussion and under review for Geoscientific Model Development (GMD).

PSyclone 3: A source-to-source Fortran compiler for developing maintainable and performance-portable HPC applications

Rupert William Ford, Aidan Bernard Gerard Chalk, Joerg Henrichs, Iva Kavcic, Christopher Maynard, Andrew Robert Porter, and Sergi Siso

Abstract. PSyclone is a source-to-source Fortran compiler designed to programmatically optimize, parallelize, and instrument HPC applications via user-provided transformation scripts. These scripts allow for a clear separation of concerns between the scientific model, described in Fortran, and the optimization choices. This separation improves the maintainability of complex scientific applications by enabling independent exploration and development of each aspect. In addition, it provides a solution to achieve better performance portability for Fortran applications by encoding the transformations that are beneficial to each platform and compiler in different transformation scripts.

PSyclone supports two modes of operation. The first mode optimizes existing source code, including MPI-based applications, by making the necessary code transformations to effectively use the capabilities and programming models supported by each CPU and GPU vendor. This approach is demonstrated using a benchmark extracted from the NEMO ocean model. The second mode defines a kernel-based parallelism model with domain-specific Fortran-embedded metadata. This approach enables a stricter separation of concerns, thereby allowing PSyclone to take full control of the data dependencies and iteration spaces in order to improve its capabilities and generate distributed and shared-memory parallelism. This approach has been co-designed with the Met Office and is used in the Finite-Element based dynamical core of the LFRic atmospheric model.

Competing interests: David Ham (editor) was an investigator on the original Gung-Ho project that saw the inception of the PSyclone software described in this work.

Publisher's note: Copernicus Publications remains neutral with regard to jurisdictional claims made in the text, published maps, institutional affiliations, or any other geographical representation in this paper. While Copernicus Publications makes every effort to include appropriate place names, the final responsibility lies with the authors. Views expressed in the text are those of the authors and do not necessarily reflect the views of the publisher.
Share
Rupert William Ford, Aidan Bernard Gerard Chalk, Joerg Henrichs, Iva Kavcic, Christopher Maynard, Andrew Robert Porter, and Sergi Siso

Status: open (until 14 Oct 2026)

Comment types: AC – author | RC – referee | CC – community | EC – editor | CEC – chief editor | : Report abuse
Rupert William Ford, Aidan Bernard Gerard Chalk, Joerg Henrichs, Iva Kavcic, Christopher Maynard, Andrew Robert Porter, and Sergi Siso
Rupert William Ford, Aidan Bernard Gerard Chalk, Joerg Henrichs, Iva Kavcic, Christopher Maynard, Andrew Robert Porter, and Sergi Siso
Metrics will be available soon.
Latest update: 19 Aug 2026
Download
Short summary
High-performance computing underpins numerical simulation of Earth systems. This technology is evolving faster than the numerical models themselves. Ensuring those models are able to use the latest technology is then very difficult for the domain scientists who develop and maintain them. PSyclone is a tool that enables a separation of concerns between the science and performance aspects of a model. We describe its use with the Met Office's new LFRic atmosphere model and the NEMO ocean model.
Share