Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ompi/include/mpif-values.pl
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ sub read_value_from_file {
$handles->{MPI_REQUEST_NULL} = 0;
$handles->{MPI_WIN_NULL} = 0;
$handles->{MPI_MESSAGE_NULL} = 0;
$handles->{MPI_SESSION_NULL} = 0;

$handles->{MPI_BYTE} = 1;
$handles->{MPI_PACKED} = 2;
Expand Down
7 changes: 7 additions & 0 deletions ompi/mpi/fortran/mpif-h/session_finalize_f.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,11 @@ void ompi_session_finalize_f(MPI_Fint *session, MPI_Fint *ierr)

c_ierr = PMPI_Session_finalize(&c_session);
if (NULL != ierr) *ierr = OMPI_INT_2_FINT(c_ierr);

/* This value comes from the MPI_SESSION_NULL value in mpif.h. Do not
change without consulting mpif.h! */

if (MPI_SUCCESS == c_ierr) {
*session = 0;
}
}
1 change: 1 addition & 0 deletions ompi/mpi/fortran/use-mpi-f08/mod/mpi-f08-types.F90
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ module mpi_f08_types
type(MPI_Request), parameter :: MPI_REQUEST_NULL = MPI_Request(OMPI_MPI_REQUEST_NULL)
type(MPI_Win), parameter :: MPI_WIN_NULL = MPI_Win(OMPI_MPI_WIN_NULL)
type(MPI_File), parameter :: MPI_FILE_NULL = MPI_File(OMPI_MPI_FILE_NULL)
type(MPI_Session), parameter :: MPI_SESSION_NULL = MPI_Session(OMPI_MPI_SESSION_NULL)

!
! Pre-defined datatype bindings
Expand Down