1
1
This commit was SVN r3356.
Этот коммит содержится в:
Tim Woodall 2004-10-26 21:46:04 +00:00
родитель 8d48c2113f
Коммит 923ece8537
3 изменённых файлов: 4 добавлений и 11 удалений

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

@ -34,18 +34,11 @@ int MPI_Test(MPI_Request *request, int *completed, MPI_Status *status)
OMPI_ERRHANDLER_CHECK(rc, MPI_COMM_WORLD, rc, FUNC_NAME);
}
if(*request == NULL) {
*completed = 1;
status->MPI_SOURCE = MPI_PROC_NULL;
status->MPI_TAG = MPI_ANY_TAG;
status->MPI_ERROR = MPI_SUCCESS;
status->_count = 0;
return MPI_SUCCESS;
}
rc = ompi_request_test(1, request, &index, completed, status);
rc = ompi_request_test(request, completed, status);
if(*completed < 0) {
*completed = 0;
}
/* JMS: Tim will fix to invoke on the communicator/window/file on
the request (i.e., not COMM_WORLD) */
OMPI_ERRHANDLER_RETURN(rc, MPI_COMM_WORLD, rc, FUNC_NAME);

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

@ -33,7 +33,7 @@ int MPI_Testany(int count, MPI_Request requests[], int *index, int *completed, M
OMPI_ERRHANDLER_CHECK(rc, MPI_COMM_WORLD, rc, FUNC_NAME);
}
rc = ompi_request_test(count, requests, index, completed, status);
rc = ompi_request_test_any(count, requests, index, completed, status);
OMPI_ERRHANDLER_RETURN(rc, MPI_COMM_WORLD, rc, FUNC_NAME);
}

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

@ -36,7 +36,7 @@ int MPI_Testsome(int incount, MPI_Request requests[],
}
/* optimize this in the future */
rc = ompi_request_test(incount, requests, &index, &completed, statuses);
rc = ompi_request_test_any(incount, requests, &index, &completed, statuses);
OMPI_ERRHANDLER_CHECK(rc, MPI_COMM_WORLD, rc, FUNC_NAME);
if(completed) {
*outcount = 1;