2004-01-30 00:42:40 +03:00
|
|
|
/*
|
|
|
|
* $HEADERS$
|
|
|
|
*/
|
|
|
|
#include "lam_config.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "mpi.h"
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "runtime/runtime.h"
|
|
|
|
#include "mpi/c/bindings.h"
|
|
|
|
#include "mca/pml/pml.h"
|
2004-03-17 20:28:11 +03:00
|
|
|
|
2004-01-30 00:42:40 +03:00
|
|
|
|
|
|
|
#if LAM_HAVE_WEAK_SYMBOLS && LAM_PROFILING_DEFINES
|
|
|
|
#pragma weak MPI_Start = PMPI_Start
|
|
|
|
#endif
|
|
|
|
|
2004-03-17 20:28:11 +03:00
|
|
|
int MPI_Start(MPI_Request *request)
|
|
|
|
{
|
|
|
|
if ( MPI_PARAM_CHECK ) {
|
|
|
|
int rc = MPI_SUCCESS;
|
|
|
|
if (lam_mpi_finalized) {
|
|
|
|
rc = MPI_ERR_INTERN;
|
|
|
|
} else if (request == NULL || *request == NULL) {
|
|
|
|
rc = MPI_ERR_REQUEST;
|
|
|
|
}
|
|
|
|
if (rc != MPI_SUCCESS) {
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
}
|
2004-03-26 17:15:20 +03:00
|
|
|
return mca_pml.pml_start(1, request);
|
2004-01-30 00:42:40 +03:00
|
|
|
}
|
|
|
|
|