-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathshmem_header_only.h
307 lines (304 loc) · 10.4 KB
/
shmem_header_only.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
#ifndef _shmem_header_only_h
#define _shmem_header_only_h
#ifndef SHMEM_USE_HEADER_ONLY
#define SHMEM_USE_HEADER_ONLY
#endif
#include "__shmem_clear_lock.c"
#include "__shmem_lock_ptr.c"
#include "__shmem_set_lock.c"
#include "__shmem_test_lock.c"
#include "shmem_align.c"
#include "shmem_alltoall32.c"
#include "shmem_alltoall64.c"
#include "shmem_alltoalls32.c"
#include "shmem_alltoalls64.c"
#include "shmem_barrier.c"
#include "shmem_barrier_all.c"
#include "shmem_broadcast32.c"
#include "shmem_broadcast64.c"
#include "shmem_calloc.c"
#include "shmem_clear_lock.c"
#include "shmem_collect32.c"
#include "shmem_collect64.c"
#include "shmem_complexd_prod_to_all.c"
#include "shmem_complexd_sum_to_all.c"
#include "shmem_complexf_prod_to_all.c"
#include "shmem_complexf_sum_to_all.c"
#include "shmem_ctx_create.c"
#include "shmem_ctx_destroy.c"
#include "shmem_ctx_quiet.c"
#include "shmem_double_atomic_fetch.c"
#include "shmem_double_atomic_set.c"
#include "shmem_double_atomic_swap.c"
#include "shmem_double_max_to_all.c"
#include "shmem_double_min_to_all.c"
#include "shmem_double_prod_to_all.c"
#include "shmem_double_sum_to_all.c"
#include "shmem_fcollect32.c"
#include "shmem_fcollect64.c"
#include "shmem_finalize.c"
#include "shmem_float_atomic_fetch.c"
#include "shmem_float_atomic_set.c"
#include "shmem_float_atomic_swap.c"
#include "shmem_float_max_to_all.c"
#include "shmem_float_min_to_all.c"
#include "shmem_float_prod_to_all.c"
#include "shmem_float_sum_to_all.c"
#include "shmem_free.c"
#include "shmem_get128.c"
#include "shmem_get128_nbi.c"
#include "shmem_get16.c"
#include "shmem_get16_nbi.c"
#include "shmem_get32.c"
#include "shmem_get32_nbi.c"
#include "shmem_get64.c"
#include "shmem_get64_nbi.c"
#include "shmem_get8.c"
#include "shmem_get8_nbi.c"
#include "shmem_global_exit.c"
#include "shmem_iget128.c"
#include "shmem_iget16.c"
#include "shmem_iget32.c"
#include "shmem_iget64.c"
#include "shmem_iget8.c"
#include "shmem_info_get_name.c"
#include "shmem_info_get_version.c"
#include "shmem_init.c"
#include "shmem_init_thread.c"
#include "shmem_int32_atomic_add.c"
#include "shmem_int32_atomic_and.c"
#include "shmem_int32_atomic_compare_swap.c"
#include "shmem_int32_atomic_fetch.c"
#include "shmem_int32_atomic_fetch_add.c"
#include "shmem_int32_atomic_fetch_and.c"
#include "shmem_int32_atomic_fetch_inc.c"
#include "shmem_int32_atomic_fetch_or.c"
#include "shmem_int32_atomic_fetch_xor.c"
#include "shmem_int32_atomic_inc.c"
#include "shmem_int32_atomic_or.c"
#include "shmem_int32_atomic_set.c"
#include "shmem_int32_atomic_swap.c"
#include "shmem_int32_atomic_xor.c"
#include "shmem_int32_test.c"
#include "shmem_int32_wait_until.c"
#include "shmem_int64_atomic_add.c"
#include "shmem_int64_atomic_and.c"
#include "shmem_int64_atomic_compare_swap.c"
#include "shmem_int64_atomic_fetch.c"
#include "shmem_int64_atomic_fetch_add.c"
#include "shmem_int64_atomic_fetch_and.c"
#include "shmem_int64_atomic_fetch_inc.c"
#include "shmem_int64_atomic_fetch_or.c"
#include "shmem_int64_atomic_fetch_xor.c"
#include "shmem_int64_atomic_inc.c"
#include "shmem_int64_atomic_or.c"
#include "shmem_int64_atomic_set.c"
#include "shmem_int64_atomic_swap.c"
#include "shmem_int64_atomic_xor.c"
#include "shmem_int64_test.c"
#include "shmem_int64_wait_until.c"
#include "shmem_int_and_to_all.c"
#include "shmem_int_atomic_add.c"
#include "shmem_int_atomic_compare_swap.c"
#include "shmem_int_atomic_fetch.c"
#include "shmem_int_atomic_fetch_add.c"
#include "shmem_int_atomic_fetch_inc.c"
#include "shmem_int_atomic_inc.c"
#include "shmem_int_atomic_set.c"
#include "shmem_int_atomic_swap.c"
#include "shmem_int_max_to_all.c"
#include "shmem_int_min_to_all.c"
#include "shmem_int_or_to_all.c"
#include "shmem_int_prod_to_all.c"
#include "shmem_int_sum_to_all.c"
#include "shmem_int_test.c"
#include "shmem_int_wait.c"
#include "shmem_int_wait_until.c"
#include "shmem_int_xor_to_all.c"
#include "shmem_iput128.c"
#include "shmem_iput16.c"
#include "shmem_iput32.c"
#include "shmem_iput64.c"
#include "shmem_iput8.c"
#include "shmem_long_and_to_all.c"
#include "shmem_long_atomic_add.c"
#include "shmem_long_atomic_compare_swap.c"
#include "shmem_long_atomic_fetch.c"
#include "shmem_long_atomic_fetch_add.c"
#include "shmem_long_atomic_fetch_inc.c"
#include "shmem_long_atomic_inc.c"
#include "shmem_long_atomic_set.c"
#include "shmem_long_atomic_swap.c"
#include "shmem_long_max_to_all.c"
#include "shmem_long_min_to_all.c"
#include "shmem_long_or_to_all.c"
#include "shmem_long_prod_to_all.c"
#include "shmem_long_sum_to_all.c"
#include "shmem_long_test.c"
#include "shmem_long_wait.c"
#include "shmem_long_wait_until.c"
#include "shmem_long_xor_to_all.c"
#include "shmem_longdouble_max_to_all.c"
#include "shmem_longdouble_min_to_all.c"
#include "shmem_longdouble_prod_to_all.c"
#include "shmem_longdouble_sum_to_all.c"
#include "shmem_longlong_and_to_all.c"
#include "shmem_longlong_atomic_add.c"
#include "shmem_longlong_atomic_compare_swap.c"
#include "shmem_longlong_atomic_fetch.c"
#include "shmem_longlong_atomic_fetch_add.c"
#include "shmem_longlong_atomic_fetch_inc.c"
#include "shmem_longlong_atomic_inc.c"
#include "shmem_longlong_atomic_set.c"
#include "shmem_longlong_atomic_swap.c"
#include "shmem_longlong_max_to_all.c"
#include "shmem_longlong_min_to_all.c"
#include "shmem_longlong_or_to_all.c"
#include "shmem_longlong_prod_to_all.c"
#include "shmem_longlong_sum_to_all.c"
#include "shmem_longlong_test.c"
#include "shmem_longlong_wait.c"
#include "shmem_longlong_wait_until.c"
#include "shmem_longlong_xor_to_all.c"
#include "shmem_malloc.c"
#include "shmem_mman.c"
#include "shmem_ptr.c"
#include "shmem_ptrdiff_atomic_add.c"
#include "shmem_ptrdiff_atomic_compare_swap.c"
#include "shmem_ptrdiff_atomic_fetch.c"
#include "shmem_ptrdiff_atomic_fetch_add.c"
#include "shmem_ptrdiff_atomic_fetch_inc.c"
#include "shmem_ptrdiff_atomic_inc.c"
#include "shmem_ptrdiff_atomic_set.c"
#include "shmem_ptrdiff_atomic_swap.c"
#include "shmem_ptrdiff_test.c"
#include "shmem_ptrdiff_wait_until.c"
#include "shmem_put128.c"
#include "shmem_put128_nbi.c"
#include "shmem_put16.c"
#include "shmem_put16_nbi.c"
#include "shmem_put32.c"
#include "shmem_put32_nbi.c"
#include "shmem_put64.c"
#include "shmem_put64_nbi.c"
#include "shmem_put8.c"
#include "shmem_put8_nbi.c"
#include "shmem_query_thread.c"
#include "shmem_quiet.c"
#include "shmem_realloc.c"
#include "shmem_set_lock.c"
#include "shmem_short_and_to_all.c"
#include "shmem_short_max_to_all.c"
#include "shmem_short_min_to_all.c"
#include "shmem_short_or_to_all.c"
#include "shmem_short_prod_to_all.c"
#include "shmem_short_sum_to_all.c"
#include "shmem_short_test.c"
#include "shmem_short_wait.c"
#include "shmem_short_wait_until.c"
#include "shmem_short_xor_to_all.c"
#include "shmem_size_atomic_add.c"
#include "shmem_size_atomic_compare_swap.c"
#include "shmem_size_atomic_fetch.c"
#include "shmem_size_atomic_fetch_add.c"
#include "shmem_size_atomic_fetch_inc.c"
#include "shmem_size_atomic_inc.c"
#include "shmem_size_atomic_set.c"
#include "shmem_size_atomic_swap.c"
#include "shmem_size_test.c"
#include "shmem_size_wait_until.c"
#include "shmem_sync.c"
#include "shmem_sync_all.c"
#include "shmem_test_lock.c"
#include "shmem_uint32_atomic_add.c"
#include "shmem_uint32_atomic_and.c"
#include "shmem_uint32_atomic_compare_swap.c"
#include "shmem_uint32_atomic_fetch.c"
#include "shmem_uint32_atomic_fetch_add.c"
#include "shmem_uint32_atomic_fetch_and.c"
#include "shmem_uint32_atomic_fetch_inc.c"
#include "shmem_uint32_atomic_fetch_or.c"
#include "shmem_uint32_atomic_fetch_xor.c"
#include "shmem_uint32_atomic_inc.c"
#include "shmem_uint32_atomic_or.c"
#include "shmem_uint32_atomic_set.c"
#include "shmem_uint32_atomic_swap.c"
#include "shmem_uint32_atomic_xor.c"
#include "shmem_uint32_test.c"
#include "shmem_uint32_wait_until.c"
#include "shmem_uint64_atomic_add.c"
#include "shmem_uint64_atomic_and.c"
#include "shmem_uint64_atomic_compare_swap.c"
#include "shmem_uint64_atomic_fetch.c"
#include "shmem_uint64_atomic_fetch_add.c"
#include "shmem_uint64_atomic_fetch_and.c"
#include "shmem_uint64_atomic_fetch_inc.c"
#include "shmem_uint64_atomic_fetch_or.c"
#include "shmem_uint64_atomic_fetch_xor.c"
#include "shmem_uint64_atomic_inc.c"
#include "shmem_uint64_atomic_or.c"
#include "shmem_uint64_atomic_set.c"
#include "shmem_uint64_atomic_swap.c"
#include "shmem_uint64_atomic_xor.c"
#include "shmem_uint64_test.c"
#include "shmem_uint64_wait_until.c"
#include "shmem_uint_atomic_add.c"
#include "shmem_uint_atomic_and.c"
#include "shmem_uint_atomic_compare_swap.c"
#include "shmem_uint_atomic_fetch.c"
#include "shmem_uint_atomic_fetch_add.c"
#include "shmem_uint_atomic_fetch_and.c"
#include "shmem_uint_atomic_fetch_inc.c"
#include "shmem_uint_atomic_fetch_or.c"
#include "shmem_uint_atomic_fetch_xor.c"
#include "shmem_uint_atomic_inc.c"
#include "shmem_uint_atomic_or.c"
#include "shmem_uint_atomic_set.c"
#include "shmem_uint_atomic_swap.c"
#include "shmem_uint_atomic_xor.c"
#include "shmem_uint_test.c"
#include "shmem_uint_wait_until.c"
#include "shmem_ulong_atomic_add.c"
#include "shmem_ulong_atomic_and.c"
#include "shmem_ulong_atomic_compare_swap.c"
#include "shmem_ulong_atomic_fetch.c"
#include "shmem_ulong_atomic_fetch_add.c"
#include "shmem_ulong_atomic_fetch_and.c"
#include "shmem_ulong_atomic_fetch_inc.c"
#include "shmem_ulong_atomic_fetch_or.c"
#include "shmem_ulong_atomic_fetch_xor.c"
#include "shmem_ulong_atomic_inc.c"
#include "shmem_ulong_atomic_or.c"
#include "shmem_ulong_atomic_set.c"
#include "shmem_ulong_atomic_swap.c"
#include "shmem_ulong_atomic_xor.c"
#include "shmem_ulong_test.c"
#include "shmem_ulong_wait_until.c"
#include "shmem_ulonglong_atomic_add.c"
#include "shmem_ulonglong_atomic_and.c"
#include "shmem_ulonglong_atomic_compare_swap.c"
#include "shmem_ulonglong_atomic_fetch.c"
#include "shmem_ulonglong_atomic_fetch_add.c"
#include "shmem_ulonglong_atomic_fetch_and.c"
#include "shmem_ulonglong_atomic_fetch_inc.c"
#include "shmem_ulonglong_atomic_fetch_or.c"
#include "shmem_ulonglong_atomic_fetch_xor.c"
#include "shmem_ulonglong_atomic_inc.c"
#include "shmem_ulonglong_atomic_or.c"
#include "shmem_ulonglong_atomic_set.c"
#include "shmem_ulonglong_atomic_swap.c"
#include "shmem_ulonglong_atomic_xor.c"
#include "shmem_ulonglong_test.c"
#include "shmem_ulonglong_wait_until.c"
#include "shmem_ushort_test.c"
#include "shmem_ushort_wait_until.c"
#include "shmemx_clear_lock_pe.c"
#include "shmemx_memcpy8.c"
#include "shmemx_memcpy16.c"
#include "shmemx_memcpy32.c"
#include "shmemx_memcpy64.c"
#include "shmemx_memcpy128.c"
#include "shmemx_memcpy_nbi.c"
#include "shmemx_set_lock_pe.c"
#include "shmemx_test_lock_pe.c"
#endif