Browse Source

mpi/src/starpu_mpi.c: just test value returned by MPI_Test is not zero

Nathalie Furmento 12 years ago
parent
commit
f7d7b4390f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mpi/src/starpu_mpi.c

+ 1 - 1
mpi/src/starpu_mpi.c

@@ -655,7 +655,7 @@ static void _starpu_mpi_handle_request_termination(struct _starpu_mpi_req *req)
 				MPI_Status status;
 				MPI_Status status;
 				int flag;
 				int flag;
 				MPI_Test(&req->size_req, &flag, &status);
 				MPI_Test(&req->size_req, &flag, &status);
-				STARPU_ASSERT(flag == 1);
+				STARPU_ASSERT(flag);
 			}
 			}
 			if (req->request_type == RECV_REQ)
 			if (req->request_type == RECV_REQ)
 				// req->ptr is freed by starpu_handle_unpack_data
 				// req->ptr is freed by starpu_handle_unpack_data