r26138 provided quick returns for count==0 for
[test|wait][all|any|some]. Here, set output values as well. http://www.open-mpi.org/community/lists/users/2012/03/18790.php This commit was SVN r26156. The following SVN revision numbers were found above: r26138 --> open-mpi/ompi@1e92bc0fd1
Этот коммит содержится в:
родитель
135ac32b64
Коммит
e1f5c0125f
@ -67,6 +67,7 @@ int MPI_Testall(int count, MPI_Request requests[], int *flag,
|
||||
}
|
||||
|
||||
if (OPAL_UNLIKELY(0 == count)) {
|
||||
*flag = true;
|
||||
return MPI_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -67,6 +67,8 @@ int MPI_Testany(int count, MPI_Request requests[], int *indx, int *completed, MP
|
||||
}
|
||||
|
||||
if (OPAL_UNLIKELY(0 == count)) {
|
||||
*completed = true;
|
||||
*indx = MPI_UNDEFINED;
|
||||
return MPI_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -69,6 +69,7 @@ int MPI_Testsome(int incount, MPI_Request *requests,
|
||||
}
|
||||
|
||||
if (OPAL_UNLIKELY(0 == incount)) {
|
||||
*outcount = MPI_UNDEFINED;
|
||||
return OMPI_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -67,6 +67,7 @@ int MPI_Waitany(int count, MPI_Request *requests, int *indx, MPI_Status *status)
|
||||
}
|
||||
|
||||
if (OPAL_UNLIKELY(0 == count)) {
|
||||
*indx = MPI_UNDEFINED;
|
||||
return MPI_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -69,6 +69,7 @@ int MPI_Waitsome(int incount, MPI_Request *requests,
|
||||
}
|
||||
|
||||
if (OPAL_UNLIKELY(0 == incount)) {
|
||||
*outcount = MPI_UNDEFINED;
|
||||
return MPI_SUCCESS;
|
||||
}
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user