2004-01-30 00:42:40 +03:00
|
|
|
/*
|
|
|
|
* $HEADERS$
|
|
|
|
*/
|
2004-06-07 19:33:53 +04:00
|
|
|
#include "ompi_config.h"
|
2004-01-30 00:42:40 +03:00
|
|
|
#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
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
#if OMPI_HAVE_WEAK_SYMBOLS && OMPI_PROFILING_DEFINES
|
2004-01-30 00:42:40 +03:00
|
|
|
#pragma weak MPI_Start = PMPI_Start
|
|
|
|
#endif
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
#if OMPI_PROFILING_DEFINES
|
2004-04-20 22:50:43 +04:00
|
|
|
#include "mpi/c/profile/defines.h"
|
|
|
|
#endif
|
|
|
|
|
2004-03-17 20:28:11 +03:00
|
|
|
int MPI_Start(MPI_Request *request)
|
|
|
|
{
|
|
|
|
if ( MPI_PARAM_CHECK ) {
|
|
|
|
int rc = MPI_SUCCESS;
|
2004-06-07 19:33:53 +04:00
|
|
|
if (ompi_mpi_finalized) {
|
2004-03-17 20:28:11 +03:00
|
|
|
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
|
|
|
}
|
|
|
|
|