1
2
3
4
5
6
7
8
9
10 #include "oshmem_config.h"
11
12 #include "oshmem/constants.h"
13 #include "oshmem/include/shmem.h"
14 #include "oshmem/include/shmemx.h"
15
16 #include "oshmem/runtime/runtime.h"
17
18 #include "oshmem/op/op.h"
19 #include "oshmem/mca/atomic/atomic.h"
20
21
22
23
24
25
26
27
28 #if OSHMEM_PROFILING
29 #include "oshmem/include/pshmem.h"
30 #pragma weak shmem_int_atomic_fetch_or = pshmem_int_atomic_fetch_or
31 #pragma weak shmem_long_atomic_fetch_or = pshmem_long_atomic_fetch_or
32 #pragma weak shmem_longlong_atomic_fetch_or = pshmem_longlong_atomic_fetch_or
33 #pragma weak shmem_uint_atomic_fetch_or = pshmem_uint_atomic_fetch_or
34 #pragma weak shmem_ulong_atomic_fetch_or = pshmem_ulong_atomic_fetch_or
35 #pragma weak shmem_ulonglong_atomic_fetch_or = pshmem_ulonglong_atomic_fetch_or
36 #pragma weak shmem_int32_atomic_fetch_or = pshmem_int32_atomic_fetch_or
37 #pragma weak shmem_int64_atomic_fetch_or = pshmem_int64_atomic_fetch_or
38 #pragma weak shmem_uint32_atomic_fetch_or = pshmem_uint32_atomic_fetch_or
39 #pragma weak shmem_uint64_atomic_fetch_or = pshmem_uint64_atomic_fetch_or
40
41 #pragma weak shmem_ctx_int_atomic_fetch_or = pshmem_ctx_int_atomic_fetch_or
42 #pragma weak shmem_ctx_long_atomic_fetch_or = pshmem_ctx_long_atomic_fetch_or
43 #pragma weak shmem_ctx_longlong_atomic_fetch_or = pshmem_ctx_longlong_atomic_fetch_or
44 #pragma weak shmem_ctx_uint_atomic_fetch_or = pshmem_ctx_uint_atomic_fetch_or
45 #pragma weak shmem_ctx_ulong_atomic_fetch_or = pshmem_ctx_ulong_atomic_fetch_or
46 #pragma weak shmem_ctx_ulonglong_atomic_fetch_or = pshmem_ctx_ulonglong_atomic_fetch_or
47 #pragma weak shmem_ctx_int32_atomic_fetch_or = pshmem_ctx_int32_atomic_fetch_or
48 #pragma weak shmem_ctx_int64_atomic_fetch_or = pshmem_ctx_int64_atomic_fetch_or
49 #pragma weak shmem_ctx_uint32_atomic_fetch_or = pshmem_ctx_uint32_atomic_fetch_or
50 #pragma weak shmem_ctx_uint64_atomic_fetch_or = pshmem_ctx_uint64_atomic_fetch_or
51
52 #pragma weak shmemx_int32_atomic_fetch_or = pshmemx_int32_atomic_fetch_or
53 #pragma weak shmemx_int64_atomic_fetch_or = pshmemx_int64_atomic_fetch_or
54 #pragma weak shmemx_uint32_atomic_fetch_or = pshmemx_uint32_atomic_fetch_or
55 #pragma weak shmemx_uint64_atomic_fetch_or = pshmemx_uint64_atomic_fetch_or
56 #include "oshmem/shmem/c/profile/defines.h"
57 #endif
58
59 OSHMEM_TYPE_FOP(int, int, shmem, or)
60 OSHMEM_TYPE_FOP(long, long, shmem, or)
61 OSHMEM_TYPE_FOP(longlong, long long, shmem, or)
62 OSHMEM_TYPE_FOP(uint, unsigned int, shmem, or)
63 OSHMEM_TYPE_FOP(ulong, unsigned long, shmem, or)
64 OSHMEM_TYPE_FOP(ulonglong, unsigned long long, shmem, or)
65 OSHMEM_TYPE_FOP(int32, int32_t, shmem, or)
66 OSHMEM_TYPE_FOP(int64, int64_t, shmem, or)
67 OSHMEM_TYPE_FOP(uint32, uint32_t, shmem, or)
68 OSHMEM_TYPE_FOP(uint64, uint64_t, shmem, or)
69
70 OSHMEM_CTX_TYPE_FOP(int, int, shmem, or)
71 OSHMEM_CTX_TYPE_FOP(long, long, shmem, or)
72 OSHMEM_CTX_TYPE_FOP(longlong, long long, shmem, or)
73 OSHMEM_CTX_TYPE_FOP(uint, unsigned int, shmem, or)
74 OSHMEM_CTX_TYPE_FOP(ulong, unsigned long, shmem, or)
75 OSHMEM_CTX_TYPE_FOP(ulonglong, unsigned long long, shmem, or)
76 OSHMEM_CTX_TYPE_FOP(int32, int32_t, shmem, or)
77 OSHMEM_CTX_TYPE_FOP(int64, int64_t, shmem, or)
78 OSHMEM_CTX_TYPE_FOP(uint32, uint32_t, shmem, or)
79 OSHMEM_CTX_TYPE_FOP(uint64, uint64_t, shmem, or)
80
81 OSHMEM_TYPE_FOP(int32, int32_t, shmemx, or)
82 OSHMEM_TYPE_FOP(int64, int64_t, shmemx, or)
83 OSHMEM_TYPE_FOP(uint32, uint32_t, shmemx, or)
84 OSHMEM_TYPE_FOP(uint64, uint64_t, shmemx, or)