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(SHMEM_PTR, shmem_ptr)
21 #include "oshmem/shmem/fortran/profile/defines.h"
22 #endif
23
24 SHMEM_GENERATE_FORTRAN_BINDINGS_FUNCTION (FORTRAN_POINTER_T *,
25 SHMEM_PTR,
26 shmem_ptr_,
27 shmem_ptr__,
28 shmem_ptr_f,
29 (FORTRAN_POINTER_T target, MPI_Fint *pe),
30 (target,pe) )
31
32 FORTRAN_POINTER_T* shmem_ptr_f(FORTRAN_POINTER_T target, MPI_Fint *pe)
33 {
34 return (FORTRAN_POINTER_T *)shmem_ptr(FPTR_2_VOID_PTR(target), OMPI_FINT_2_INT(*pe));
35 }
36