1
1
openmpi/src/mpi/c/start.c

37 строки
717 B
C
Исходник Обычный вид История

/*
* $HEADERS$
*/
#include "ompi_config.h"
#include <stdio.h>
#include "mpi.h"
#include "runtime/runtime.h"
#include "mpi/c/bindings.h"
#include "mca/pml/pml.h"
#if OMPI_HAVE_WEAK_SYMBOLS && OMPI_PROFILING_DEFINES
#pragma weak MPI_Start = PMPI_Start
#endif
#if OMPI_PROFILING_DEFINES
#include "mpi/c/profile/defines.h"
#endif
int MPI_Start(MPI_Request *request)
{
if ( MPI_PARAM_CHECK ) {
int rc = MPI_SUCCESS;
if (ompi_mpi_finalized) {
rc = MPI_ERR_INTERN;
} else if (request == NULL || *request == NULL) {
rc = MPI_ERR_REQUEST;
}
if (rc != MPI_SUCCESS) {
return rc;
}
}
return mca_pml.pml_start(1, request);
}