This source file includes following definitions.
- SHMEM_GENERATE_WEAK_BINDINGS
1
2
3
4
5
6
7
8
9
10
11
12 #include "oshmem_config.h"
13 #include "oshmem/shmem/fortran/bindings.h"
14 #include "oshmem/include/shmem.h"
15 #include "oshmem/shmem/shmem_api_logger.h"
16 #include "stdio.h"
17
18 #if OSHMEM_PROFILING
19 #include "oshmem/shmem/fortran/profile/pbindings.h"
20 SHMEM_GENERATE_WEAK_BINDINGS(SHPDEALLC, shpdeallc)
21 #include "oshmem/shmem/fortran/profile/defines.h"
22 #endif
23
24 SHMEM_GENERATE_FORTRAN_BINDINGS_SUB (void,
25 SHPDEALLC,
26 shpdeallc_,
27 shpdeallc__,
28 shpdeallc_f,
29 (FORTRAN_POINTER_T *addr, MPI_Fint *errcode, MPI_Fint *abort),
30 (addr,errcode,abort) )
31
32
33 void shpdeallc_f(FORTRAN_POINTER_T *addr, MPI_Fint *errcode, MPI_Fint *abort)
34 {
35 *errcode = 0;
36 shfree((void *)((uintptr_t)*addr));
37 }
38