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/atomic/atomic.h"
18 #include "ompi/datatype/ompi_datatype.h"
19 #include "oshmem/op/op.h"
20 #include "stdio.h"
21
22 #if OSHMEM_PROFILING
23 #include "oshmem/shmem/fortran/profile/pbindings.h"
24 SHMEM_GENERATE_WEAK_BINDINGS(SHMEM_INT8_FADD, shmem_int8_fadd)
25 #include "oshmem/shmem/fortran/profile/defines.h"
26 #endif
27
28 SHMEM_GENERATE_FORTRAN_BINDINGS_FUNCTION (ompi_fortran_integer8_t,
29 SHMEM_INT8_FADD,
30 shmem_int8_fadd_,
31 shmem_int8_fadd__,
32 shmem_int8_fadd_f,
33 (FORTRAN_POINTER_T target, FORTRAN_POINTER_T value, MPI_Fint *pe),
34 (target,value,pe) )
35
36 ompi_fortran_integer8_t shmem_int8_fadd_f(FORTRAN_POINTER_T target, FORTRAN_POINTER_T value, MPI_Fint *pe)
37 {
38 ompi_fortran_integer8_t out_value = 0;
39
40 MCA_ATOMIC_CALL(fadd(oshmem_ctx_default, FPTR_2_VOID_PTR(target),
41 (void *)&out_value,
42 FPTR_2_INT(value, sizeof(out_value)),
43 sizeof(out_value),
44 OMPI_FINT_2_INT(*pe)));
45
46 return out_value;
47 }
48