Transforming Fortran weather and climate applications to OpenCL using PSyclone
Open Access
- 18 April 2023
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1-8
Abstract
Specialized hardware accelerators have gained popularity in high-performance computing as a way to increase the performance and power efficiency characteristics of the systems. However, a large number of scientific applications running on these systems are written in Fortran, which does not provide a performance-portable vendor-agnostic API to target heterogeneous architectures. In this paper, we use the PSyclone source-to-source code generation and transformation system to automatically translate a subset of the Fortran language to OpenCL for weather and climate applications conforming to the PSyKAl kernel-based parallelism model. This allows Fortran applications to take advantage of the mature accelerator portability and runtime compilation capabilities of OpenCL. However, a direct translation does not always produce optimal code for each device. To improve the performance portability of the generated code, the presented approach also allows application developers to provide a list of additional code transformations needed to make the generated OpenCL kernels appropriate for each target architecture. We tested the system with the NEMOLite2D Fortran application, which produced competitive performance portability results for CPU and GPU platforms from different vendors and provided an initial port of the application to an FPGA system.Keywords
Funding Information
- Horizon 2020 Framework Programme (754337)
This publication has 4 references indexed in Scilit:
- Experiences in porting mini‐applications to OpenACC and OpenMP on heterogeneous systemsConcurrency and Computation: Practice and Experience, 2020
- Evaluating an OpenCL FPGA Platform for HPC: a Case Study with the HACCmk Kernel2018
- OpenCL-Based FPGA Design to Accelerate the Nodal Discontinuous Galerkin Method for Unstructured Meshes2018
- Suitability Analysis of FPGAs for Heterogeneous Platforms in HPCIEEE Transactions on Parallel and Distributed Systems, 2015