Skip to content

Commit 200e8a3

Browse files
committed
Here how we can use the req_flags to clean the temporary arrays of the
Fortran API. Signed-off-by: George Bosilca <[email protected]>
1 parent c823ffc commit 200e8a3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ompi/mpi/fortran/mpif-h/ialltoallw_f.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,10 @@ void ompi_ialltoallw_f(char *sendbuf, MPI_Fint *sendcounts,
116116
c_recvtypes, c_comm, &c_request);
117117
if (NULL != ierr) *ierr = OMPI_INT_2_FINT(c_ierr);
118118
if (MPI_SUCCESS == c_ierr) *request = PMPI_Request_c2f(c_request);
119+
c_request->req_flags |= OMPI_REQ_NB_RELEASE_DATA;
119120

120121
OMPI_ARRAY_FINT_2_INT_CLEANUP(sendcounts);
121122
OMPI_ARRAY_FINT_2_INT_CLEANUP(sdispls);
122123
OMPI_ARRAY_FINT_2_INT_CLEANUP(recvcounts);
123124
OMPI_ARRAY_FINT_2_INT_CLEANUP(rdispls);
124-
if (NULL != c_sendtypes) {
125-
free(c_sendtypes);
126-
}
127-
free(c_recvtypes);
128125
}

0 commit comments

Comments
 (0)