Can Fortran's `do concurrent' replace directives for accelerated computing?
Here you will find the supplementary data for the publication:
Can Fortran's `do concurrent' replace directives for accelerated computing? M.M. Stulajter, R.M. Caplan, and J.A. Linker.
In preperation. (2021).
Abstract ▼.
[PDF - coming soon].
Recently, there has been growing interest in using standard language constructs (e.g. C++'s Parallel Algorithms and Fortran's {\tt do concurrent}) for accelerated computing as an alternative to directive based APIs (e.g. OpenMP and OpenACC). These constructs have the potential to be more portable, and some compilers already (or have plans to) support such standards.
Here, we look at the current capabilities, portability, and performance of replacing directives with Fortran's {\tt do concurrent} using a miniapp that currently implements OpenACC for GPU-acceleration and OpenMP for multi-core CPU parallelism. We replace as many directives as possible with {\tt do concurrent}, testing various configurations and compiler options within three major compilers: GNU's {\tt gfortran}, NVIDIA's {\tt nvfortran}, and Intel's {\tt ifort}.
We find that with the right compiler versions and flags, many directives can be replaced without loss of performance or portability, and, in the case of {\tt nvfortran}, they can all be replaced. We discuss limitations that may apply to more complicated codes, and future language additions that may mitigate them.
Singularity containers are publicly provided to allow the results to be reproduced.
Click the link below to download the reproducibility package containing all source codes, run inputs, and singularity containers needed to reproduce the results in the paper.