open-mpi / ompi

Open MPI main development repository
https://www.open-mpi.org
Other
2.08k stars 845 forks source link

MPI 4.1 - mpif.h is deprecated #12190

Open hppritcha opened 7 months ago

hppritcha commented 7 months ago

not sure how we would like to handle this but see MPI Forum issue https://github.com/mpi-forum/mpi-issues/issues/561 item 6 in Section B1.2 of the MPI 4.1 standard

devreal commented 7 months ago

We could just place a preprocessor #warning in the header.

jeffhammond commented 5 months ago

There is no standard Fortran preprocessor and whether the non-standard variants are enabled usually depends on the file suffix (.F/F90 are preprocessed, .f/f90 are not). If you add #warning, you'll break the build in some cases.

What you could do is add a check in the compiler wrapper scripts to see if mpif.h is included and warn based on that.