This source file includes following definitions.
- ompi_cancel_f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 #include "ompi_config.h"
23
24 #include "ompi/mpi/fortran/mpif-h/bindings.h"
25
26 #if OMPI_BUILD_MPI_PROFILING
27 #if OPAL_HAVE_WEAK_SYMBOLS
28 #pragma weak PMPI_CANCEL = ompi_cancel_f
29 #pragma weak pmpi_cancel = ompi_cancel_f
30 #pragma weak pmpi_cancel_ = ompi_cancel_f
31 #pragma weak pmpi_cancel__ = ompi_cancel_f
32
33 #pragma weak PMPI_Cancel_f = ompi_cancel_f
34 #pragma weak PMPI_Cancel_f08 = ompi_cancel_f
35 #else
36 OMPI_GENERATE_F77_BINDINGS (PMPI_CANCEL,
37 pmpi_cancel,
38 pmpi_cancel_,
39 pmpi_cancel__,
40 pompi_cancel_f,
41 (MPI_Fint *request, MPI_Fint *ierr),
42 (request, ierr) )
43 #endif
44 #endif
45
46 #if OPAL_HAVE_WEAK_SYMBOLS
47 #pragma weak MPI_CANCEL = ompi_cancel_f
48 #pragma weak mpi_cancel = ompi_cancel_f
49 #pragma weak mpi_cancel_ = ompi_cancel_f
50 #pragma weak mpi_cancel__ = ompi_cancel_f
51
52 #pragma weak MPI_Cancel_f = ompi_cancel_f
53 #pragma weak MPI_Cancel_f08 = ompi_cancel_f
54 #else
55 #if ! OMPI_BUILD_MPI_PROFILING
56 OMPI_GENERATE_F77_BINDINGS (MPI_CANCEL,
57 mpi_cancel,
58 mpi_cancel_,
59 mpi_cancel__,
60 ompi_cancel_f,
61 (MPI_Fint *request, MPI_Fint *ierr),
62 (request, ierr) )
63 #endif
64
65 #if OMPI_BUILD_MPI_PROFILING && ! OPAL_HAVE_WEAK_SYMBOLS
66 #define ompi_cancel_f pompi_cancel_f
67 #endif
68 #endif
69
70
71 void ompi_cancel_f(MPI_Fint *request, MPI_Fint *ierr)
72 {
73 int c_ierr;
74 MPI_Request c_req = PMPI_Request_f2c(*request);
75
76 c_ierr = PMPI_Cancel(&c_req);
77 if (NULL != ierr) *ierr = OMPI_INT_2_FINT(c_ierr);
78 }