1
1

The MPI spec says that we are supposed to return an empty status in

the (count==0) case.

This commit was SVN r27132.
Этот коммит содержится в:
Jeff Squyres 2012-08-24 16:11:29 +00:00
родитель 20612c4194
Коммит b08eaae9a2
2 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -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;
}