The MPI spec says that we are supposed to return an empty status in
the (count==0) case. This commit was SVN r27132.
Этот коммит содержится в:
родитель
20612c4194
Коммит
b08eaae9a2
@ -72,6 +72,7 @@ int MPI_Testany(int count, MPI_Request requests[], int *indx, int *completed, MP
|
||||
if (OPAL_UNLIKELY(0 == count)) {
|
||||
*completed = true;
|
||||
*indx = MPI_UNDEFINED;
|
||||
*status = ompi_status_empty;
|
||||
return MPI_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -71,6 +71,7 @@ int MPI_Waitany(int count, MPI_Request requests[], int *indx, MPI_Status *status
|
||||
|
||||
if (OPAL_UNLIKELY(0 == count)) {
|
||||
*indx = MPI_UNDEFINED;
|
||||
*status = ompi_status_empty;
|
||||
return MPI_SUCCESS;
|
||||
}
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user