sourceryinstitute / OpenCoarrays

A parallel application binary interface for Fortran 2018 compilers.
http://www.opencoarrays.org
BSD 3-Clause "New" or "Revised" License
244 stars 58 forks source link

Compiling Mix MPI Fortran coarray program #725

Closed denisbertini closed 3 years ago

denisbertini commented 3 years ago

Hi While compiling a mixed coarray-MPI test program, the fortran mpi module was not found. Adding the neccessary include from MPI

caf -I/opt/ohpc/pub/mpi/openmpi3-gnu8/3.1.4/lib/ hw.f90 -o hw

solved the issue. Question: why the include is not by default added to the caf wrapper?

caf --show /opt/ohpc/pub/compiler/gcc/8.3.0/bin/gfortran -I/lustre/rz/dbertini/pfort/coarrays/include/OpenCoarrays-2.9.2_GNU-8.3.0 -fcoarray=lib -pthread -Wl,-rpath -Wl,/opt/ohpc/pub/mpi/openmpi3-gnu8/3.1.4/lib -Wl,--enable-new-dtags -pthread ${@} /lustre/rz/dbertini/pfort/coarrays/lib64/libcaf_mpi.a /opt/ohpc/pub/mpi/openmpi3-gnu8/3.1.4/lib/libmpi_usempif08.so /opt/ohpc/pub/mpi/openmpi3-gnu8/3.1.4/lib/libmpi_usempi_ignore_tkr.so /opt/ohpc/pub/mpi/openmpi3-gnu8/3.1.4/lib/libmpi_mpifh.so /opt/ohpc/pub/mpi/openmpi3-gnu8/3.1.4/lib/libmpi.so

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.