2004-01-29 21:21:55 +03:00
|
|
|
/*
|
|
|
|
* $HEADERS$
|
|
|
|
*/
|
|
|
|
#include "lam_config.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "mpi.h"
|
2004-03-18 20:49:40 +03:00
|
|
|
#include "runtime/runtime.h"
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "mpi/c/bindings.h"
|
2004-03-18 20:49:40 +03:00
|
|
|
#include "mca/pml/pml.h"
|
2004-01-29 21:21:55 +03:00
|
|
|
|
|
|
|
#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES
|
|
|
|
#pragma weak MPI_Waitall = PMPI_Waitall
|
|
|
|
#endif
|
|
|
|
|
2004-04-20 22:50:43 +04:00
|
|
|
#if LAM_PROFILING_DEFINES
|
|
|
|
#include "mpi/c/profile/defines.h"
|
|
|
|
#endif
|
|
|
|
|
2004-03-18 20:49:40 +03:00
|
|
|
|
|
|
|
int MPI_Waitall(int count, MPI_Request *requests, MPI_Status *statuses)
|
|
|
|
{
|
2004-03-26 17:15:20 +03:00
|
|
|
int rc;
|
2004-03-18 20:49:40 +03:00
|
|
|
if ( MPI_PARAM_CHECK ) {
|
2004-03-26 17:15:20 +03:00
|
|
|
rc = MPI_SUCCESS;
|
|
|
|
if ( LAM_MPI_INVALID_STATE ) {
|
2004-03-18 20:49:40 +03:00
|
|
|
rc = MPI_ERR_INTERN;
|
|
|
|
} else if (requests == NULL) {
|
|
|
|
rc = MPI_ERR_REQUEST;
|
|
|
|
}
|
2004-03-26 17:15:20 +03:00
|
|
|
LAM_ERRHANDLER_CHECK(rc, (lam_communicator_t*)NULL, rc, "MPI_Waitall");
|
2004-03-18 20:49:40 +03:00
|
|
|
}
|
2004-03-26 17:15:20 +03:00
|
|
|
rc = mca_pml.pml_wait_all(count, requests, statuses);
|
|
|
|
LAM_ERRHANDLER_RETURN(rc, (lam_communicator_t*)NULL, rc, "MPI_Waitall");
|
2004-01-29 21:21:55 +03:00
|
|
|
}
|
2004-03-18 20:49:40 +03:00
|
|
|
|