Fix the request free problem

This commit is contained in:
Alejandro Gallo 2022-08-08 18:28:51 +02:00
parent 8c04280a65
commit f06cd7f562
2 changed files with 10 additions and 3 deletions

1
.gitignore vendored
View File

@ -24,3 +24,4 @@ config.mk
/docs/doxygen-awesome-css/ /docs/doxygen-awesome-css/
/atrip.html /atrip.html
/TAGS /TAGS
/config.h.in

View File

@ -444,10 +444,16 @@ void unwrapAndMarkReady() {
WITH_RANK << "__slice__:mpi: waiting " << "\n"; WITH_RANK << "__slice__:mpi: waiting " << "\n";
#endif #endif
const int errorCode = MPI_Wait(&request, &status); const int errorCode = MPI_Wait(&request, &status);
if (MPI_SUCCESS != MPI_Request_free(&request))
throw "Error freeing MPI request"; // FIXME: it appears not to work to free
// this request, investigate if this is necessary or not
//const auto _mpi_request_free = MPI_Request_free(&request);
//if (MPI_SUCCESS != _mpi_request_free)
//throw "Atrip: Error freeing MPI request";
if (errorCode != MPI_SUCCESS) if (errorCode != MPI_SUCCESS)
throw "MPI ERROR HAPPENED...."; throw "Atrip: Unexpected error MPI ERROR";
#if defined(HAVE_CUDA) #if defined(HAVE_CUDA)
// copy the retrieved mpi data to the device // copy the retrieved mpi data to the device