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 "oshmem/runtime/runtime.h"
17 #include "oshmem/mca/spml/spml.h"
18 #include "ompi/datatype/ompi_datatype.h"
19 #include "stdio.h"
20
21 #if OSHMEM_PROFILING
22 #include "oshmem/shmem/fortran/profile/pbindings.h"
23 SHMEM_GENERATE_WEAK_BINDINGS(SHMEM_CHARACTER_GET, shmem_character_get)
24 #include "oshmem/shmem/fortran/profile/defines.h"
25 #endif
26
27 SHMEM_GENERATE_FORTRAN_BINDINGS_SUB (void,
28 SHMEM_CHARACTER_GET,
29 shmem_character_get_,
30 shmem_character_get__,
31 shmem_character_get_f,
32 (FORTRAN_POINTER_T target, FORTRAN_POINTER_T source, MPI_Fint *len, MPI_Fint *pe),
33 (target,source,len,pe) )
34
35 void shmem_character_get_f(FORTRAN_POINTER_T target, FORTRAN_POINTER_T source, MPI_Fint *len, MPI_Fint *pe)
36 {
37 size_t character_type_size = 0;
38 ompi_datatype_type_size(&ompi_mpi_character.dt, &character_type_size);
39
40 MCA_SPML_CALL(get(oshmem_ctx_default, FPTR_2_VOID_PTR(source),
41 OMPI_FINT_2_INT(*len) * character_type_size,
42 FPTR_2_VOID_PTR(target),
43 OMPI_FINT_2_INT(*pe)));
44 }
45