Skip to content

EricHardins/fortran-coarray-mpi-examples

Repository files navigation

Fortran Coarray and MPI Examples

cmake intel-oneapi

A few very basic examples, perhaps use to test Coarray and MPI library functionality. GCC/Gfortran, Intel oneAPI, NAG, Cray, IBM XL and other compilers support Fortran 2008 Coarrays.

Free, popular MPI 3.0 interfaces for C and Fortran include:

Build:

cmake -B build
cmake --build build

Run self-tests:

ctest --test-dir build

Message Passing

Pass data between two MPI threads. In this usage, MPI_Recv blocks waiting for MPI_Send

mpirun -np 2 mpi/mpi_pass

Notes

See OpenMPI docs re: setting PATH and LD_LIBRARY_PATH if CMake has trouble finding OpenMPI for a compiler.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •