Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
MPI_Waitsome and MPI_Testsome can actually handle NULL parameter for indices
authorAugustin Degomme <degomme@idpann.imag.fr>
Mon, 8 Jul 2013 12:34:01 +0000 (14:34 +0200)
committerAugustin Degomme <degomme@idpann.imag.fr>
Mon, 8 Jul 2013 12:34:01 +0000 (14:34 +0200)
src/smpi/smpi_pmpi.c

index 1c12d35..25acf31 100644 (file)
@@ -1568,7 +1568,7 @@ int PMPI_Waitsome(int incount, MPI_Request requests[], int *outcount,
   int retval;
 
   smpi_bench_end();
-  if (outcount == NULL || indices == NULL) {
+  if (outcount == NULL) {
     retval = MPI_ERR_ARG;
   } else {
     *outcount = smpi_mpi_waitsome(incount, requests, indices, status);
@@ -1584,7 +1584,7 @@ int PMPI_Testsome(int incount, MPI_Request requests[], int* outcount,
   int retval;
 
    smpi_bench_end();
-   if (outcount == NULL || indices == NULL) {
+   if (outcount == NULL) {
      retval = MPI_ERR_ARG;
    } else {
      *outcount = smpi_mpi_testsome(incount, requests, indices, status);