-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
f08: move MPI_F08_STATUS[ES]_IGNORE into fortran bindings
Both MPI_F08_STATUS_IGNORE and MPI_F08_STATUSES_IGNORE don't need live in the C Binding since application is not suppose to use them unless the fortran binding is linked. Move them to the fortran binding avoids the linkage dependency on dynamic linker, which appears very fragile and currently does not work on osx. Both symbols are C symbols, thus there is no need to declare them in mpi_f08_link_constants.f90. The original comment -- "Although ..., they are not used in ..." is misleading. The two symbols are for application use, regardless whether implementation use it or not. Define the symbols in mpi.h as external is safe. User is not supposed to use it unless they link with fortran binding, i.e. libmpifort.so, which will resolve the symbol.
- Loading branch information
Showing
3 changed files
with
9 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters