2004-01-29 21:21:55 +03:00
|
|
|
/*
|
|
|
|
* $HEADERS$
|
|
|
|
*/
|
|
|
|
#include "lam_config.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "mpi.h"
|
2004-03-18 23:04:09 +03:00
|
|
|
#include "runtime/runtime.h"
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "mpi/c/bindings.h"
|
2004-03-18 23:04:09 +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_Waitany = PMPI_Waitany
|
|
|
|
#endif
|
|
|
|
|
2004-03-18 23:04:09 +03:00
|
|
|
int MPI_Waitany(int count, MPI_Request *requests, int *index, MPI_Status *status)
|
|
|
|
{
|
|
|
|
if ( MPI_PARAM_CHECK ) {
|
|
|
|
int rc = MPI_SUCCESS;
|
|
|
|
if (lam_mpi_finalized) {
|
|
|
|
rc = MPI_ERR_INTERN;
|
|
|
|
} else if (requests == NULL) {
|
|
|
|
rc = MPI_ERR_REQUEST;
|
|
|
|
}
|
|
|
|
if (rc != MPI_SUCCESS) {
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return mca_pml.pml_wait(count, requests, index, status);
|
2004-01-29 21:21:55 +03:00
|
|
|
}
|
2004-03-18 23:04:09 +03:00
|
|
|
|