Fortran Parallel Examples

cmake oneapi-linux

Examples of parallel runtimes from native Fortran syntax. Fortran coarrays or direct MPI operations are in a separate repo.

Examples include:

  • do concurrent: including Fortran 202x "reduce" syntax supported by NVIDIA HPC SDK and Intel oneAPI
  • OpenACC: directive for Fortran
  • openmp: OpenMP threading examples

OpenMP

macOS users may need to install OpenMP libraries:

brew install libomp

For such a macOS install, tell CMake where OpenMP libraries are by setting environment variable:

export OpenMP_ROOT=/opt/homebrew/opt/libomp