Skip to content

Commit 6ae31e8

Browse files
authored
doc: MPI Cray
1 parent 25624bc commit 6ae31e8

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,27 @@ re: setting PATH and LD_LIBRARY_PATH if CMake has trouble finding OpenMPI for a
4444

4545
* https://hpc-forge.cineca.it/files/CoursesDev/public/2017/MasterCS/CalcoloParallelo/MPI_Master2017.pdf
4646

47+
### Cray
48+
49+
FindMPI.cmake on Cray defines a rather sparse imported target MPI::MPI_C and MPI::MPI_Fortran like
50+
51+
```
52+
-- Target: MPI::MPI_Fortran properties
53+
-- MPI::MPI_Fortran IMPORTED = TRUE
54+
-- MPI::MPI_Fortran NAME = MPI::MPI_Fortran
55+
-- MPI::MPI_Fortran SYSTEM = ON
56+
-- MPI::MPI_Fortran TYPE = INTERFACE_LIBRARY
57+
58+
-- Target: MPI::MPI_C properties
59+
-- MPI::MPI_C IMPORTED = TRUE
60+
-- MPI::MPI_C NAME = MPI::MPI_C
61+
-- MPI::MPI_C SYSTEM = ON
62+
-- MPI::MPI_C TYPE = INTERFACE_LIBRARY
63+
```
64+
65+
while on most non-Cray platforms the typical properties are also defined: INTERFACE_INCLUDE_DIRECTORIES, INTERFACE_LINK_LIBRARIES, INTERFACE_LINK_OPTIONS.
66+
Also on Cray. these typically defined variables are empty: MPI_Fortran_LIBRARIES, MPI_Fortran_MODULE_DIR, MPI_Fortran_INCLUDE_DIRS, MPI_Fortran_COMPILE_OPTIONS, MPI_Fortran_LINK_FLAGS.
67+
4768
### MPI-3 Fortran
4869

4970
If "mpi_f08.mod" is not found, typically the MPI include directories are also missing.

0 commit comments

Comments
 (0)