From: Augustin Degomme Date: Tue, 10 Dec 2019 18:50:24 +0000 (+0100) Subject: MPI_STATUS_IGNORE = null, actually. X-Git-Tag: v3.25~298 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/9bf0062a4b17bca6198012d9b303548baa8365c0 MPI_STATUS_IGNORE = null, actually. --- diff --git a/src/smpi/bindings/smpi_pmpi_file.cpp b/src/smpi/bindings/smpi_pmpi_file.cpp index 7d3bfdb4cf..ca7484ff36 100644 --- a/src/smpi/bindings/smpi_pmpi_file.cpp +++ b/src/smpi/bindings/smpi_pmpi_file.cpp @@ -29,7 +29,6 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(smpi_pmpi); CHECK_BUFFER(2, buf, count) \ CHECK_COUNT(3, count) \ CHECK_TYPE(4, datatype) \ - CHECK_NULL(5, MPI_ERR_ARG, status) #define CHECK_FILE_INPUT_OFFSET \ CHECK_FILE(1, fh) \ @@ -37,7 +36,6 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(smpi_pmpi); CHECK_OFFSET(3, offset) \ CHECK_COUNT(4, count) \ CHECK_TYPE(5, datatype) \ - CHECK_NULL(6, MPI_ERR_ARG, status) extern MPI_Errhandler SMPI_default_File_Errhandler; diff --git a/src/smpi/mpi/smpi_file.cpp b/src/smpi/mpi/smpi_file.cpp index c743cf9b89..966a5fc30d 100644 --- a/src/smpi/mpi/smpi_file.cpp +++ b/src/smpi/mpi/smpi_file.cpp @@ -143,7 +143,8 @@ namespace smpi{ fh->file_->seek(position+movesize, SEEK_SET); } XBT_VERB("Position after read in MPI_File %s : %llu",fh->file_->get_path(), fh->file_->tell()); - status->count=count*datatype->size(); + if(status != MPI_STATUS_IGNORE) + status->count=count*datatype->size(); return MPI_SUCCESS; } @@ -202,7 +203,8 @@ namespace smpi{ fh->file_->seek(position+movesize, SEEK_SET); } XBT_VERB("Position after write in MPI_File %s : %llu",fh->file_->get_path(), fh->file_->tell()); - status->count=count*datatype->size(); + if(status != MPI_STATUS_IGNORE) + status->count=count*datatype->size(); return MPI_SUCCESS; }