
so latest ROM-IO can be used with Open MPI. Note this first and naive implementation does not use the wait_fn callback. Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
49 строки
1.3 KiB
C
49 строки
1.3 KiB
C
/*
|
|
* Copyright (c) 2018 Research Organization for Information Science
|
|
* and Technology (RIST). All rights reserved.
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
#include "ompi_config.h"
|
|
#include <stdio.h>
|
|
|
|
#include "ompi/mpi/c/bindings.h"
|
|
#include "ompi/runtime/params.h"
|
|
#include "ompi/communicator/communicator.h"
|
|
#include "ompi/errhandler/errhandler.h"
|
|
#include "ompi/request/grequestx.h"
|
|
|
|
#if OMPI_BUILD_MPI_PROFILING
|
|
#if OPAL_HAVE_WEAK_SYMBOLS
|
|
#pragma weak MPIX_Grequest_class_allocate = PMPIX_Grequest_class_allocate
|
|
#endif
|
|
#define MPIX_Grequest_class_allocate PMPIX_Grequest_class_allocate
|
|
#endif
|
|
|
|
static const char FUNC_NAME[] = "MPIX_Grequest_class_allocate";
|
|
|
|
|
|
int MPIX_Grequest_class_allocate(MPIX_Grequest_class greq_class,
|
|
void *extra_state,
|
|
MPI_Request *request)
|
|
{
|
|
int rc;
|
|
|
|
if (MPI_PARAM_CHECK) {
|
|
OMPI_ERR_INIT_FINALIZE(FUNC_NAME);
|
|
if (NULL == request) {
|
|
return OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_REQUEST,
|
|
FUNC_NAME);
|
|
}
|
|
}
|
|
|
|
OPAL_CR_ENTER_LIBRARY();
|
|
|
|
rc = ompi_grequestx_class_allocate(greq_class, extra_state, request);
|
|
OMPI_ERRHANDLER_RETURN(rc, MPI_COMM_WORLD, rc, FUNC_NAME);
|
|
}
|
|
|