Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
as MPI_Iprobe always use a 0-sized request, do not check if this size is different...
authorAugustin Degomme <degomme@idpann.imag.fr>
Mon, 5 Nov 2012 10:18:29 +0000 (11:18 +0100)
committerAugustin Degomme <degomme@idpann.imag.fr>
Mon, 5 Nov 2012 10:18:29 +0000 (11:18 +0100)
src/smpi/smpi_base.c

index 29b8eb7..4d58f24 100644 (file)
@@ -461,10 +461,8 @@ void smpi_mpi_iprobe(int source, int tag, MPI_Comm comm, int* flag, MPI_Status*
     if(status != MPI_STATUS_IGNORE) {
       status->MPI_SOURCE = req->src;
       status->MPI_TAG = req->tag;
-      if(req->size == request->size)
-        status->MPI_ERROR = MPI_SUCCESS;
-      else status->MPI_ERROR = MPI_ERR_TRUNCATE;
-      status->count = request->size;
+      status->MPI_ERROR = MPI_SUCCESS;
+      status->count = req->size;
     }
   }
   else *flag = 0;