/* * $HEADER$ */ #include "ompi_config.h" #include #include "mpi.h" #include "mpi/f77/bindings.h" #if OMPI_HAVE_WEAK_SYMBOLS && OMPI_PROFILE_LAYER #pragma weak PMPI_TEST_CANCELLED = mpi_test_cancelled_f #pragma weak pmpi_test_cancelled = mpi_test_cancelled_f #pragma weak pmpi_test_cancelled_ = mpi_test_cancelled_f #pragma weak pmpi_test_cancelled__ = mpi_test_cancelled_f #elif OMPI_PROFILE_LAYER OMPI_GENERATE_F77_BINDINGS (PMPI_TEST_CANCELLED, pmpi_test_cancelled, pmpi_test_cancelled_, pmpi_test_cancelled__, pmpi_test_cancelled_f, (MPI_Fint *status, MPI_Fint *flag, MPI_Fint *ierr), (status, flag, ierr) ) #endif #if OMPI_HAVE_WEAK_SYMBOLS #pragma weak MPI_TEST_CANCELLED = mpi_test_cancelled_f #pragma weak mpi_test_cancelled = mpi_test_cancelled_f #pragma weak mpi_test_cancelled_ = mpi_test_cancelled_f #pragma weak mpi_test_cancelled__ = mpi_test_cancelled_f #endif #if ! OMPI_HAVE_WEAK_SYMBOLS && ! OMPI_PROFILE_LAYER OMPI_GENERATE_F77_BINDINGS (MPI_TEST_CANCELLED, mpi_test_cancelled, mpi_test_cancelled_, mpi_test_cancelled__, mpi_test_cancelled_f, (MPI_Fint *status, MPI_Fint *flag, MPI_Fint *ierr), (status, flag, ierr) ) #endif #if OMPI_PROFILE_LAYER && ! OMPI_HAVE_WEAK_SYMBOLS #include "mpi/c/profile/defines.h" #endif void mpi_test_cancelled_f(MPI_Fint *status, MPI_Fint *flag, MPI_Fint *ierr) { MPI_Status c_status; *ierr = MPI_Test_cancelled(&c_status, flag); if (*ierr == MPI_SUCCESS) MPI_Status_c2f(&c_status, status); }