1
1

Merge pull request #6012 from hoopoepg/topic/added-missing-amo-datatypes-v4.0

OSHMEM/AMO: added missing C11 macro datatypes - v4.0
Этот коммит содержится в:
Geoff Paulsen 2018-11-19 14:20:15 -06:00 коммит произвёл GitHub
родитель 8adaeb1536 b416c8afe2
Коммит 6898de01a7
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
25 изменённых файлов: 1739 добавлений и 368 удалений

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -80,7 +80,14 @@
#define shmem_ctx_float_p pshmem_ctx_float_p
#define shmem_ctx_double_p pshmem_ctx_double_p
#define shmem_ctx_longlong_p pshmem_ctx_longlong_p
#define shmem_ctx_schar_p pshmem_ctx_schar_p
#define shmem_ctx_uchar_p pshmem_ctx_uchar_p
#define shmem_ctx_ushort_p pshmem_ctx_ushort_p
#define shmem_ctx_uint_p pshmem_ctx_uint_p
#define shmem_ctx_ulong_p pshmem_ctx_ulong_p
#define shmem_ctx_ulonglong_p pshmem_ctx_ulonglong_p
#define shmem_ctx_longdouble_p pshmem_ctx_longdouble_p
#define shmem_char_p pshmem_char_p
#define shmem_short_p pshmem_short_p
#define shmem_int_p pshmem_int_p
@ -88,7 +95,14 @@
#define shmem_float_p pshmem_float_p
#define shmem_double_p pshmem_double_p
#define shmem_longlong_p pshmem_longlong_p
#define shmem_schar_p pshmem_schar_p
#define shmem_uchar_p pshmem_uchar_p
#define shmem_ushort_p pshmem_ushort_p
#define shmem_uint_p pshmem_uint_p
#define shmem_ulong_p pshmem_ulong_p
#define shmem_ulonglong_p pshmem_ulonglong_p
#define shmem_longdouble_p pshmem_longdouble_p
#define shmemx_int16_p pshmemx_int16_p
#define shmemx_int32_p pshmemx_int32_p
#define shmemx_int64_p pshmemx_int64_p
@ -103,7 +117,14 @@
#define shmem_ctx_float_put pshmem_ctx_float_put
#define shmem_ctx_double_put pshmem_ctx_double_put
#define shmem_ctx_longlong_put pshmem_ctx_longlong_put
#define shmem_ctx_schar_put pshmem_ctx_schar_put
#define shmem_ctx_uchar_put pshmem_ctx_uchar_put
#define shmem_ctx_ushort_put pshmem_ctx_ushort_put
#define shmem_ctx_uint_put pshmem_ctx_uint_put
#define shmem_ctx_ulong_put pshmem_ctx_ulong_put
#define shmem_ctx_ulonglong_put pshmem_ctx_ulonglong_put
#define shmem_ctx_longdouble_put pshmem_ctx_longdouble_put
#define shmem_char_put pshmem_char_put /* shmem-compat.h */
#define shmem_short_put pshmem_short_put
#define shmem_int_put pshmem_int_put
@ -111,6 +132,12 @@
#define shmem_float_put pshmem_float_put
#define shmem_double_put pshmem_double_put
#define shmem_longlong_put pshmem_longlong_put
#define shmem_schar_put pshmem_schar_put
#define shmem_uchar_put pshmem_uchar_put
#define shmem_ushort_put pshmem_ushort_put
#define shmem_uint_put pshmem_uint_put
#define shmem_ulong_put pshmem_ulong_put
#define shmem_ulonglong_put pshmem_ulonglong_put
#define shmem_longdouble_put pshmem_longdouble_put
#define shmem_ctx_put8 pshmem_ctx_put8
@ -119,6 +146,7 @@
#define shmem_ctx_put64 pshmem_ctx_put64
#define shmem_ctx_put128 pshmem_ctx_put128
#define shmem_ctx_putmem pshmem_ctx_putmem
#define shmem_put8 pshmem_put8
#define shmem_put16 pshmem_put16
#define shmem_put32 pshmem_put32
@ -129,28 +157,42 @@
/*
* Strided put routines
*/
#define shmem_ctx_char_iput pshmem_ctx_char_iput
#define shmem_ctx_short_iput pshmem_ctx_short_iput
#define shmem_ctx_int_iput pshmem_ctx_int_iput
#define shmem_ctx_float_iput pshmem_ctx_float_iput
#define shmem_ctx_double_iput pshmem_ctx_double_iput
#define shmem_ctx_longlong_iput pshmem_ctx_longlong_iput
#define shmem_ctx_longdouble_iput pshmem_ctx_longdouble_iput
#define shmem_ctx_long_iput pshmem_ctx_long_iput
#define shmem_char_iput pshmem_char_iput
#define shmem_short_iput pshmem_short_iput
#define shmem_int_iput pshmem_int_iput
#define shmem_float_iput pshmem_float_iput
#define shmem_double_iput pshmem_double_iput
#define shmem_longlong_iput pshmem_longlong_iput
#define shmem_longdouble_iput pshmem_longdouble_iput
#define shmem_long_iput pshmem_long_iput
#define shmem_ctx_char_iput pshmem_ctx_char_iput
#define shmem_ctx_short_iput pshmem_ctx_short_iput
#define shmem_ctx_int_iput pshmem_ctx_int_iput
#define shmem_ctx_long_iput pshmem_ctx_long_iput
#define shmem_ctx_float_iput pshmem_ctx_float_iput
#define shmem_ctx_double_iput pshmem_ctx_double_iput
#define shmem_ctx_longlong_iput pshmem_ctx_longlong_iput
#define shmem_ctx_schar_iput pshmem_ctx_schar_iput
#define shmem_ctx_uchar_iput pshmem_ctx_uchar_iput
#define shmem_ctx_ushort_iput pshmem_ctx_ushort_iput
#define shmem_ctx_uint_iput pshmem_ctx_uint_iput
#define shmem_ctx_ulong_iput pshmem_ctx_ulong_iput
#define shmem_ctx_ulonglong_iput pshmem_ctx_ulonglong_iput
#define shmem_ctx_longdouble_iput pshmem_ctx_longdouble_iput
#define shmem_char_iput pshmem_char_iput
#define shmem_short_iput pshmem_short_iput
#define shmem_int_iput pshmem_int_iput
#define shmem_long_iput pshmem_long_iput
#define shmem_float_iput pshmem_float_iput
#define shmem_double_iput pshmem_double_iput
#define shmem_longlong_iput pshmem_longlong_iput
#define shmem_schar_iput pshmem_schar_iput
#define shmem_uchar_iput pshmem_uchar_iput
#define shmem_ushort_iput pshmem_ushort_iput
#define shmem_uint_iput pshmem_uint_iput
#define shmem_ulong_iput pshmem_ulong_iput
#define shmem_ulonglong_iput pshmem_ulonglong_iput
#define shmem_longdouble_iput pshmem_longdouble_iput
#define shmem_ctx_iput8 pshmem_ctx_iput8
#define shmem_ctx_iput16 pshmem_ctx_iput16
#define shmem_ctx_iput32 pshmem_ctx_iput32
#define shmem_ctx_iput64 pshmem_ctx_iput64
#define shmem_ctx_iput128 pshmem_ctx_iput128
#define shmem_iput8 pshmem_iput8
#define shmem_iput16 pshmem_iput16
#define shmem_iput32 pshmem_iput32
@ -160,22 +202,35 @@
/*
* Non-block data put routines
*/
#define shmem_ctx_char_put_nbi pshmem_ctx_char_put_nbi
#define shmem_ctx_short_put_nbi pshmem_ctx_short_put_nbi
#define shmem_ctx_int_put_nbi pshmem_ctx_int_put_nbi
#define shmem_ctx_long_put_nbi pshmem_ctx_long_put_nbi
#define shmem_ctx_float_put_nbi pshmem_ctx_float_put_nbi
#define shmem_ctx_double_put_nbi pshmem_ctx_double_put_nbi
#define shmem_ctx_longlong_put_nbi pshmem_ctx_longlong_put_nbi
#define shmem_ctx_longdouble_put_nbi pshmem_ctx_longdouble_put_nbi
#define shmem_char_put_nbi pshmem_char_put_nbi
#define shmem_short_put_nbi pshmem_short_put_nbi
#define shmem_int_put_nbi pshmem_int_put_nbi
#define shmem_long_put_nbi pshmem_long_put_nbi
#define shmem_float_put_nbi pshmem_float_put_nbi
#define shmem_double_put_nbi pshmem_double_put_nbi
#define shmem_longlong_put_nbi pshmem_longlong_put_nbi
#define shmem_longdouble_put_nbi pshmem_longdouble_put_nbi
#define shmem_ctx_char_put_nbi pshmem_ctx_char_put_nbi
#define shmem_ctx_short_put_nbi pshmem_ctx_short_put_nbi
#define shmem_ctx_int_put_nbi pshmem_ctx_int_put_nbi
#define shmem_ctx_long_put_nbi pshmem_ctx_long_put_nbi
#define shmem_ctx_float_put_nbi pshmem_ctx_float_put_nbi
#define shmem_ctx_double_put_nbi pshmem_ctx_double_put_nbi
#define shmem_ctx_longlong_put_nbi pshmem_ctx_longlong_put_nbi
#define shmem_ctx_schar_put_nbi pshmem_ctx_schar_put_nbi
#define shmem_ctx_uchar_put_nbi pshmem_ctx_uchar_put_nbi
#define shmem_ctx_ushort_put_nbi pshmem_ctx_ushort_put_nbi
#define shmem_ctx_uint_put_nbi pshmem_ctx_uint_put_nbi
#define shmem_ctx_ulong_put_nbi pshmem_ctx_ulong_put_nbi
#define shmem_ctx_ulonglong_put_nbi pshmem_ctx_ulonglong_put_nbi
#define shmem_ctx_longdouble_put_nbi pshmem_ctx_longdouble_put_nbi
#define shmem_char_put_nbi pshmem_char_put_nbi
#define shmem_short_put_nbi pshmem_short_put_nbi
#define shmem_int_put_nbi pshmem_int_put_nbi
#define shmem_long_put_nbi pshmem_long_put_nbi
#define shmem_float_put_nbi pshmem_float_put_nbi
#define shmem_double_put_nbi pshmem_double_put_nbi
#define shmem_longlong_put_nbi pshmem_longlong_put_nbi
#define shmem_schar_put_nbi pshmem_schar_put_nbi
#define shmem_uchar_put_nbi pshmem_uchar_put_nbi
#define shmem_ushort_put_nbi pshmem_ushort_put_nbi
#define shmem_uint_put_nbi pshmem_uint_put_nbi
#define shmem_ulong_put_nbi pshmem_ulong_put_nbi
#define shmem_ulonglong_put_nbi pshmem_ulonglong_put_nbi
#define shmem_longdouble_put_nbi pshmem_longdouble_put_nbi
#define shmem_ctx_put8_nbi pshmem_ctx_put8_nbi
#define shmem_ctx_put16_nbi pshmem_ctx_put16_nbi
@ -183,6 +238,7 @@
#define shmem_ctx_put64_nbi pshmem_ctx_put64_nbi
#define shmem_ctx_put128_nbi pshmem_ctx_put128_nbi
#define shmem_ctx_putmem_nbi pshmem_ctx_putmem_nbi
#define shmem_put8_nbi pshmem_put8_nbi
#define shmem_put16_nbi pshmem_put16_nbi
#define shmem_put32_nbi pshmem_put32_nbi
@ -200,7 +256,14 @@
#define shmem_ctx_float_g pshmem_ctx_float_g
#define shmem_ctx_double_g pshmem_ctx_double_g
#define shmem_ctx_longlong_g pshmem_ctx_longlong_g
#define shmem_ctx_schar_g pshmem_ctx_schar_g
#define shmem_ctx_uchar_g pshmem_ctx_uchar_g
#define shmem_ctx_ushort_g pshmem_ctx_ushort_g
#define shmem_ctx_uint_g pshmem_ctx_uint_g
#define shmem_ctx_ulong_g pshmem_ctx_ulong_g
#define shmem_ctx_ulonglong_g pshmem_ctx_ulonglong_g
#define shmem_ctx_longdouble_g pshmem_ctx_longdouble_g
#define shmem_char_g pshmem_char_g
#define shmem_short_g pshmem_short_g
#define shmem_int_g pshmem_int_g
@ -208,7 +271,14 @@
#define shmem_float_g pshmem_float_g
#define shmem_double_g pshmem_double_g
#define shmem_longlong_g pshmem_longlong_g
#define shmem_schar_g pshmem_schar_g
#define shmem_uchar_g pshmem_uchar_g
#define shmem_ushort_g pshmem_ushort_g
#define shmem_uint_g pshmem_uint_g
#define shmem_ulong_g pshmem_ulong_g
#define shmem_ulonglong_g pshmem_ulonglong_g
#define shmem_longdouble_g pshmem_longdouble_g
#define shmemx_int16_g pshmemx_int16_g
#define shmemx_int32_g pshmemx_int32_g
#define shmemx_int64_g pshmemx_int64_g
@ -223,7 +293,14 @@
#define shmem_ctx_float_get pshmem_ctx_float_get
#define shmem_ctx_double_get pshmem_ctx_double_get
#define shmem_ctx_longlong_get pshmem_ctx_longlong_get
#define shmem_ctx_schar_get pshmem_ctx_schar_get
#define shmem_ctx_uchar_get pshmem_ctx_uchar_get
#define shmem_ctx_ushort_get pshmem_ctx_ushort_get
#define shmem_ctx_uint_get pshmem_ctx_uint_get
#define shmem_ctx_ulong_get pshmem_ctx_ulong_get
#define shmem_ctx_ulonglong_get pshmem_ctx_ulonglong_get
#define shmem_ctx_longdouble_get pshmem_ctx_longdouble_get
#define shmem_char_get pshmem_char_get /* shmem-compat.h */
#define shmem_short_get pshmem_short_get
#define shmem_int_get pshmem_int_get
@ -231,6 +308,12 @@
#define shmem_float_get pshmem_float_get
#define shmem_double_get pshmem_double_get
#define shmem_longlong_get pshmem_longlong_get
#define shmem_schar_get pshmem_schar_get
#define shmem_uchar_get pshmem_uchar_get
#define shmem_ushort_get pshmem_ushort_get
#define shmem_uint_get pshmem_uint_get
#define shmem_ulong_get pshmem_ulong_get
#define shmem_ulonglong_get pshmem_ulonglong_get
#define shmem_longdouble_get pshmem_longdouble_get
#define shmem_ctx_get8 pshmem_ctx_get8
@ -239,6 +322,7 @@
#define shmem_ctx_get64 pshmem_ctx_get64
#define shmem_ctx_get128 pshmem_ctx_get128
#define shmem_ctx_getmem pshmem_ctx_getmem
#define shmem_get8 pshmem_get8
#define shmem_get16 pshmem_get16
#define shmem_get32 pshmem_get32
@ -249,28 +333,42 @@
/*
* Strided get routines
*/
#define shmem_ctx_char_iget pshmem_ctx_char_iget
#define shmem_ctx_short_iget pshmem_ctx_short_iget
#define shmem_ctx_int_iget pshmem_ctx_int_iget
#define shmem_ctx_float_iget pshmem_ctx_float_iget
#define shmem_ctx_double_iget pshmem_ctx_double_iget
#define shmem_ctx_longlong_iget pshmem_ctx_longlong_iget
#define shmem_ctx_longdouble_iget pshmem_ctx_longdouble_iget
#define shmem_ctx_long_iget pshmem_ctx_long_iget
#define shmem_char_iget pshmem_char_iget
#define shmem_short_iget pshmem_short_iget
#define shmem_int_iget pshmem_int_iget
#define shmem_float_iget pshmem_float_iget
#define shmem_double_iget pshmem_double_iget
#define shmem_longlong_iget pshmem_longlong_iget
#define shmem_longdouble_iget pshmem_longdouble_iget
#define shmem_long_iget pshmem_long_iget
#define shmem_ctx_char_iget pshmem_ctx_char_iget
#define shmem_ctx_short_iget pshmem_ctx_short_iget
#define shmem_ctx_int_iget pshmem_ctx_int_iget
#define shmem_ctx_long_iget pshmem_ctx_long_iget
#define shmem_ctx_float_iget pshmem_ctx_float_iget
#define shmem_ctx_double_iget pshmem_ctx_double_iget
#define shmem_ctx_longlong_iget pshmem_ctx_longlong_iget
#define shmem_ctx_schar_iget pshmem_ctx_schar_iget
#define shmem_ctx_uchar_iget pshmem_ctx_uchar_iget
#define shmem_ctx_ushort_iget pshmem_ctx_ushort_iget
#define shmem_ctx_uint_iget pshmem_ctx_uint_iget
#define shmem_ctx_ulong_iget pshmem_ctx_ulong_iget
#define shmem_ctx_ulonglong_iget pshmem_ctx_ulonglong_iget
#define shmem_ctx_longdouble_iget pshmem_ctx_longdouble_iget
#define shmem_char_iget pshmem_char_iget
#define shmem_short_iget pshmem_short_iget
#define shmem_int_iget pshmem_int_iget
#define shmem_long_iget pshmem_long_iget
#define shmem_float_iget pshmem_float_iget
#define shmem_double_iget pshmem_double_iget
#define shmem_longlong_iget pshmem_longlong_iget
#define shmem_schar_iget pshmem_schar_iget
#define shmem_uchar_iget pshmem_uchar_iget
#define shmem_ushort_iget pshmem_ushort_iget
#define shmem_uint_iget pshmem_uint_iget
#define shmem_ulong_iget pshmem_ulong_iget
#define shmem_ulonglong_iget pshmem_ulonglong_iget
#define shmem_longdouble_iget pshmem_longdouble_iget
#define shmem_ctx_iget8 pshmem_ctx_iget8
#define shmem_ctx_iget16 pshmem_ctx_iget16
#define shmem_ctx_iget32 pshmem_ctx_iget32
#define shmem_ctx_iget64 pshmem_ctx_iget64
#define shmem_ctx_iget128 pshmem_ctx_iget128
#define shmem_iget8 pshmem_iget8
#define shmem_iget16 pshmem_iget16
#define shmem_iget32 pshmem_iget32
@ -280,22 +378,35 @@
/*
* Non-block data get routines
*/
#define shmem_ctx_char_get_nbi pshmem_ctx_char_get_nbi
#define shmem_ctx_short_get_nbi pshmem_ctx_short_get_nbi
#define shmem_ctx_int_get_nbi pshmem_ctx_int_get_nbi
#define shmem_ctx_long_get_nbi pshmem_ctx_long_get_nbi
#define shmem_ctx_float_get_nbi pshmem_ctx_float_get_nbi
#define shmem_ctx_double_get_nbi pshmem_ctx_double_get_nbi
#define shmem_ctx_longlong_get_nbi pshmem_ctx_longlong_get_nbi
#define shmem_ctx_longdouble_get_nbi pshmem_ctx_longdouble_get_nbi
#define shmem_char_get_nbi pshmem_char_get_nbi
#define shmem_short_get_nbi pshmem_short_get_nbi
#define shmem_int_get_nbi pshmem_int_get_nbi
#define shmem_long_get_nbi pshmem_long_get_nbi
#define shmem_float_get_nbi pshmem_float_get_nbi
#define shmem_double_get_nbi pshmem_double_get_nbi
#define shmem_longlong_get_nbi pshmem_longlong_get_nbi
#define shmem_longdouble_get_nbi pshmem_longdouble_get_nbi
#define shmem_ctx_char_get_nbi pshmem_ctx_char_get_nbi
#define shmem_ctx_short_get_nbi pshmem_ctx_short_get_nbi
#define shmem_ctx_int_get_nbi pshmem_ctx_int_get_nbi
#define shmem_ctx_long_get_nbi pshmem_ctx_long_get_nbi
#define shmem_ctx_float_get_nbi pshmem_ctx_float_get_nbi
#define shmem_ctx_double_get_nbi pshmem_ctx_double_get_nbi
#define shmem_ctx_longlong_get_nbi pshmem_ctx_longlong_get_nbi
#define shmem_ctx_schar_get_nbi pshmem_ctx_schar_get_nbi
#define shmem_ctx_uchar_get_nbi pshmem_ctx_uchar_get_nbi
#define shmem_ctx_ushort_get_nbi pshmem_ctx_ushort_get_nbi
#define shmem_ctx_uint_get_nbi pshmem_ctx_uint_get_nbi
#define shmem_ctx_ulong_get_nbi pshmem_ctx_ulong_get_nbi
#define shmem_ctx_ulonglong_get_nbi pshmem_ctx_ulonglong_get_nbi
#define shmem_ctx_longdouble_get_nbi pshmem_ctx_longdouble_get_nbi
#define shmem_char_get_nbi pshmem_char_get_nbi
#define shmem_short_get_nbi pshmem_short_get_nbi
#define shmem_int_get_nbi pshmem_int_get_nbi
#define shmem_long_get_nbi pshmem_long_get_nbi
#define shmem_float_get_nbi pshmem_float_get_nbi
#define shmem_double_get_nbi pshmem_double_get_nbi
#define shmem_longlong_get_nbi pshmem_longlong_get_nbi
#define shmem_schar_get_nbi pshmem_schar_get_nbi
#define shmem_uchar_get_nbi pshmem_uchar_get_nbi
#define shmem_ushort_get_nbi pshmem_ushort_get_nbi
#define shmem_uint_get_nbi pshmem_uint_get_nbi
#define shmem_ulong_get_nbi pshmem_ulong_get_nbi
#define shmem_ulonglong_get_nbi pshmem_ulonglong_get_nbi
#define shmem_longdouble_get_nbi pshmem_longdouble_get_nbi
#define shmem_ctx_get8_nbi pshmem_ctx_get8_nbi
#define shmem_ctx_get16_nbi pshmem_ctx_get16_nbi
@ -303,6 +414,7 @@
#define shmem_ctx_get64_nbi pshmem_ctx_get64_nbi
#define shmem_ctx_get128_nbi pshmem_ctx_get128_nbi
#define shmem_ctx_getmem_nbi pshmem_ctx_getmem_nbi
#define shmem_get8_nbi pshmem_get8_nbi
#define shmem_get16_nbi pshmem_get16_nbi
#define shmem_get32_nbi pshmem_get32_nbi
@ -319,16 +431,25 @@
#define shmem_ctx_int_atomic_swap pshmem_ctx_int_atomic_swap
#define shmem_ctx_long_atomic_swap pshmem_ctx_long_atomic_swap
#define shmem_ctx_longlong_atomic_swap pshmem_ctx_longlong_atomic_swap
#define shmem_ctx_uint_atomic_swap pshmem_ctx_uint_atomic_swap
#define shmem_ctx_ulong_atomic_swap pshmem_ctx_ulong_atomic_swap
#define shmem_ctx_ulonglong_atomic_swap pshmem_ctx_ulonglong_atomic_swap
#define shmem_double_atomic_swap pshmem_double_atomic_swap
#define shmem_float_atomic_swap pshmem_float_atomic_swap
#define shmem_int_atomic_swap pshmem_int_atomic_swap
#define shmem_long_atomic_swap pshmem_long_atomic_swap
#define shmem_longlong_atomic_swap pshmem_longlong_atomic_swap
#define shmem_uint_atomic_swap pshmem_uint_atomic_swap
#define shmem_ulong_atomic_swap pshmem_ulong_atomic_swap
#define shmem_ulonglong_atomic_swap pshmem_ulonglong_atomic_swap
#define shmem_double_swap pshmem_double_swap
#define shmem_float_swap pshmem_float_swap
#define shmem_int_swap pshmem_int_swap
#define shmem_long_swap pshmem_long_swap
#define shmem_longlong_swap pshmem_longlong_swap
#define shmemx_int32_swap pshmemx_int32_swap
#define shmemx_int64_swap pshmemx_int64_swap
@ -338,16 +459,25 @@
#define shmem_ctx_int_atomic_set pshmem_ctx_int_atomic_set
#define shmem_ctx_long_atomic_set pshmem_ctx_long_atomic_set
#define shmem_ctx_longlong_atomic_set pshmem_ctx_longlong_atomic_set
#define shmem_ctx_uint_atomic_set pshmem_ctx_uint_atomic_set
#define shmem_ctx_ulong_atomic_set pshmem_ctx_ulong_atomic_set
#define shmem_ctx_ulonglong_atomic_set pshmem_ctx_ulonglong_atomic_set
#define shmem_double_atomic_set pshmem_double_atomic_set
#define shmem_float_atomic_set pshmem_float_atomic_set
#define shmem_int_atomic_set pshmem_int_atomic_set
#define shmem_long_atomic_set pshmem_long_atomic_set
#define shmem_longlong_atomic_set pshmem_longlong_atomic_set
#define shmem_uint_atomic_set pshmem_uint_atomic_set
#define shmem_ulong_atomic_set pshmem_ulong_atomic_set
#define shmem_ulonglong_atomic_set pshmem_ulonglong_atomic_set
#define shmem_double_set pshmem_double_set
#define shmem_float_set pshmem_float_set
#define shmem_int_set pshmem_int_set
#define shmem_long_set pshmem_long_set
#define shmem_longlong_set pshmem_longlong_set
#define shmemx_int32_set pshmemx_int32_set
#define shmemx_int64_set pshmemx_int64_set
@ -355,59 +485,101 @@
#define shmem_ctx_int_atomic_compare_swap pshmem_ctx_int_atomic_compare_swap
#define shmem_ctx_long_atomic_compare_swap pshmem_ctx_long_atomic_compare_swap
#define shmem_ctx_longlong_atomic_compare_swap pshmem_ctx_longlong_atomic_compare_swap
#define shmem_ctx_uint_atomic_compare_swap pshmem_ctx_uint_atomic_compare_swap
#define shmem_ctx_ulong_atomic_compare_swap pshmem_ctx_ulong_atomic_compare_swap
#define shmem_ctx_ulonglong_atomic_compare_swap pshmem_ctx_ulonglong_atomic_compare_swap
#define shmem_int_atomic_compare_swap pshmem_int_atomic_compare_swap
#define shmem_long_atomic_compare_swap pshmem_long_atomic_compare_swap
#define shmem_longlong_atomic_compare_swap pshmem_longlong_atomic_compare_swap
#define shmem_uint_atomic_compare_swap pshmem_uint_atomic_compare_swap
#define shmem_ulong_atomic_compare_swap pshmem_ulong_atomic_compare_swap
#define shmem_ulonglong_atomic_compare_swap pshmem_ulonglong_atomic_compare_swap
#define shmem_int_cswap pshmem_int_cswap
#define shmem_long_cswap pshmem_long_cswap
#define shmem_longlong_cswap pshmem_longlong_cswap
#define shmemx_int32_cswap pshmemx_int32_cswap
#define shmemx_int64_cswap pshmemx_int64_cswap
/* Atomic Fetch&Add */
#define shmem_ctx_int_atomic_fetch_add pshmem_ctx_int_atomic_fetch_add
#define shmem_ctx_long_atomic_fetch_add pshmem_ctx_long_atomic_fetch_add
#define shmem_ctx_longlong_atomic_fetch_add pshmem_ctx_longlong_atomic_fetch_add
#define shmem_int_atomic_fetch_add pshmem_int_atomic_fetch_add
#define shmem_long_atomic_fetch_add pshmem_long_atomic_fetch_add
#define shmem_longlong_atomic_fetch_add pshmem_longlong_atomic_fetch_add
#define shmem_int_fadd pshmem_int_fadd
#define shmem_long_fadd pshmem_long_fadd
#define shmem_longlong_fadd pshmem_longlong_fadd
#define shmemx_int32_fadd pshmemx_int32_fadd
#define shmemx_int64_fadd pshmemx_int64_fadd
#define shmem_ctx_int_atomic_fetch_add pshmem_ctx_int_atomic_fetch_add
#define shmem_ctx_long_atomic_fetch_add pshmem_ctx_long_atomic_fetch_add
#define shmem_ctx_longlong_atomic_fetch_add pshmem_ctx_longlong_atomic_fetch_add
#define shmem_ctx_uint_atomic_fetch_add pshmem_ctx_uint_atomic_fetch_add
#define shmem_ctx_ulong_atomic_fetch_add pshmem_ctx_ulong_atomic_fetch_add
#define shmem_ctx_ulonglong_atomic_fetch_add pshmem_ctx_ulonglong_atomic_fetch_add
#define shmem_int_atomic_fetch_add pshmem_int_atomic_fetch_add
#define shmem_long_atomic_fetch_add pshmem_long_atomic_fetch_add
#define shmem_longlong_atomic_fetch_add pshmem_longlong_atomic_fetch_add
#define shmem_uint_atomic_fetch_add pshmem_uint_atomic_fetch_add
#define shmem_ulong_atomic_fetch_add pshmem_ulong_atomic_fetch_add
#define shmem_ulonglong_atomic_fetch_add pshmem_ulonglong_atomic_fetch_add
#define shmem_int_fadd pshmem_int_fadd
#define shmem_long_fadd pshmem_long_fadd
#define shmem_longlong_fadd pshmem_longlong_fadd
#define shmemx_int32_fadd pshmemx_int32_fadd
#define shmemx_int64_fadd pshmemx_int64_fadd
/* Atomic Fetch&And */
#define shmem_int_atomic_fetch_and pshmem_int_atomic_fetch_and
#define shmem_long_atomic_fetch_and pshmem_long_atomic_fetch_and
#define shmem_longlong_atomic_fetch_and pshmem_longlong_atomic_fetch_and
#define shmem_uint_atomic_fetch_and pshmem_uint_atomic_fetch_and
#define shmem_ulong_atomic_fetch_and pshmem_ulong_atomic_fetch_and
#define shmem_ulonglong_atomic_fetch_and pshmem_ulonglong_atomic_fetch_and
#define shmem_ctx_int_atomic_fetch_and pshmem_ctx_int_atomic_fetch_and
#define shmem_ctx_long_atomic_fetch_and pshmem_ctx_long_atomic_fetch_and
#define shmem_ctx_longlong_atomic_fetch_and pshmem_ctx_longlong_atomic_fetch_and
#define shmem_ctx_uint_atomic_fetch_and pshmem_ctx_uint_atomic_fetch_and
#define shmem_ctx_ulong_atomic_fetch_and pshmem_ctx_ulong_atomic_fetch_and
#define shmem_ctx_ulonglong_atomic_fetch_and pshmem_ctx_ulonglong_atomic_fetch_and
#define shmemx_int32_atomic_fetch_and pshmemx_int32_atomic_fetch_and
#define shmemx_int64_atomic_fetch_and pshmemx_int64_atomic_fetch_and
#define shmemx_uint32_atomic_fetch_and pshmemx_uint32_atomic_fetch_and
#define shmemx_uint64_atomic_fetch_and pshmemx_uint64_atomic_fetch_and
/* Atomic Fetch&Or */
#define shmem_int_atomic_fetch_or pshmem_int_atomic_fetch_or
#define shmem_long_atomic_fetch_or pshmem_long_atomic_fetch_or
#define shmem_longlong_atomic_fetch_or pshmem_longlong_atomic_fetch_or
#define shmem_uint_atomic_fetch_or pshmem_uint_atomic_fetch_or
#define shmem_ulong_atomic_fetch_or pshmem_ulong_atomic_fetch_or
#define shmem_ulonglong_atomic_fetch_or pshmem_ulonglong_atomic_fetch_or
#define shmem_ctx_int_atomic_fetch_or pshmem_ctx_int_atomic_fetch_or
#define shmem_ctx_long_atomic_fetch_or pshmem_ctx_long_atomic_fetch_or
#define shmem_ctx_longlong_atomic_fetch_or pshmem_ctx_longlong_atomic_fetch_or
#define shmem_ctx_uint_atomic_fetch_or pshmem_ctx_uint_atomic_fetch_or
#define shmem_ctx_ulong_atomic_fetch_or pshmem_ctx_ulong_atomic_fetch_or
#define shmem_ctx_ulonglong_atomic_fetch_or pshmem_ctx_ulonglong_atomic_fetch_or
#define shmemx_int32_atomic_fetch_or pshmemx_int32_atomic_fetch_or
#define shmemx_int64_atomic_fetch_or pshmemx_int64_atomic_fetch_or
#define shmemx_uint32_atomic_fetch_or pshmemx_uint32_atomic_fetch_or
#define shmemx_uint64_atomic_fetch_or pshmemx_uint64_atomic_fetch_or
/* Atomic Fetch&Xor */
#define shmem_int_atomic_fetch_xor pshmem_int_atomic_fetch_xor
#define shmem_long_atomic_fetch_xor pshmem_long_atomic_fetch_xor
#define shmem_longlong_atomic_fetch_xor pshmem_longlong_atomic_fetch_xor
#define shmem_uint_atomic_fetch_xor pshmem_uint_atomic_fetch_xor
#define shmem_ulong_atomic_fetch_xor pshmem_ulong_atomic_fetch_xor
#define shmem_ulonglong_atomic_fetch_xor pshmem_ulonglong_atomic_fetch_xor
#define shmem_ctx_int_atomic_fetch_xor pshmem_ctx_int_atomic_fetch_xor
#define shmem_ctx_long_atomic_fetch_xor pshmem_ctx_long_atomic_fetch_xor
#define shmem_ctx_longlong_atomic_fetch_xor pshmem_ctx_longlong_atomic_fetch_xor
#define shmem_ctx_uint_atomic_fetch_xor pshmem_ctx_uint_atomic_fetch_xor
#define shmem_ctx_ulong_atomic_fetch_xor pshmem_ctx_ulong_atomic_fetch_xor
#define shmem_ctx_ulonglong_atomic_fetch_xor pshmem_ctx_ulonglong_atomic_fetch_xor
#define shmemx_int32_atomic_fetch_xor pshmemx_int32_atomic_fetch_xor
#define shmemx_int64_atomic_fetch_xor pshmemx_int64_atomic_fetch_xor
#define shmemx_uint32_atomic_fetch_xor pshmemx_uint32_atomic_fetch_xor
@ -419,16 +591,25 @@
#define shmem_ctx_int_atomic_fetch pshmem_ctx_int_atomic_fetch
#define shmem_ctx_long_atomic_fetch pshmem_ctx_long_atomic_fetch
#define shmem_ctx_longlong_atomic_fetch pshmem_ctx_longlong_atomic_fetch
#define shmem_ctx_uint_atomic_fetch pshmem_ctx_uint_atomic_fetch
#define shmem_ctx_ulong_atomic_fetch pshmem_ctx_ulong_atomic_fetch
#define shmem_ctx_ulonglong_atomic_fetch pshmem_ctx_ulonglong_atomic_fetch
#define shmem_double_atomic_fetch pshmem_double_atomic_fetch
#define shmem_float_atomic_fetch pshmem_float_atomic_fetch
#define shmem_int_atomic_fetch pshmem_int_atomic_fetch
#define shmem_long_atomic_fetch pshmem_long_atomic_fetch
#define shmem_longlong_atomic_fetch pshmem_longlong_atomic_fetch
#define shmem_uint_atomic_fetch pshmem_uint_atomic_fetch
#define shmem_ulong_atomic_fetch pshmem_ulong_atomic_fetch
#define shmem_ulonglong_atomic_fetch pshmem_ulonglong_atomic_fetch
#define shmem_double_fetch pshmem_double_fetch
#define shmem_float_fetch pshmem_float_fetch
#define shmem_int_fetch pshmem_int_fetch
#define shmem_long_fetch pshmem_long_fetch
#define shmem_longlong_fetch pshmem_longlong_fetch
#define shmemx_int32_fetch pshmemx_int32_fetch
#define shmemx_int64_fetch pshmemx_int64_fetch
@ -436,12 +617,21 @@
#define shmem_ctx_int_atomic_fetch_inc pshmem_ctx_int_atomic_fetch_inc
#define shmem_ctx_long_atomic_fetch_inc pshmem_ctx_long_atomic_fetch_inc
#define shmem_ctx_longlong_atomic_fetch_inc pshmem_ctx_longlong_atomic_fetch_inc
#define shmem_ctx_uint_atomic_fetch_inc pshmem_ctx_uint_atomic_fetch_inc
#define shmem_ctx_ulong_atomic_fetch_inc pshmem_ctx_ulong_atomic_fetch_inc
#define shmem_ctx_ulonglong_atomic_fetch_inc pshmem_ctx_ulonglong_atomic_fetch_inc
#define shmem_uint_atomic_fetch_inc pshmem_uint_atomic_fetch_inc
#define shmem_ulong_atomic_fetch_inc pshmem_ulong_atomic_fetch_inc
#define shmem_ulonglong_atomic_fetch_inc pshmem_ulonglong_atomic_fetch_inc
#define shmem_int_atomic_fetch_inc pshmem_int_atomic_fetch_inc
#define shmem_long_atomic_fetch_inc pshmem_long_atomic_fetch_inc
#define shmem_longlong_atomic_fetch_inc pshmem_longlong_atomic_fetch_inc
#define shmem_int_finc pshmem_int_finc
#define shmem_long_finc pshmem_long_finc
#define shmem_longlong_finc pshmem_longlong_finc
#define shmemx_int32_finc pshmemx_int32_finc
#define shmemx_int64_finc pshmemx_int64_finc
@ -449,48 +639,84 @@
#define shmem_ctx_int_atomic_add pshmem_ctx_int_atomic_add
#define shmem_ctx_long_atomic_add pshmem_ctx_long_atomic_add
#define shmem_ctx_longlong_atomic_add pshmem_ctx_longlong_atomic_add
#define shmem_ctx_uint_atomic_add pshmem_ctx_uint_atomic_add
#define shmem_ctx_ulong_atomic_add pshmem_ctx_ulong_atomic_add
#define shmem_ctx_ulonglong_atomic_add pshmem_ctx_ulonglong_atomic_add
#define shmem_int_atomic_add pshmem_int_atomic_add
#define shmem_long_atomic_add pshmem_long_atomic_add
#define shmem_longlong_atomic_add pshmem_longlong_atomic_add
#define shmem_uint_atomic_add pshmem_uint_atomic_add
#define shmem_ulong_atomic_add pshmem_ulong_atomic_add
#define shmem_ulonglong_atomic_add pshmem_ulonglong_atomic_add
#define shmem_int_add pshmem_int_add
#define shmem_long_add pshmem_long_add
#define shmem_longlong_add pshmem_longlong_add
#define shmemx_int32_add pshmemx_int32_add
#define shmemx_int64_add pshmemx_int64_add
/* Atomic And */
#define shmem_int_atomic_and pshmem_int_atomic_and
#define shmem_long_atomic_and pshmem_long_atomic_and
#define shmem_longlong_atomic_and pshmem_longlong_atomic_and
#define shmem_uint_atomic_and pshmem_uint_atomic_and
#define shmem_ulong_atomic_and pshmem_ulong_atomic_and
#define shmem_ulonglong_atomic_and pshmem_ulonglong_atomic_and
#define shmem_ctx_int_atomic_and pshmem_ctx_int_atomic_and
#define shmem_ctx_long_atomic_and pshmem_ctx_long_atomic_and
#define shmem_ctx_longlong_atomic_and pshmem_ctx_longlong_atomic_and
#define shmem_ctx_uint_atomic_and pshmem_ctx_uint_atomic_and
#define shmem_ctx_ulong_atomic_and pshmem_ctx_ulong_atomic_and
#define shmem_ctx_ulonglong_atomic_and pshmem_ctx_ulonglong_atomic_and
#define shmemx_int32_atomic_and pshmemx_int32_atomic_and
#define shmemx_int64_atomic_and pshmemx_int64_atomic_and
#define shmemx_uint32_atomic_and pshmemx_uint32_atomic_and
#define shmemx_uint64_atomic_and pshmemx_uint64_atomic_and
/* Atomic Or */
#define shmem_int_atomic_or pshmem_int_atomic_or
#define shmem_long_atomic_or pshmem_long_atomic_or
#define shmem_longlong_atomic_or pshmem_longlong_atomic_or
#define shmem_uint_atomic_or pshmem_uint_atomic_or
#define shmem_ulong_atomic_or pshmem_ulong_atomic_or
#define shmem_ulonglong_atomic_or pshmem_ulonglong_atomic_or
#define shmem_ctx_int_atomic_or pshmem_ctx_int_atomic_or
#define shmem_ctx_long_atomic_or pshmem_ctx_long_atomic_or
#define shmem_ctx_longlong_atomic_or pshmem_ctx_longlong_atomic_or
#define shmem_ctx_uint_atomic_or pshmem_ctx_uint_atomic_or
#define shmem_ctx_ulong_atomic_or pshmem_ctx_ulong_atomic_or
#define shmem_ctx_ulonglong_atomic_or pshmem_ctx_ulonglong_atomic_or
#define shmemx_int32_atomic_or pshmemx_int32_atomic_or
#define shmemx_int64_atomic_or pshmemx_int64_atomic_or
#define shmemx_uint32_atomic_or pshmemx_uint32_atomic_or
#define shmemx_uint64_atomic_or pshmemx_uint64_atomic_or
/* Atomic Xor */
#define shmem_int_atomic_xor pshmem_int_atomic_xor
#define shmem_long_atomic_xor pshmem_long_atomic_xor
#define shmem_longlong_atomic_xor pshmem_longlong_atomic_xor
#define shmem_uint_atomic_xor pshmem_uint_atomic_xor
#define shmem_ulong_atomic_xor pshmem_ulong_atomic_xor
#define shmem_ulonglong_atomic_xor pshmem_ulonglong_atomic_xor
#define shmem_ctx_int_atomic_xor pshmem_ctx_int_atomic_xor
#define shmem_ctx_long_atomic_xor pshmem_ctx_long_atomic_xor
#define shmem_ctx_longlong_atomic_xor pshmem_ctx_longlong_atomic_xor
#define shmem_ctx_uint_atomic_xor pshmem_ctx_uint_atomic_xor
#define shmem_ctx_ulong_atomic_xor pshmem_ctx_ulong_atomic_xor
#define shmem_ctx_ulonglong_atomic_xor pshmem_ctx_ulonglong_atomic_xor
#define shmemx_int32_atomic_xor pshmemx_int32_atomic_xor
#define shmemx_int64_atomic_xor pshmemx_int64_atomic_xor
#define shmemx_uint32_atomic_xor pshmemx_uint32_atomic_xor
#define shmemx_uint64_atomic_xor pshmemx_uint64_atomic_xor
@ -498,12 +724,21 @@
#define shmem_ctx_int_atomic_inc pshmem_ctx_int_atomic_inc
#define shmem_ctx_long_atomic_inc pshmem_ctx_long_atomic_inc
#define shmem_ctx_longlong_atomic_inc pshmem_ctx_longlong_atomic_inc
#define shmem_ctx_uint_atomic_inc pshmem_ctx_uint_atomic_inc
#define shmem_ctx_ulong_atomic_inc pshmem_ctx_ulong_atomic_inc
#define shmem_ctx_ulonglong_atomic_inc pshmem_ctx_ulonglong_atomic_inc
#define shmem_int_atomic_inc pshmem_int_atomic_inc
#define shmem_long_atomic_inc pshmem_long_atomic_inc
#define shmem_longlong_atomic_inc pshmem_longlong_atomic_inc
#define shmem_uint_atomic_inc pshmem_uint_atomic_inc
#define shmem_ulong_atomic_inc pshmem_ulong_atomic_inc
#define shmem_ulonglong_atomic_inc pshmem_ulonglong_atomic_inc
#define shmem_int_inc pshmem_int_inc
#define shmem_long_inc pshmem_long_inc
#define shmem_longlong_inc pshmem_longlong_inc
#define shmemx_int32_inc pshmemx_int32_inc
#define shmemx_int64_inc pshmemx_int64_inc

Просмотреть файл

@ -63,23 +63,38 @@
#pragma weak shmem_ctx_int_atomic_add = pshmem_ctx_int_atomic_add
#pragma weak shmem_ctx_long_atomic_add = pshmem_ctx_long_atomic_add
#pragma weak shmem_ctx_longlong_atomic_add = pshmem_ctx_longlong_atomic_add
#pragma weak shmem_ctx_uint_atomic_add = pshmem_ctx_uint_atomic_add
#pragma weak shmem_ctx_ulong_atomic_add = pshmem_ctx_ulong_atomic_add
#pragma weak shmem_ctx_ulonglong_atomic_add = pshmem_ctx_ulonglong_atomic_add
#pragma weak shmem_int_atomic_add = pshmem_int_atomic_add
#pragma weak shmem_long_atomic_add = pshmem_long_atomic_add
#pragma weak shmem_longlong_atomic_add = pshmem_longlong_atomic_add
#pragma weak shmem_uint_atomic_add = pshmem_uint_atomic_add
#pragma weak shmem_ulong_atomic_add = pshmem_ulong_atomic_add
#pragma weak shmem_ulonglong_atomic_add = pshmem_ulonglong_atomic_add
#pragma weak shmem_int_add = pshmem_int_add
#pragma weak shmem_long_add = pshmem_long_add
#pragma weak shmem_longlong_add = pshmem_longlong_add
#pragma weak shmemx_int32_add = pshmemx_int32_add
#pragma weak shmemx_int64_add = pshmemx_int64_add
#include "oshmem/shmem/c/profile/defines.h"
#endif
SHMEM_CTX_TYPE_ATOMIC_ADD(_uint, unsigned int, shmem)
SHMEM_CTX_TYPE_ATOMIC_ADD(_ulong, unsigned long, shmem)
SHMEM_CTX_TYPE_ATOMIC_ADD(_ulonglong, unsigned long long, shmem)
SHMEM_CTX_TYPE_ATOMIC_ADD(_int, int, shmem)
SHMEM_CTX_TYPE_ATOMIC_ADD(_long, long, shmem)
SHMEM_CTX_TYPE_ATOMIC_ADD(_longlong, long long, shmem)
SHMEM_TYPE_ATOMIC_ADD(_int, int, shmem)
SHMEM_TYPE_ATOMIC_ADD(_long, long, shmem)
SHMEM_TYPE_ATOMIC_ADD(_longlong, long long, shmem)
SHMEM_TYPE_ATOMIC_ADD(_uint, unsigned int, shmem)
SHMEM_TYPE_ATOMIC_ADD(_ulong, unsigned long, shmem)
SHMEM_TYPE_ATOMIC_ADD(_ulonglong, unsigned long long, shmem)
/* deprecated APIs */
#define SHMEM_TYPE_ADD(type_name, type, prefix) \

Просмотреть файл

@ -25,12 +25,20 @@
*/
#if OSHMEM_PROFILING
#include "oshmem/include/pshmem.h"
#pragma weak shmem_int_atomic_and = pshmem_int_atomic_and
#pragma weak shmem_long_atomic_and = pshmem_long_atomic_and
#pragma weak shmem_longlong_atomic_and = pshmem_longlong_atomic_and
#pragma weak shmem_uint_atomic_and = pshmem_uint_atomic_and
#pragma weak shmem_ulong_atomic_and = pshmem_ulong_atomic_and
#pragma weak shmem_ulonglong_atomic_and = pshmem_ulonglong_atomic_and
#pragma weak shmem_ctx_int_atomic_and = pshmem_ctx_int_atomic_and
#pragma weak shmem_ctx_long_atomic_and = pshmem_ctx_long_atomic_and
#pragma weak shmem_ctx_longlong_atomic_and = pshmem_ctx_longlong_atomic_and
#pragma weak shmem_ctx_uint_atomic_and = pshmem_ctx_uint_atomic_and
#pragma weak shmem_ctx_ulong_atomic_and = pshmem_ctx_ulong_atomic_and
#pragma weak shmem_ctx_ulonglong_atomic_and = pshmem_ctx_ulonglong_atomic_and
#pragma weak shmemx_int32_atomic_and = pshmemx_int32_atomic_and
#pragma weak shmemx_int64_atomic_and = pshmemx_int64_atomic_and
#pragma weak shmemx_uint32_atomic_and = pshmemx_uint32_atomic_and
@ -38,9 +46,15 @@
#include "oshmem/shmem/c/profile/defines.h"
#endif
OSHMEM_TYPE_OP(int, int, shmem, and)
OSHMEM_TYPE_OP(long, long, shmem, and)
OSHMEM_TYPE_OP(longlong, long long, shmem, and)
OSHMEM_TYPE_OP(uint, unsigned int, shmem, and)
OSHMEM_TYPE_OP(ulong, unsigned long, shmem, and)
OSHMEM_TYPE_OP(ulonglong, unsigned long long, shmem, and)
OSHMEM_CTX_TYPE_OP(int, int, shmem, and)
OSHMEM_CTX_TYPE_OP(long, long, shmem, and)
OSHMEM_CTX_TYPE_OP(longlong, long long, shmem, and)
OSHMEM_CTX_TYPE_OP(uint, unsigned int, shmem, and)
OSHMEM_CTX_TYPE_OP(ulong, unsigned long, shmem, and)
OSHMEM_CTX_TYPE_OP(ulonglong, unsigned long long, shmem, and)

Просмотреть файл

@ -65,15 +65,24 @@
#if OSHMEM_PROFILING
#include "oshmem/include/pshmem.h"
#pragma weak shmem_ctx_uint_atomic_compare_swap = pshmem_ctx_uint_atomic_compare_swap
#pragma weak shmem_ctx_ulong_atomic_compare_swap = pshmem_ctx_ulong_atomic_compare_swap
#pragma weak shmem_ctx_ulonglong_atomic_compare_swap = pshmem_ctx_ulonglong_atomic_compare_swap
#pragma weak shmem_ctx_int_atomic_compare_swap = pshmem_ctx_int_atomic_compare_swap
#pragma weak shmem_ctx_long_atomic_compare_swap = pshmem_ctx_long_atomic_compare_swap
#pragma weak shmem_ctx_longlong_atomic_compare_swap = pshmem_ctx_longlong_atomic_compare_swap
#pragma weak shmem_int_atomic_compare_swap = pshmem_int_atomic_compare_swap
#pragma weak shmem_long_atomic_compare_swap = pshmem_long_atomic_compare_swap
#pragma weak shmem_longlong_atomic_compare_swap = pshmem_longlong_atomic_compare_swap
#pragma weak shmem_uint_atomic_compare_swap = pshmem_uint_atomic_compare_swap
#pragma weak shmem_ulong_atomic_compare_swap = pshmem_ulong_atomic_compare_swap
#pragma weak shmem_ulonglong_atomic_compare_swap = pshmem_ulonglong_atomic_compare_swap
#pragma weak shmem_int_cswap = pshmem_int_cswap
#pragma weak shmem_long_cswap = pshmem_long_cswap
#pragma weak shmem_longlong_cswap = pshmem_longlong_cswap
#pragma weak shmemx_int32_cswap = pshmemx_int32_cswap
#pragma weak shmemx_int64_cswap = pshmemx_int64_cswap
#include "oshmem/shmem/c/profile/defines.h"
@ -82,9 +91,15 @@
SHMEM_CTX_TYPE_ATOMIC_COMPARE_SWAP(_int, int, shmem)
SHMEM_CTX_TYPE_ATOMIC_COMPARE_SWAP(_long, long, shmem)
SHMEM_CTX_TYPE_ATOMIC_COMPARE_SWAP(_longlong, long long, shmem)
SHMEM_CTX_TYPE_ATOMIC_COMPARE_SWAP(_uint, unsigned int, shmem)
SHMEM_CTX_TYPE_ATOMIC_COMPARE_SWAP(_ulong, unsigned long, shmem)
SHMEM_CTX_TYPE_ATOMIC_COMPARE_SWAP(_ulonglong, unsigned long long, shmem)
SHMEM_TYPE_ATOMIC_COMPARE_SWAP(_int, int, shmem)
SHMEM_TYPE_ATOMIC_COMPARE_SWAP(_long, long, shmem)
SHMEM_TYPE_ATOMIC_COMPARE_SWAP(_longlong, long long, shmem)
SHMEM_TYPE_ATOMIC_COMPARE_SWAP(_uint, unsigned int, shmem)
SHMEM_TYPE_ATOMIC_COMPARE_SWAP(_ulong, unsigned long, shmem)
SHMEM_TYPE_ATOMIC_COMPARE_SWAP(_ulonglong, unsigned long long, shmem)
/* deprecated APIs */
#define SHMEM_TYPE_CSWAP(type_name, type, prefix) \

Просмотреть файл

@ -67,12 +67,21 @@
#pragma weak shmem_ctx_int_atomic_fetch_add = pshmem_ctx_int_atomic_fetch_add
#pragma weak shmem_ctx_long_atomic_fetch_add = pshmem_ctx_long_atomic_fetch_add
#pragma weak shmem_ctx_longlong_atomic_fetch_add = pshmem_ctx_longlong_atomic_fetch_add
#pragma weak shmem_ctx_uint_atomic_fetch_add = pshmem_ctx_uint_atomic_fetch_add
#pragma weak shmem_ctx_ulong_atomic_fetch_add = pshmem_ctx_ulong_atomic_fetch_add
#pragma weak shmem_ctx_ulonglong_atomic_fetch_add = pshmem_ctx_ulonglong_atomic_fetch_add
#pragma weak shmem_int_atomic_fetch_add = pshmem_int_atomic_fetch_add
#pragma weak shmem_long_atomic_fetch_add = pshmem_long_atomic_fetch_add
#pragma weak shmem_longlong_atomic_fetch_add = pshmem_longlong_atomic_fetch_add
#pragma weak shmem_uint_atomic_fetch_add = pshmem_uint_atomic_fetch_add
#pragma weak shmem_ulong_atomic_fetch_add = pshmem_ulong_atomic_fetch_add
#pragma weak shmem_ulonglong_atomic_fetch_add = pshmem_ulonglong_atomic_fetch_add
#pragma weak shmem_int_fadd = pshmem_int_fadd
#pragma weak shmem_long_fadd = pshmem_long_fadd
#pragma weak shmem_longlong_fadd = pshmem_longlong_fadd
#pragma weak shmemx_int32_fadd = pshmemx_int32_fadd
#pragma weak shmemx_int64_fadd = pshmemx_int64_fadd
#include "oshmem/shmem/c/profile/defines.h"
@ -81,9 +90,15 @@
SHMEM_CTX_TYPE_ATOMIC_FETCH_ADD(_int, int, shmem)
SHMEM_CTX_TYPE_ATOMIC_FETCH_ADD(_long, long, shmem)
SHMEM_CTX_TYPE_ATOMIC_FETCH_ADD(_longlong, long long, shmem)
SHMEM_CTX_TYPE_ATOMIC_FETCH_ADD(_uint, unsigned int, shmem)
SHMEM_CTX_TYPE_ATOMIC_FETCH_ADD(_ulong, unsigned long, shmem)
SHMEM_CTX_TYPE_ATOMIC_FETCH_ADD(_ulonglong, unsigned long long, shmem)
SHMEM_TYPE_ATOMIC_FETCH_ADD(_int, int, shmem)
SHMEM_TYPE_ATOMIC_FETCH_ADD(_long, long, shmem)
SHMEM_TYPE_ATOMIC_FETCH_ADD(_longlong, long long, shmem)
SHMEM_TYPE_ATOMIC_FETCH_ADD(_uint, unsigned int, shmem)
SHMEM_TYPE_ATOMIC_FETCH_ADD(_ulong, unsigned long, shmem)
SHMEM_TYPE_ATOMIC_FETCH_ADD(_ulonglong, unsigned long long, shmem)
/* deprecated APIs */
#define SHMEM_TYPE_FADD(type_name, type, prefix) \

Просмотреть файл

@ -27,12 +27,20 @@
*/
#if OSHMEM_PROFILING
#include "oshmem/include/pshmem.h"
#pragma weak shmem_int_atomic_fetch_and = pshmem_int_atomic_fetch_and
#pragma weak shmem_long_atomic_fetch_and = pshmem_long_atomic_fetch_and
#pragma weak shmem_longlong_atomic_fetch_and = pshmem_longlong_atomic_fetch_and
#pragma weak shmem_uint_atomic_fetch_and = pshmem_uint_atomic_fetch_and
#pragma weak shmem_ulong_atomic_fetch_and = pshmem_ulong_atomic_fetch_and
#pragma weak shmem_ulonglong_atomic_fetch_and = pshmem_ulonglong_atomic_fetch_and
#pragma weak shmem_ctx_int_atomic_fetch_and = pshmem_ctx_int_atomic_fetch_and
#pragma weak shmem_ctx_long_atomic_fetch_and = pshmem_ctx_long_atomic_fetch_and
#pragma weak shmem_ctx_longlong_atomic_fetch_and = pshmem_ctx_longlong_atomic_fetch_and
#pragma weak shmem_ctx_uint_atomic_fetch_and = pshmem_ctx_uint_atomic_fetch_and
#pragma weak shmem_ctx_ulong_atomic_fetch_and = pshmem_ctx_ulong_atomic_fetch_and
#pragma weak shmem_ctx_ulonglong_atomic_fetch_and = pshmem_ctx_ulonglong_atomic_fetch_and
#pragma weak shmemx_int32_atomic_fetch_and = pshmemx_int32_atomic_fetch_and
#pragma weak shmemx_int64_atomic_fetch_and = pshmemx_int64_atomic_fetch_and
#pragma weak shmemx_uint32_atomic_fetch_and = pshmemx_uint32_atomic_fetch_and
@ -42,9 +50,15 @@
unsigned int shmem_uint_atomic_fand(unsigned int *target, unsigned int value, int pe);
OSHMEM_TYPE_FOP(int, int, shmem, and)
OSHMEM_TYPE_FOP(long, long, shmem, and)
OSHMEM_TYPE_FOP(longlong, long long, shmem, and)
OSHMEM_TYPE_FOP(uint, unsigned int, shmem, and)
OSHMEM_TYPE_FOP(ulong, unsigned long, shmem, and)
OSHMEM_TYPE_FOP(ulonglong, unsigned long long, shmem, and)
OSHMEM_CTX_TYPE_FOP(int, int, shmem, and)
OSHMEM_CTX_TYPE_FOP(long, long, shmem, and)
OSHMEM_CTX_TYPE_FOP(longlong, long long, shmem, and)
OSHMEM_CTX_TYPE_FOP(uint, unsigned int, shmem, and)
OSHMEM_CTX_TYPE_FOP(ulong, unsigned long, shmem, and)
OSHMEM_CTX_TYPE_FOP(ulonglong, unsigned long long, shmem, and)

Просмотреть файл

@ -68,18 +68,27 @@
#pragma weak shmem_ctx_int_atomic_fetch = pshmem_ctx_int_atomic_fetch
#pragma weak shmem_ctx_long_atomic_fetch = pshmem_ctx_long_atomic_fetch
#pragma weak shmem_ctx_longlong_atomic_fetch = pshmem_ctx_longlong_atomic_fetch
#pragma weak shmem_ctx_uint_atomic_fetch = pshmem_ctx_uint_atomic_fetch
#pragma weak shmem_ctx_ulong_atomic_fetch = pshmem_ctx_ulong_atomic_fetch
#pragma weak shmem_ctx_ulonglong_atomic_fetch = pshmem_ctx_ulonglong_atomic_fetch
#pragma weak shmem_ctx_double_atomic_fetch = pshmem_ctx_double_atomic_fetch
#pragma weak shmem_ctx_float_atomic_fetch = pshmem_ctx_float_atomic_fetch
#pragma weak shmem_int_atomic_fetch = pshmem_int_atomic_fetch
#pragma weak shmem_long_atomic_fetch = pshmem_long_atomic_fetch
#pragma weak shmem_longlong_atomic_fetch = pshmem_longlong_atomic_fetch
#pragma weak shmem_uint_atomic_fetch = pshmem_uint_atomic_fetch
#pragma weak shmem_ulong_atomic_fetch = pshmem_ulong_atomic_fetch
#pragma weak shmem_ulonglong_atomic_fetch = pshmem_ulonglong_atomic_fetch
#pragma weak shmem_double_atomic_fetch = pshmem_double_atomic_fetch
#pragma weak shmem_float_atomic_fetch = pshmem_float_atomic_fetch
#pragma weak shmem_int_fetch = pshmem_int_fetch
#pragma weak shmem_long_fetch = pshmem_long_fetch
#pragma weak shmem_longlong_fetch = pshmem_longlong_fetch
#pragma weak shmem_double_fetch = pshmem_double_fetch
#pragma weak shmem_float_fetch = pshmem_float_fetch
#pragma weak shmemx_int32_fetch = pshmemx_int32_fetch
#pragma weak shmemx_int64_fetch = pshmemx_int64_fetch
#include "oshmem/shmem/c/profile/defines.h"
@ -88,11 +97,17 @@
SHMEM_CTX_TYPE_ATOMIC_FETCH(_int, int, shmem)
SHMEM_CTX_TYPE_ATOMIC_FETCH(_long, long, shmem)
SHMEM_CTX_TYPE_ATOMIC_FETCH(_longlong, long long, shmem)
SHMEM_CTX_TYPE_ATOMIC_FETCH(_uint, unsigned int, shmem)
SHMEM_CTX_TYPE_ATOMIC_FETCH(_ulong, unsigned long, shmem)
SHMEM_CTX_TYPE_ATOMIC_FETCH(_ulonglong, unsigned long long, shmem)
SHMEM_CTX_TYPE_ATOMIC_FETCH(_double, double, shmem)
SHMEM_CTX_TYPE_ATOMIC_FETCH(_float, float, shmem)
SHMEM_TYPE_ATOMIC_FETCH(_int, int, shmem)
SHMEM_TYPE_ATOMIC_FETCH(_long, long, shmem)
SHMEM_TYPE_ATOMIC_FETCH(_longlong, long long, shmem)
SHMEM_TYPE_ATOMIC_FETCH(_uint, unsigned int, shmem)
SHMEM_TYPE_ATOMIC_FETCH(_ulong, unsigned long, shmem)
SHMEM_TYPE_ATOMIC_FETCH(_ulonglong, unsigned long long, shmem)
SHMEM_TYPE_ATOMIC_FETCH(_double, double, shmem)
SHMEM_TYPE_ATOMIC_FETCH(_float, float, shmem)

Просмотреть файл

@ -68,12 +68,21 @@
#pragma weak shmem_ctx_int_atomic_fetch_inc = pshmem_ctx_int_atomic_fetch_inc
#pragma weak shmem_ctx_long_atomic_fetch_inc = pshmem_ctx_long_atomic_fetch_inc
#pragma weak shmem_ctx_longlong_atomic_fetch_inc = pshmem_ctx_longlong_atomic_fetch_inc
#pragma weak shmem_ctx_uint_atomic_fetch_inc = pshmem_ctx_uint_atomic_fetch_inc
#pragma weak shmem_ctx_ulong_atomic_fetch_inc = pshmem_ctx_ulong_atomic_fetch_inc
#pragma weak shmem_ctx_ulonglong_atomic_fetch_inc = pshmem_ctx_ulonglong_atomic_fetch_inc
#pragma weak shmem_int_atomic_fetch_inc = pshmem_int_atomic_fetch_inc
#pragma weak shmem_long_atomic_fetch_inc = pshmem_long_atomic_fetch_inc
#pragma weak shmem_longlong_atomic_fetch_inc = pshmem_longlong_atomic_fetch_inc
#pragma weak shmem_uint_atomic_fetch_inc = pshmem_uint_atomic_fetch_inc
#pragma weak shmem_ulong_atomic_fetch_inc = pshmem_ulong_atomic_fetch_inc
#pragma weak shmem_ulonglong_atomic_fetch_inc = pshmem_ulonglong_atomic_fetch_inc
#pragma weak shmem_int_finc = pshmem_int_finc
#pragma weak shmem_long_finc = pshmem_long_finc
#pragma weak shmem_longlong_finc = pshmem_longlong_finc
#pragma weak shmemx_int32_finc = pshmemx_int32_finc
#pragma weak shmemx_int64_finc = pshmemx_int64_finc
#include "oshmem/shmem/c/profile/defines.h"
@ -82,9 +91,15 @@
SHMEM_CTX_TYPE_ATOMIC_FETCH_INC(_int, int, shmem)
SHMEM_CTX_TYPE_ATOMIC_FETCH_INC(_long, long, shmem)
SHMEM_CTX_TYPE_ATOMIC_FETCH_INC(_longlong, long long, shmem)
SHMEM_CTX_TYPE_ATOMIC_FETCH_INC(_uint, unsigned int, shmem)
SHMEM_CTX_TYPE_ATOMIC_FETCH_INC(_ulong, unsigned long, shmem)
SHMEM_CTX_TYPE_ATOMIC_FETCH_INC(_ulonglong, unsigned long long, shmem)
SHMEM_TYPE_ATOMIC_FETCH_INC(_int, int, shmem)
SHMEM_TYPE_ATOMIC_FETCH_INC(_long, long, shmem)
SHMEM_TYPE_ATOMIC_FETCH_INC(_longlong, long long, shmem)
SHMEM_TYPE_ATOMIC_FETCH_INC(_uint, unsigned int, shmem)
SHMEM_TYPE_ATOMIC_FETCH_INC(_ulong, unsigned long, shmem)
SHMEM_TYPE_ATOMIC_FETCH_INC(_ulonglong, unsigned long long, shmem)
/* deprecated APIs */
#define SHMEM_TYPE_FINC(type_name, type, prefix) \

Просмотреть файл

@ -27,12 +27,20 @@
*/
#if OSHMEM_PROFILING
#include "oshmem/include/pshmem.h"
#pragma weak shmem_int_atomic_fetch_or = pshmem_int_atomic_fetch_or
#pragma weak shmem_long_atomic_fetch_or = pshmem_long_atomic_fetch_or
#pragma weak shmem_longlong_atomic_fetch_or = pshmem_longlong_atomic_fetch_or
#pragma weak shmem_uint_atomic_fetch_or = pshmem_uint_atomic_fetch_or
#pragma weak shmem_ulong_atomic_fetch_or = pshmem_ulong_atomic_fetch_or
#pragma weak shmem_ulonglong_atomic_fetch_or = pshmem_ulonglong_atomic_fetch_or
#pragma weak shmem_ctx_int_atomic_fetch_or = pshmem_ctx_int_atomic_fetch_or
#pragma weak shmem_ctx_long_atomic_fetch_or = pshmem_ctx_long_atomic_fetch_or
#pragma weak shmem_ctx_longlong_atomic_fetch_or = pshmem_ctx_longlong_atomic_fetch_or
#pragma weak shmem_ctx_uint_atomic_fetch_or = pshmem_ctx_uint_atomic_fetch_or
#pragma weak shmem_ctx_ulong_atomic_fetch_or = pshmem_ctx_ulong_atomic_fetch_or
#pragma weak shmem_ctx_ulonglong_atomic_fetch_or = pshmem_ctx_ulonglong_atomic_fetch_or
#pragma weak shmemx_int32_atomic_fetch_or = pshmemx_int32_atomic_fetch_or
#pragma weak shmemx_int64_atomic_fetch_or = pshmemx_int64_atomic_fetch_or
#pragma weak shmemx_uint32_atomic_fetch_or = pshmemx_uint32_atomic_fetch_or
@ -40,9 +48,15 @@
#include "oshmem/shmem/c/profile/defines.h"
#endif
OSHMEM_TYPE_FOP(int, int, shmem, or)
OSHMEM_TYPE_FOP(long, long, shmem, or)
OSHMEM_TYPE_FOP(longlong, long long, shmem, or)
OSHMEM_TYPE_FOP(uint, unsigned int, shmem, or)
OSHMEM_TYPE_FOP(ulong, unsigned long, shmem, or)
OSHMEM_TYPE_FOP(ulonglong, unsigned long long, shmem, or)
OSHMEM_CTX_TYPE_FOP(int, int, shmem, or)
OSHMEM_CTX_TYPE_FOP(long, long, shmem, or)
OSHMEM_CTX_TYPE_FOP(longlong, long long, shmem, or)
OSHMEM_CTX_TYPE_FOP(uint, unsigned int, shmem, or)
OSHMEM_CTX_TYPE_FOP(ulong, unsigned long, shmem, or)
OSHMEM_CTX_TYPE_FOP(ulonglong, unsigned long long, shmem, or)

Просмотреть файл

@ -27,12 +27,20 @@
*/
#if OSHMEM_PROFILING
#include "oshmem/include/pshmem.h"
#pragma weak shmem_int_atomic_fetch_xor = pshmem_int_atomic_fetch_xor
#pragma weak shmem_long_atomic_fetch_xor = pshmem_long_atomic_fetch_xor
#pragma weak shmem_longlong_atomic_fetch_xor = pshmem_longlong_atomic_fetch_xor
#pragma weak shmem_uint_atomic_fetch_xor = pshmem_uint_atomic_fetch_xor
#pragma weak shmem_ulong_atomic_fetch_xor = pshmem_ulong_atomic_fetch_xor
#pragma weak shmem_ulonglong_atomic_fetch_xor = pshmem_ulonglong_atomic_fetch_xor
#pragma weak shmem_ctx_int_atomic_fetch_xor = pshmem_ctx_int_atomic_fetch_xor
#pragma weak shmem_ctx_long_atomic_fetch_xor = pshmem_ctx_long_atomic_fetch_xor
#pragma weak shmem_ctx_longlong_atomic_fetch_xor = pshmem_ctx_longlong_atomic_fetch_xor
#pragma weak shmem_ctx_uint_atomic_fetch_xor = pshmem_ctx_uint_atomic_fetch_xor
#pragma weak shmem_ctx_ulong_atomic_fetch_xor = pshmem_ctx_ulong_atomic_fetch_xor
#pragma weak shmem_ctx_ulonglong_atomic_fetch_xor = pshmem_ctx_ulonglong_atomic_fetch_xor
#pragma weak shmemx_int32_atomic_fetch_xor = pshmemx_int32_atomic_fetch_xor
#pragma weak shmemx_int64_atomic_fetch_xor = pshmemx_int64_atomic_fetch_xor
#pragma weak shmemx_uint32_atomic_fetch_xor = pshmemx_uint32_atomic_fetch_xor
@ -40,9 +48,15 @@
#include "oshmem/shmem/c/profile/defines.h"
#endif
OSHMEM_TYPE_FOP(int, int, shmem, xor)
OSHMEM_TYPE_FOP(long, long, shmem, xor)
OSHMEM_TYPE_FOP(longlong, long long, shmem, xor)
OSHMEM_TYPE_FOP(uint, unsigned int, shmem, xor)
OSHMEM_TYPE_FOP(ulong, unsigned long, shmem, xor)
OSHMEM_TYPE_FOP(ulonglong, unsigned long long, shmem, xor)
OSHMEM_CTX_TYPE_FOP(int, int, shmem, xor)
OSHMEM_CTX_TYPE_FOP(long, long, shmem, xor)
OSHMEM_CTX_TYPE_FOP(longlong, long long, shmem, xor)
OSHMEM_CTX_TYPE_FOP(uint, unsigned int, shmem, xor)
OSHMEM_CTX_TYPE_FOP(ulong, unsigned long, shmem, xor)
OSHMEM_CTX_TYPE_FOP(ulonglong, unsigned long long, shmem, xor)

Просмотреть файл

@ -63,17 +63,29 @@
#pragma weak shmem_ctx_int_g = pshmem_ctx_int_g
#pragma weak shmem_ctx_long_g = pshmem_ctx_long_g
#pragma weak shmem_ctx_longlong_g = pshmem_ctx_longlong_g
#pragma weak shmem_ctx_uchar_g = pshmem_ctx_uchar_g
#pragma weak shmem_ctx_ushort_g = pshmem_ctx_ushort_g
#pragma weak shmem_ctx_uint_g = pshmem_ctx_uint_g
#pragma weak shmem_ctx_ulong_g = pshmem_ctx_ulong_g
#pragma weak shmem_ctx_ulonglong_g = pshmem_ctx_ulonglong_g
#pragma weak shmem_ctx_float_g = pshmem_ctx_float_g
#pragma weak shmem_ctx_double_g = pshmem_ctx_double_g
#pragma weak shmem_ctx_longdouble_g = pshmem_ctx_longdouble_g
#pragma weak shmem_char_g = pshmem_char_g
#pragma weak shmem_short_g = pshmem_short_g
#pragma weak shmem_int_g = pshmem_int_g
#pragma weak shmem_long_g = pshmem_long_g
#pragma weak shmem_longlong_g = pshmem_longlong_g
#pragma weak shmem_uchar_g = pshmem_uchar_g
#pragma weak shmem_ushort_g = pshmem_ushort_g
#pragma weak shmem_uint_g = pshmem_uint_g
#pragma weak shmem_ulong_g = pshmem_ulong_g
#pragma weak shmem_ulonglong_g = pshmem_ulonglong_g
#pragma weak shmem_float_g = pshmem_float_g
#pragma weak shmem_double_g = pshmem_double_g
#pragma weak shmem_longdouble_g = pshmem_longdouble_g
#pragma weak shmemx_int16_g = pshmemx_int16_g
#pragma weak shmemx_int32_g = pshmemx_int32_g
#pragma weak shmemx_int64_g = pshmemx_int64_g
@ -85,6 +97,12 @@ SHMEM_CTX_TYPE_G(_short, short, shmem)
SHMEM_CTX_TYPE_G(_int, int, shmem)
SHMEM_CTX_TYPE_G(_long, long, shmem)
SHMEM_CTX_TYPE_G(_longlong, long long, shmem)
SHMEM_CTX_TYPE_G(_schar, signed char, shmem)
SHMEM_CTX_TYPE_G(_uchar, unsigned char, shmem)
SHMEM_CTX_TYPE_G(_ushort, unsigned short, shmem)
SHMEM_CTX_TYPE_G(_uint, unsigned int, shmem)
SHMEM_CTX_TYPE_G(_ulong, unsigned long, shmem)
SHMEM_CTX_TYPE_G(_ulonglong, unsigned long long, shmem)
SHMEM_CTX_TYPE_G(_float, float, shmem)
SHMEM_CTX_TYPE_G(_double, double, shmem)
SHMEM_CTX_TYPE_G(_longdouble, long double, shmem)
@ -93,6 +111,12 @@ SHMEM_TYPE_G(_short, short, shmem)
SHMEM_TYPE_G(_int, int, shmem)
SHMEM_TYPE_G(_long, long, shmem)
SHMEM_TYPE_G(_longlong, long long, shmem)
SHMEM_TYPE_G(_schar, signed char, shmem)
SHMEM_TYPE_G(_uchar, unsigned char, shmem)
SHMEM_TYPE_G(_ushort, unsigned short, shmem)
SHMEM_TYPE_G(_uint, unsigned int, shmem)
SHMEM_TYPE_G(_ulong, unsigned long, shmem)
SHMEM_TYPE_G(_ulonglong, unsigned long long, shmem)
SHMEM_TYPE_G(_float, float, shmem)
SHMEM_TYPE_G(_double, double, shmem)
SHMEM_TYPE_G(_longdouble, long double, shmem)

Просмотреть файл

@ -62,23 +62,38 @@
#pragma weak shmem_ctx_int_get = pshmem_ctx_int_get
#pragma weak shmem_ctx_long_get = pshmem_ctx_long_get
#pragma weak shmem_ctx_longlong_get = pshmem_ctx_longlong_get
#pragma weak shmem_ctx_schar_get = pshmem_ctx_schar_get
#pragma weak shmem_ctx_uchar_get = pshmem_ctx_uchar_get
#pragma weak shmem_ctx_ushort_get = pshmem_ctx_ushort_get
#pragma weak shmem_ctx_uint_get = pshmem_ctx_uint_get
#pragma weak shmem_ctx_ulong_get = pshmem_ctx_ulong_get
#pragma weak shmem_ctx_ulonglong_get = pshmem_ctx_ulonglong_get
#pragma weak shmem_ctx_float_get = pshmem_ctx_float_get
#pragma weak shmem_ctx_double_get = pshmem_ctx_double_get
#pragma weak shmem_ctx_longdouble_get = pshmem_ctx_longdouble_get
#pragma weak shmem_char_get = pshmem_char_get
#pragma weak shmem_short_get = pshmem_short_get
#pragma weak shmem_int_get = pshmem_int_get
#pragma weak shmem_long_get = pshmem_long_get
#pragma weak shmem_longlong_get = pshmem_longlong_get
#pragma weak shmem_schar_get = pshmem_schar_get
#pragma weak shmem_uchar_get = pshmem_uchar_get
#pragma weak shmem_ushort_get = pshmem_ushort_get
#pragma weak shmem_uint_get = pshmem_uint_get
#pragma weak shmem_ulong_get = pshmem_ulong_get
#pragma weak shmem_ulonglong_get = pshmem_ulonglong_get
#pragma weak shmem_float_get = pshmem_float_get
#pragma weak shmem_double_get = pshmem_double_get
#pragma weak shmem_longdouble_get = pshmem_longdouble_get
#pragma weak shmem_ctx_getmem = pshmem_ctx_getmem
#pragma weak shmem_ctx_get8 = pshmem_ctx_get8
#pragma weak shmem_ctx_get16 = pshmem_ctx_get16
#pragma weak shmem_ctx_get32 = pshmem_ctx_get32
#pragma weak shmem_ctx_get64 = pshmem_ctx_get64
#pragma weak shmem_ctx_get128 = pshmem_ctx_get128
#pragma weak shmem_getmem = pshmem_getmem
#pragma weak shmem_get8 = pshmem_get8
#pragma weak shmem_get16 = pshmem_get16
@ -93,6 +108,12 @@ SHMEM_CTX_TYPE_GET(_short, short)
SHMEM_CTX_TYPE_GET(_int, int)
SHMEM_CTX_TYPE_GET(_long, long)
SHMEM_CTX_TYPE_GET(_longlong, long long)
SHMEM_CTX_TYPE_GET(_schar, signed char)
SHMEM_CTX_TYPE_GET(_uchar, unsigned char)
SHMEM_CTX_TYPE_GET(_ushort, unsigned short)
SHMEM_CTX_TYPE_GET(_uint, unsigned int)
SHMEM_CTX_TYPE_GET(_ulong, unsigned long)
SHMEM_CTX_TYPE_GET(_ulonglong, unsigned long long)
SHMEM_CTX_TYPE_GET(_float, float)
SHMEM_CTX_TYPE_GET(_double, double)
SHMEM_CTX_TYPE_GET(_longdouble, long double)
@ -101,6 +122,12 @@ SHMEM_TYPE_GET(_short, short)
SHMEM_TYPE_GET(_int, int)
SHMEM_TYPE_GET(_long, long)
SHMEM_TYPE_GET(_longlong, long long)
SHMEM_TYPE_GET(_schar, signed char)
SHMEM_TYPE_GET(_uchar, unsigned char)
SHMEM_TYPE_GET(_ushort, unsigned short)
SHMEM_TYPE_GET(_uint, unsigned int)
SHMEM_TYPE_GET(_ulong, unsigned long)
SHMEM_TYPE_GET(_ulonglong, unsigned long long)
SHMEM_TYPE_GET(_float, float)
SHMEM_TYPE_GET(_double, double)
SHMEM_TYPE_GET(_longdouble, long double)

Просмотреть файл

@ -62,23 +62,38 @@
#pragma weak shmem_ctx_int_get_nbi = pshmem_ctx_int_get_nbi
#pragma weak shmem_ctx_long_get_nbi = pshmem_ctx_long_get_nbi
#pragma weak shmem_ctx_longlong_get_nbi = pshmem_ctx_longlong_get_nbi
#pragma weak shmem_ctx_schar_get_nbi = pshmem_ctx_schar_get_nbi
#pragma weak shmem_ctx_uchar_get_nbi = pshmem_ctx_uchar_get_nbi
#pragma weak shmem_ctx_ushort_get_nbi = pshmem_ctx_ushort_get_nbi
#pragma weak shmem_ctx_uint_get_nbi = pshmem_ctx_uint_get_nbi
#pragma weak shmem_ctx_ulong_get_nbi = pshmem_ctx_ulong_get_nbi
#pragma weak shmem_ctx_ulonglong_get_nbi = pshmem_ctx_ulonglong_get_nbi
#pragma weak shmem_ctx_float_get_nbi = pshmem_ctx_float_get_nbi
#pragma weak shmem_ctx_double_get_nbi = pshmem_ctx_double_get_nbi
#pragma weak shmem_ctx_longdouble_get_nbi = pshmem_ctx_longdouble_get_nbi
#pragma weak shmem_char_get_nbi = pshmem_char_get_nbi
#pragma weak shmem_short_get_nbi = pshmem_short_get_nbi
#pragma weak shmem_int_get_nbi = pshmem_int_get_nbi
#pragma weak shmem_long_get_nbi = pshmem_long_get_nbi
#pragma weak shmem_longlong_get_nbi = pshmem_longlong_get_nbi
#pragma weak shmem_schar_get_nbi = pshmem_schar_get_nbi
#pragma weak shmem_uchar_get_nbi = pshmem_uchar_get_nbi
#pragma weak shmem_ushort_get_nbi = pshmem_ushort_get_nbi
#pragma weak shmem_uint_get_nbi = pshmem_uint_get_nbi
#pragma weak shmem_ulong_get_nbi = pshmem_ulong_get_nbi
#pragma weak shmem_ulonglong_get_nbi = pshmem_ulonglong_get_nbi
#pragma weak shmem_float_get_nbi = pshmem_float_get_nbi
#pragma weak shmem_double_get_nbi = pshmem_double_get_nbi
#pragma weak shmem_longdouble_get_nbi = pshmem_longdouble_get_nbi
#pragma weak shmem_ctx_get8_nbi = pshmem_ctx_get8_nbi
#pragma weak shmem_ctx_get16_nbi = pshmem_ctx_get16_nbi
#pragma weak shmem_ctx_get32_nbi = pshmem_ctx_get32_nbi
#pragma weak shmem_ctx_get64_nbi = pshmem_ctx_get64_nbi
#pragma weak shmem_ctx_get128_nbi = pshmem_ctx_get128_nbi
#pragma weak shmem_ctx_getmem_nbi = pshmem_ctx_getmem_nbi
#pragma weak shmem_get8_nbi = pshmem_get8_nbi
#pragma weak shmem_get16_nbi = pshmem_get16_nbi
#pragma weak shmem_get32_nbi = pshmem_get32_nbi
@ -93,6 +108,12 @@ SHMEM_CTX_TYPE_GET_NB(_short, short)
SHMEM_CTX_TYPE_GET_NB(_int, int)
SHMEM_CTX_TYPE_GET_NB(_long, long)
SHMEM_CTX_TYPE_GET_NB(_longlong, long long)
SHMEM_CTX_TYPE_GET_NB(_schar, signed char)
SHMEM_CTX_TYPE_GET_NB(_uchar, unsigned char)
SHMEM_CTX_TYPE_GET_NB(_ushort, unsigned short)
SHMEM_CTX_TYPE_GET_NB(_uint, unsigned int)
SHMEM_CTX_TYPE_GET_NB(_ulong, unsigned long)
SHMEM_CTX_TYPE_GET_NB(_ulonglong, unsigned long long)
SHMEM_CTX_TYPE_GET_NB(_float, float)
SHMEM_CTX_TYPE_GET_NB(_double, double)
SHMEM_CTX_TYPE_GET_NB(_longdouble, long double)
@ -101,6 +122,12 @@ SHMEM_TYPE_GET_NB(_short, short)
SHMEM_TYPE_GET_NB(_int, int)
SHMEM_TYPE_GET_NB(_long, long)
SHMEM_TYPE_GET_NB(_longlong, long long)
SHMEM_TYPE_GET_NB(_schar, signed char)
SHMEM_TYPE_GET_NB(_uchar, unsigned char)
SHMEM_TYPE_GET_NB(_ushort, unsigned short)
SHMEM_TYPE_GET_NB(_uint, unsigned int)
SHMEM_TYPE_GET_NB(_ulong, unsigned long)
SHMEM_TYPE_GET_NB(_ulonglong, unsigned long long)
SHMEM_TYPE_GET_NB(_float, float)
SHMEM_TYPE_GET_NB(_double, double)
SHMEM_TYPE_GET_NB(_longdouble, long double)

Просмотреть файл

@ -67,22 +67,37 @@
#pragma weak shmem_ctx_int_iget = pshmem_ctx_int_iget
#pragma weak shmem_ctx_long_iget = pshmem_ctx_long_iget
#pragma weak shmem_ctx_longlong_iget = pshmem_ctx_longlong_iget
#pragma weak shmem_ctx_schar_iget = pshmem_ctx_schar_iget
#pragma weak shmem_ctx_uchar_iget = pshmem_ctx_uchar_iget
#pragma weak shmem_ctx_ushort_iget = pshmem_ctx_ushort_iget
#pragma weak shmem_ctx_uint_iget = pshmem_ctx_uint_iget
#pragma weak shmem_ctx_ulong_iget = pshmem_ctx_ulong_iget
#pragma weak shmem_ctx_ulonglong_iget = pshmem_ctx_ulonglong_iget
#pragma weak shmem_ctx_float_iget = pshmem_ctx_float_iget
#pragma weak shmem_ctx_double_iget = pshmem_ctx_double_iget
#pragma weak shmem_ctx_longdouble_iget = pshmem_ctx_longdouble_iget
#pragma weak shmem_char_iget = pshmem_char_iget
#pragma weak shmem_short_iget = pshmem_short_iget
#pragma weak shmem_int_iget = pshmem_int_iget
#pragma weak shmem_long_iget = pshmem_long_iget
#pragma weak shmem_longlong_iget = pshmem_longlong_iget
#pragma weak shmem_schar_iget = pshmem_schar_iget
#pragma weak shmem_uchar_iget = pshmem_uchar_iget
#pragma weak shmem_ushort_iget = pshmem_ushort_iget
#pragma weak shmem_uint_iget = pshmem_uint_iget
#pragma weak shmem_ulong_iget = pshmem_ulong_iget
#pragma weak shmem_ulonglong_iget = pshmem_ulonglong_iget
#pragma weak shmem_float_iget = pshmem_float_iget
#pragma weak shmem_double_iget = pshmem_double_iget
#pragma weak shmem_longdouble_iget = pshmem_longdouble_iget
#pragma weak shmem_ctx_iget8 = pshmem_ctx_iget8
#pragma weak shmem_ctx_iget16 = pshmem_ctx_iget16
#pragma weak shmem_ctx_iget32 = pshmem_ctx_iget32
#pragma weak shmem_ctx_iget64 = pshmem_ctx_iget64
#pragma weak shmem_ctx_iget128 = pshmem_ctx_iget128
#pragma weak shmem_iget8 = pshmem_iget8
#pragma weak shmem_iget16 = pshmem_iget16
#pragma weak shmem_iget32 = pshmem_iget32
@ -96,6 +111,12 @@ SHMEM_CTX_TYPE_IGET(_short, short)
SHMEM_CTX_TYPE_IGET(_int, int)
SHMEM_CTX_TYPE_IGET(_long, long)
SHMEM_CTX_TYPE_IGET(_longlong, long long)
SHMEM_CTX_TYPE_IGET(_schar, signed char)
SHMEM_CTX_TYPE_IGET(_uchar, unsigned char)
SHMEM_CTX_TYPE_IGET(_ushort, unsigned short)
SHMEM_CTX_TYPE_IGET(_uint, unsigned int)
SHMEM_CTX_TYPE_IGET(_ulong, unsigned long)
SHMEM_CTX_TYPE_IGET(_ulonglong, unsigned long long)
SHMEM_CTX_TYPE_IGET(_float, float)
SHMEM_CTX_TYPE_IGET(_double, double)
SHMEM_CTX_TYPE_IGET(_longdouble, long double)
@ -104,6 +125,12 @@ SHMEM_TYPE_IGET(_short, short)
SHMEM_TYPE_IGET(_int, int)
SHMEM_TYPE_IGET(_long, long)
SHMEM_TYPE_IGET(_longlong, long long)
SHMEM_TYPE_IGET(_schar, signed char)
SHMEM_TYPE_IGET(_uchar, unsigned char)
SHMEM_TYPE_IGET(_ushort, unsigned short)
SHMEM_TYPE_IGET(_uint, unsigned int)
SHMEM_TYPE_IGET(_ulong, unsigned long)
SHMEM_TYPE_IGET(_ulonglong, unsigned long long)
SHMEM_TYPE_IGET(_float, float)
SHMEM_TYPE_IGET(_double, double)
SHMEM_TYPE_IGET(_longdouble, long double)

Просмотреть файл

@ -63,12 +63,21 @@
#pragma weak shmem_ctx_int_atomic_inc = pshmem_ctx_int_atomic_inc
#pragma weak shmem_ctx_long_atomic_inc = pshmem_ctx_long_atomic_inc
#pragma weak shmem_ctx_longlong_atomic_inc = pshmem_ctx_longlong_atomic_inc
#pragma weak shmem_ctx_uint_atomic_inc = pshmem_ctx_uint_atomic_inc
#pragma weak shmem_ctx_ulong_atomic_inc = pshmem_ctx_ulong_atomic_inc
#pragma weak shmem_ctx_ulonglong_atomic_inc = pshmem_ctx_ulonglong_atomic_inc
#pragma weak shmem_int_atomic_inc = pshmem_int_atomic_inc
#pragma weak shmem_long_atomic_inc = pshmem_long_atomic_inc
#pragma weak shmem_longlong_atomic_inc = pshmem_longlong_atomic_inc
#pragma weak shmem_uint_atomic_inc = pshmem_uint_atomic_inc
#pragma weak shmem_ulong_atomic_inc = pshmem_ulong_atomic_inc
#pragma weak shmem_ulonglong_atomic_inc = pshmem_ulonglong_atomic_inc
#pragma weak shmem_int_inc = pshmem_int_inc
#pragma weak shmem_long_inc = pshmem_long_inc
#pragma weak shmem_longlong_inc = pshmem_longlong_inc
#pragma weak shmemx_int32_inc = pshmemx_int32_inc
#pragma weak shmemx_int64_inc = pshmemx_int64_inc
#include "oshmem/shmem/c/profile/defines.h"
@ -77,14 +86,20 @@
SHMEM_CTX_TYPE_ATOMIC_INC(_int, int, shmem)
SHMEM_CTX_TYPE_ATOMIC_INC(_long, long, shmem)
SHMEM_CTX_TYPE_ATOMIC_INC(_longlong, long long, shmem)
SHMEM_CTX_TYPE_ATOMIC_INC(_uint, unsigned int, shmem)
SHMEM_CTX_TYPE_ATOMIC_INC(_ulong, unsigned long, shmem)
SHMEM_CTX_TYPE_ATOMIC_INC(_ulonglong, unsigned long long, shmem)
SHMEM_TYPE_ATOMIC_INC(_int, int, shmem)
SHMEM_TYPE_ATOMIC_INC(_long, long, shmem)
SHMEM_TYPE_ATOMIC_INC(_longlong, long long, shmem)
SHMEM_TYPE_ATOMIC_INC(_uint, unsigned int, shmem)
SHMEM_TYPE_ATOMIC_INC(_ulong, unsigned long, shmem)
SHMEM_TYPE_ATOMIC_INC(_ulonglong, unsigned long long, shmem)
#define SHMEM_TYPE_INC(type_name, type, prefix) \
void prefix##type_name##_inc(type *target, int pe) \
{ \
DO_SHMEM_TYPE_ATOMIC_INC(oshmem_ctx_default, type_name, \
DO_SHMEM_TYPE_ATOMIC_INC(oshmem_ctx_default, type_name, \
type, target, pe); \
return ; \
}

Просмотреть файл

@ -68,22 +68,37 @@
#pragma weak shmem_ctx_int_iput = pshmem_ctx_int_iput
#pragma weak shmem_ctx_long_iput = pshmem_ctx_long_iput
#pragma weak shmem_ctx_longlong_iput = pshmem_ctx_longlong_iput
#pragma weak shmem_ctx_schar_iput = pshmem_ctx_schar_iput
#pragma weak shmem_ctx_uchar_iput = pshmem_ctx_uchar_iput
#pragma weak shmem_ctx_ushort_iput = pshmem_ctx_ushort_iput
#pragma weak shmem_ctx_uint_iput = pshmem_ctx_uint_iput
#pragma weak shmem_ctx_ulong_iput = pshmem_ctx_ulong_iput
#pragma weak shmem_ctx_ulonglong_iput = pshmem_ctx_ulonglong_iput
#pragma weak shmem_ctx_float_iput = pshmem_ctx_float_iput
#pragma weak shmem_ctx_double_iput = pshmem_ctx_double_iput
#pragma weak shmem_ctx_longdouble_iput = pshmem_ctx_longdouble_iput
#pragma weak shmem_char_iput = pshmem_char_iput
#pragma weak shmem_short_iput = pshmem_short_iput
#pragma weak shmem_int_iput = pshmem_int_iput
#pragma weak shmem_long_iput = pshmem_long_iput
#pragma weak shmem_longlong_iput = pshmem_longlong_iput
#pragma weak shmem_schar_iput = pshmem_schar_iput
#pragma weak shmem_uchar_iput = pshmem_uchar_iput
#pragma weak shmem_ushort_iput = pshmem_ushort_iput
#pragma weak shmem_uint_iput = pshmem_uint_iput
#pragma weak shmem_ulong_iput = pshmem_ulong_iput
#pragma weak shmem_ulonglong_iput = pshmem_ulonglong_iput
#pragma weak shmem_float_iput = pshmem_float_iput
#pragma weak shmem_double_iput = pshmem_double_iput
#pragma weak shmem_longdouble_iput = pshmem_longdouble_iput
#pragma weak shmem_ctx_iput8 = pshmem_ctx_iput8
#pragma weak shmem_ctx_iput16 = pshmem_ctx_iput16
#pragma weak shmem_ctx_iput32 = pshmem_ctx_iput32
#pragma weak shmem_ctx_iput64 = pshmem_ctx_iput64
#pragma weak shmem_ctx_iput128 = pshmem_ctx_iput128
#pragma weak shmem_iput8 = pshmem_iput8
#pragma weak shmem_iput16 = pshmem_iput16
#pragma weak shmem_iput32 = pshmem_iput32
@ -97,6 +112,12 @@ SHMEM_CTX_TYPE_IPUT(_short, short)
SHMEM_CTX_TYPE_IPUT(_int, int)
SHMEM_CTX_TYPE_IPUT(_long, long)
SHMEM_CTX_TYPE_IPUT(_longlong, long long)
SHMEM_CTX_TYPE_IPUT(_schar, signed char)
SHMEM_CTX_TYPE_IPUT(_uchar, unsigned char)
SHMEM_CTX_TYPE_IPUT(_ushort, unsigned short)
SHMEM_CTX_TYPE_IPUT(_uint, unsigned int)
SHMEM_CTX_TYPE_IPUT(_ulong, unsigned long)
SHMEM_CTX_TYPE_IPUT(_ulonglong, unsigned long long)
SHMEM_CTX_TYPE_IPUT(_float, float)
SHMEM_CTX_TYPE_IPUT(_double, double)
SHMEM_CTX_TYPE_IPUT(_longdouble, long double)
@ -105,6 +126,12 @@ SHMEM_TYPE_IPUT(_short, short)
SHMEM_TYPE_IPUT(_int, int)
SHMEM_TYPE_IPUT(_long, long)
SHMEM_TYPE_IPUT(_longlong, long long)
SHMEM_TYPE_IPUT(_schar, signed char)
SHMEM_TYPE_IPUT(_uchar, unsigned char)
SHMEM_TYPE_IPUT(_ushort, unsigned short)
SHMEM_TYPE_IPUT(_uint, unsigned int)
SHMEM_TYPE_IPUT(_ulong, unsigned long)
SHMEM_TYPE_IPUT(_ulonglong, unsigned long long)
SHMEM_TYPE_IPUT(_float, float)
SHMEM_TYPE_IPUT(_double, double)
SHMEM_TYPE_IPUT(_longdouble, long double)

Просмотреть файл

@ -25,12 +25,20 @@
*/
#if OSHMEM_PROFILING
#include "oshmem/include/pshmem.h"
#pragma weak shmem_int_atomic_or = pshmem_int_atomic_or
#pragma weak shmem_long_atomic_or = pshmem_long_atomic_or
#pragma weak shmem_longlong_atomic_or = pshmem_longlong_atomic_or
#pragma weak shmem_uint_atomic_or = pshmem_uint_atomic_or
#pragma weak shmem_ulong_atomic_or = pshmem_ulong_atomic_or
#pragma weak shmem_ulonglong_atomic_or = pshmem_ulonglong_atomic_or
#pragma weak shmem_ctx_int_atomic_or = pshmem_ctx_int_atomic_or
#pragma weak shmem_ctx_long_atomic_or = pshmem_ctx_long_atomic_or
#pragma weak shmem_ctx_longlong_atomic_or = pshmem_ctx_longlong_atomic_or
#pragma weak shmem_ctx_uint_atomic_or = pshmem_ctx_uint_atomic_or
#pragma weak shmem_ctx_ulong_atomic_or = pshmem_ctx_ulong_atomic_or
#pragma weak shmem_ctx_ulonglong_atomic_or = pshmem_ctx_ulonglong_atomic_or
#pragma weak shmemx_int32_atomic_or = pshmemx_int32_atomic_or
#pragma weak shmemx_int64_atomic_or = pshmemx_int64_atomic_or
#pragma weak shmemx_uint32_atomic_or = pshmemx_uint32_atomic_or
@ -38,9 +46,15 @@
#include "oshmem/shmem/c/profile/defines.h"
#endif
OSHMEM_TYPE_OP(int, int, shmem, or)
OSHMEM_TYPE_OP(long, long, shmem, or)
OSHMEM_TYPE_OP(longlong, long long, shmem, or)
OSHMEM_TYPE_OP(uint, unsigned int, shmem, or)
OSHMEM_TYPE_OP(ulong, unsigned long, shmem, or)
OSHMEM_TYPE_OP(ulonglong, unsigned long long, shmem, or)
OSHMEM_CTX_TYPE_OP(int, int, shmem, or)
OSHMEM_CTX_TYPE_OP(long, long, shmem, or)
OSHMEM_CTX_TYPE_OP(longlong, long long, shmem, or)
OSHMEM_CTX_TYPE_OP(uint, unsigned int, shmem, or)
OSHMEM_CTX_TYPE_OP(ulong, unsigned long, shmem, or)
OSHMEM_CTX_TYPE_OP(ulonglong, unsigned long long, shmem, or)

Просмотреть файл

@ -64,17 +64,31 @@
#pragma weak shmem_ctx_int_p = pshmem_ctx_int_p
#pragma weak shmem_ctx_long_p = pshmem_ctx_long_p
#pragma weak shmem_ctx_longlong_p = pshmem_ctx_longlong_p
#pragma weak shmem_ctx_schar_p = pshmem_ctx_schar_p
#pragma weak shmem_ctx_uchar_p = pshmem_ctx_uchar_p
#pragma weak shmem_ctx_ushort_p = pshmem_ctx_ushort_p
#pragma weak shmem_ctx_uint_p = pshmem_ctx_uint_p
#pragma weak shmem_ctx_ulong_p = pshmem_ctx_ulong_p
#pragma weak shmem_ctx_ulonglong_p = pshmem_ctx_ulonglong_p
#pragma weak shmem_ctx_float_p = pshmem_ctx_float_p
#pragma weak shmem_ctx_double_p = pshmem_ctx_double_p
#pragma weak shmem_ctx_longdouble_p = pshmem_ctx_longdouble_p
#pragma weak shmem_char_p = pshmem_char_p
#pragma weak shmem_short_p = pshmem_short_p
#pragma weak shmem_int_p = pshmem_int_p
#pragma weak shmem_long_p = pshmem_long_p
#pragma weak shmem_longlong_p = pshmem_longlong_p
#pragma weak shmem_schar_p = pshmem_schar_p
#pragma weak shmem_uchar_p = pshmem_uchar_p
#pragma weak shmem_ushort_p = pshmem_ushort_p
#pragma weak shmem_uint_p = pshmem_uint_p
#pragma weak shmem_ulong_p = pshmem_ulong_p
#pragma weak shmem_ulonglong_p = pshmem_ulonglong_p
#pragma weak shmem_float_p = pshmem_float_p
#pragma weak shmem_double_p = pshmem_double_p
#pragma weak shmem_longdouble_p = pshmem_longdouble_p
#pragma weak shmemx_int16_p = pshmemx_int16_p
#pragma weak shmemx_int32_p = pshmemx_int32_p
#pragma weak shmemx_int64_p = pshmemx_int64_p
@ -86,6 +100,12 @@ SHMEM_CTX_TYPE_P(_short, short, shmem)
SHMEM_CTX_TYPE_P(_int, int, shmem)
SHMEM_CTX_TYPE_P(_long, long, shmem)
SHMEM_CTX_TYPE_P(_longlong, long long, shmem)
SHMEM_CTX_TYPE_P(_schar, signed char, shmem)
SHMEM_CTX_TYPE_P(_uchar, unsigned char, shmem)
SHMEM_CTX_TYPE_P(_ushort, unsigned short, shmem)
SHMEM_CTX_TYPE_P(_uint, unsigned int, shmem)
SHMEM_CTX_TYPE_P(_ulong, unsigned long, shmem)
SHMEM_CTX_TYPE_P(_ulonglong, unsigned long long, shmem)
SHMEM_CTX_TYPE_P(_float, float, shmem)
SHMEM_CTX_TYPE_P(_double, double, shmem)
SHMEM_CTX_TYPE_P(_longdouble, long double, shmem)
@ -94,6 +114,12 @@ SHMEM_TYPE_P(_short, short, shmem)
SHMEM_TYPE_P(_int, int, shmem)
SHMEM_TYPE_P(_long, long, shmem)
SHMEM_TYPE_P(_longlong, long long, shmem)
SHMEM_TYPE_P(_schar, signed char, shmem)
SHMEM_TYPE_P(_uchar, unsigned char, shmem)
SHMEM_TYPE_P(_ushort, unsigned short, shmem)
SHMEM_TYPE_P(_uint, unsigned int, shmem)
SHMEM_TYPE_P(_ulong, unsigned long, shmem)
SHMEM_TYPE_P(_ulonglong, unsigned long long, shmem)
SHMEM_TYPE_P(_float, float, shmem)
SHMEM_TYPE_P(_double, double, shmem)
SHMEM_TYPE_P(_longdouble, long double, shmem)

Просмотреть файл

@ -65,23 +65,38 @@
#pragma weak shmem_ctx_int_put = pshmem_ctx_int_put
#pragma weak shmem_ctx_long_put = pshmem_ctx_long_put
#pragma weak shmem_ctx_longlong_put = pshmem_ctx_longlong_put
#pragma weak shmem_ctx_schar_put = pshmem_ctx_schar_put
#pragma weak shmem_ctx_uchar_put = pshmem_ctx_uchar_put
#pragma weak shmem_ctx_ushort_put = pshmem_ctx_ushort_put
#pragma weak shmem_ctx_uint_put = pshmem_ctx_uint_put
#pragma weak shmem_ctx_ulong_put = pshmem_ctx_ulong_put
#pragma weak shmem_ctx_ulonglong_put = pshmem_ctx_ulonglong_put
#pragma weak shmem_ctx_float_put = pshmem_ctx_float_put
#pragma weak shmem_ctx_double_put = pshmem_ctx_double_put
#pragma weak shmem_ctx_longdouble_put = pshmem_ctx_longdouble_put
#pragma weak shmem_char_put = pshmem_char_put
#pragma weak shmem_short_put = pshmem_short_put
#pragma weak shmem_int_put = pshmem_int_put
#pragma weak shmem_long_put = pshmem_long_put
#pragma weak shmem_longlong_put = pshmem_longlong_put
#pragma weak shmem_schar_put = pshmem_schar_put
#pragma weak shmem_uchar_put = pshmem_uchar_put
#pragma weak shmem_ushort_put = pshmem_ushort_put
#pragma weak shmem_uint_put = pshmem_uint_put
#pragma weak shmem_ulong_put = pshmem_ulong_put
#pragma weak shmem_ulonglong_put = pshmem_ulonglong_put
#pragma weak shmem_float_put = pshmem_float_put
#pragma weak shmem_double_put = pshmem_double_put
#pragma weak shmem_longdouble_put = pshmem_longdouble_put
#pragma weak shmem_ctx_putmem = pshmem_ctx_putmem
#pragma weak shmem_ctx_put8 = pshmem_ctx_put8
#pragma weak shmem_ctx_put16 = pshmem_ctx_put16
#pragma weak shmem_ctx_put32 = pshmem_ctx_put32
#pragma weak shmem_ctx_put64 = pshmem_ctx_put64
#pragma weak shmem_ctx_put128 = pshmem_ctx_put128
#pragma weak shmem_putmem = pshmem_putmem
#pragma weak shmem_put8 = pshmem_put8
#pragma weak shmem_put16 = pshmem_put16
@ -96,6 +111,12 @@ SHMEM_CTX_TYPE_PUT(_short, short)
SHMEM_CTX_TYPE_PUT(_int, int)
SHMEM_CTX_TYPE_PUT(_long, long)
SHMEM_CTX_TYPE_PUT(_longlong, long long)
SHMEM_CTX_TYPE_PUT(_schar, signed char)
SHMEM_CTX_TYPE_PUT(_uchar, unsigned char)
SHMEM_CTX_TYPE_PUT(_ushort, unsigned short)
SHMEM_CTX_TYPE_PUT(_uint, unsigned int)
SHMEM_CTX_TYPE_PUT(_ulong, unsigned long)
SHMEM_CTX_TYPE_PUT(_ulonglong, unsigned long long)
SHMEM_CTX_TYPE_PUT(_float, float)
SHMEM_CTX_TYPE_PUT(_double, double)
SHMEM_CTX_TYPE_PUT(_longdouble, long double)
@ -104,6 +125,12 @@ SHMEM_TYPE_PUT(_short, short)
SHMEM_TYPE_PUT(_int, int)
SHMEM_TYPE_PUT(_long, long)
SHMEM_TYPE_PUT(_longlong, long long)
SHMEM_TYPE_PUT(_schar, signed char)
SHMEM_TYPE_PUT(_uchar, unsigned char)
SHMEM_TYPE_PUT(_ushort, unsigned short)
SHMEM_TYPE_PUT(_uint, unsigned int)
SHMEM_TYPE_PUT(_ulong, unsigned long)
SHMEM_TYPE_PUT(_ulonglong, unsigned long long)
SHMEM_TYPE_PUT(_float, float)
SHMEM_TYPE_PUT(_double, double)
SHMEM_TYPE_PUT(_longdouble, long double)

Просмотреть файл

@ -69,23 +69,38 @@
#pragma weak shmem_int_put_nbi = pshmem_int_put_nbi
#pragma weak shmem_long_put_nbi = pshmem_long_put_nbi
#pragma weak shmem_longlong_put_nbi = pshmem_longlong_put_nbi
#pragma weak shmem_schar_put_nbi = pshmem_schar_put_nbi
#pragma weak shmem_uchar_put_nbi = pshmem_uchar_put_nbi
#pragma weak shmem_ushort_put_nbi = pshmem_ushort_put_nbi
#pragma weak shmem_uint_put_nbi = pshmem_uint_put_nbi
#pragma weak shmem_ulong_put_nbi = pshmem_ulong_put_nbi
#pragma weak shmem_ulonglong_put_nbi = pshmem_ulonglong_put_nbi
#pragma weak shmem_float_put_nbi = pshmem_float_put_nbi
#pragma weak shmem_double_put_nbi = pshmem_double_put_nbi
#pragma weak shmem_longdouble_put_nbi = pshmem_longdouble_put_nbi
#pragma weak shmem_put8_nbi = pshmem_put8_nbi
#pragma weak shmem_put16_nbi = pshmem_put16_nbi
#pragma weak shmem_put32_nbi = pshmem_put32_nbi
#pragma weak shmem_put64_nbi = pshmem_put64_nbi
#pragma weak shmem_put128_nbi = pshmem_put128_nbi
#pragma weak shmem_putmem_nbi = pshmem_putmem_nbi
#pragma weak shmem_ctx_char_put_nbi = pshmem_ctx_char_put_nbi
#pragma weak shmem_ctx_short_put_nbi = pshmem_ctx_short_put_nbi
#pragma weak shmem_ctx_int_put_nbi = pshmem_ctx_int_put_nbi
#pragma weak shmem_ctx_long_put_nbi = pshmem_ctx_long_put_nbi
#pragma weak shmem_ctx_longlong_put_nbi = pshmem_ctx_longlong_put_nbi
#pragma weak shmem_ctx_schar_put_nbi = pshmem_ctx_schar_put_nbi
#pragma weak shmem_ctx_uchar_put_nbi = pshmem_ctx_uchar_put_nbi
#pragma weak shmem_ctx_ushort_put_nbi = pshmem_ctx_ushort_put_nbi
#pragma weak shmem_ctx_uint_put_nbi = pshmem_ctx_uint_put_nbi
#pragma weak shmem_ctx_ulong_put_nbi = pshmem_ctx_ulong_put_nbi
#pragma weak shmem_ctx_ulonglong_put_nbi = pshmem_ctx_ulonglong_put_nbi
#pragma weak shmem_ctx_float_put_nbi = pshmem_ctx_float_put_nbi
#pragma weak shmem_ctx_double_put_nbi = pshmem_ctx_double_put_nbi
#pragma weak shmem_ctx_longdouble_put_nbi = pshmem_ctx_longdouble_put_nbi
#pragma weak shmem_ctx_put8_nbi = pshmem_ctx_put8_nbi
#pragma weak shmem_ctx_put16_nbi = pshmem_ctx_put16_nbi
#pragma weak shmem_ctx_put32_nbi = pshmem_ctx_put32_nbi
@ -100,6 +115,12 @@ SHMEM_CTX_TYPE_PUT_NB(_short, short)
SHMEM_CTX_TYPE_PUT_NB(_int, int)
SHMEM_CTX_TYPE_PUT_NB(_long, long)
SHMEM_CTX_TYPE_PUT_NB(_longlong, long long)
SHMEM_CTX_TYPE_PUT_NB(_schar, signed char)
SHMEM_CTX_TYPE_PUT_NB(_uchar, unsigned char)
SHMEM_CTX_TYPE_PUT_NB(_ushort, unsigned short)
SHMEM_CTX_TYPE_PUT_NB(_uint, unsigned int)
SHMEM_CTX_TYPE_PUT_NB(_ulong, unsigned long)
SHMEM_CTX_TYPE_PUT_NB(_ulonglong, unsigned long long)
SHMEM_CTX_TYPE_PUT_NB(_float, float)
SHMEM_CTX_TYPE_PUT_NB(_double, double)
SHMEM_CTX_TYPE_PUT_NB(_longdouble, long double)
@ -108,6 +129,12 @@ SHMEM_TYPE_PUT_NB(_short, short)
SHMEM_TYPE_PUT_NB(_int, int)
SHMEM_TYPE_PUT_NB(_long, long)
SHMEM_TYPE_PUT_NB(_longlong, long long)
SHMEM_TYPE_PUT_NB(_schar, signed char)
SHMEM_TYPE_PUT_NB(_uchar, unsigned char)
SHMEM_TYPE_PUT_NB(_ushort, unsigned short)
SHMEM_TYPE_PUT_NB(_uint, unsigned int)
SHMEM_TYPE_PUT_NB(_ulong, unsigned long)
SHMEM_TYPE_PUT_NB(_ulonglong, unsigned long long)
SHMEM_TYPE_PUT_NB(_float, float)
SHMEM_TYPE_PUT_NB(_double, double)
SHMEM_TYPE_PUT_NB(_longdouble, long double)

Просмотреть файл

@ -62,18 +62,27 @@
#pragma weak shmem_ctx_int_atomic_set = pshmem_ctx_int_atomic_set
#pragma weak shmem_ctx_long_atomic_set = pshmem_ctx_long_atomic_set
#pragma weak shmem_ctx_longlong_atomic_set = pshmem_ctx_longlong_atomic_set
#pragma weak shmem_ctx_uint_atomic_set = pshmem_ctx_uint_atomic_set
#pragma weak shmem_ctx_ulong_atomic_set = pshmem_ctx_ulong_atomic_set
#pragma weak shmem_ctx_ulonglong_atomic_set = pshmem_ctx_ulonglong_atomic_set
#pragma weak shmem_ctx_float_atomic_set = pshmem_ctx_float_atomic_set
#pragma weak shmem_ctx_double_atomic_set = pshmem_ctx_double_atomic_set
#pragma weak shmem_int_atomic_set = pshmem_int_atomic_set
#pragma weak shmem_long_atomic_set = pshmem_long_atomic_set
#pragma weak shmem_longlong_atomic_set = pshmem_longlong_atomic_set
#pragma weak shmem_uint_atomic_set = pshmem_uint_atomic_set
#pragma weak shmem_ulong_atomic_set = pshmem_ulong_atomic_set
#pragma weak shmem_ulonglong_atomic_set = pshmem_ulonglong_atomic_set
#pragma weak shmem_float_atomic_set = pshmem_float_atomic_set
#pragma weak shmem_double_atomic_set = pshmem_double_atomic_set
#pragma weak shmem_int_set = pshmem_int_set
#pragma weak shmem_long_set = pshmem_long_set
#pragma weak shmem_longlong_set = pshmem_longlong_set
#pragma weak shmem_float_set = pshmem_float_set
#pragma weak shmem_double_set = pshmem_double_set
#pragma weak shmemx_int32_set = pshmemx_int32_set
#pragma weak shmemx_int64_set = pshmemx_int64_set
#include "oshmem/shmem/c/profile/defines.h"
@ -82,11 +91,17 @@
SHMEM_CTX_TYPE_ATOMIC_SET(_int, int, shmem)
SHMEM_CTX_TYPE_ATOMIC_SET(_long, long, shmem)
SHMEM_CTX_TYPE_ATOMIC_SET(_longlong, long long, shmem)
SHMEM_CTX_TYPE_ATOMIC_SET(_uint, unsigned int, shmem)
SHMEM_CTX_TYPE_ATOMIC_SET(_ulong, unsigned long, shmem)
SHMEM_CTX_TYPE_ATOMIC_SET(_ulonglong, unsigned long long, shmem)
SHMEM_CTX_TYPE_ATOMIC_SET(_float, float, shmem)
SHMEM_CTX_TYPE_ATOMIC_SET(_double, double, shmem)
SHMEM_TYPE_ATOMIC_SET(_int, int, shmem)
SHMEM_TYPE_ATOMIC_SET(_long, long, shmem)
SHMEM_TYPE_ATOMIC_SET(_longlong, long long, shmem)
SHMEM_TYPE_ATOMIC_SET(_uint, unsigned int, shmem)
SHMEM_TYPE_ATOMIC_SET(_ulong, unsigned long, shmem)
SHMEM_TYPE_ATOMIC_SET(_ulonglong, unsigned long long, shmem)
SHMEM_TYPE_ATOMIC_SET(_float, float, shmem)
SHMEM_TYPE_ATOMIC_SET(_double, double, shmem)

Просмотреть файл

@ -65,18 +65,27 @@
#pragma weak shmem_ctx_int_atomic_swap = pshmem_ctx_int_atomic_swap
#pragma weak shmem_ctx_long_atomic_swap = pshmem_ctx_long_atomic_swap
#pragma weak shmem_ctx_longlong_atomic_swap = pshmem_ctx_longlong_atomic_swap
#pragma weak shmem_ctx_uint_atomic_swap = pshmem_ctx_uint_atomic_swap
#pragma weak shmem_ctx_ulong_atomic_swap = pshmem_ctx_ulong_atomic_swap
#pragma weak shmem_ctx_ulonglong_atomic_swap = pshmem_ctx_ulonglong_atomic_swap
#pragma weak shmem_ctx_float_atomic_swap = pshmem_ctx_float_atomic_swap
#pragma weak shmem_ctx_double_atomic_swap = pshmem_ctx_double_atomic_swap
#pragma weak shmem_int_atomic_swap = pshmem_int_atomic_swap
#pragma weak shmem_long_atomic_swap = pshmem_long_atomic_swap
#pragma weak shmem_longlong_atomic_swap = pshmem_longlong_atomic_swap
#pragma weak shmem_uint_atomic_swap = pshmem_uint_atomic_swap
#pragma weak shmem_ulong_atomic_swap = pshmem_ulong_atomic_swap
#pragma weak shmem_ulonglong_atomic_swap = pshmem_ulonglong_atomic_swap
#pragma weak shmem_float_atomic_swap = pshmem_float_atomic_swap
#pragma weak shmem_double_atomic_swap = pshmem_double_atomic_swap
#pragma weak shmem_int_swap = pshmem_int_swap
#pragma weak shmem_long_swap = pshmem_long_swap
#pragma weak shmem_longlong_swap = pshmem_longlong_swap
#pragma weak shmem_float_swap = pshmem_float_swap
#pragma weak shmem_double_swap = pshmem_double_swap
#pragma weak shmemx_int32_swap = pshmemx_int32_swap
#pragma weak shmemx_int64_swap = pshmemx_int64_swap
#include "oshmem/shmem/c/profile/defines.h"
@ -85,11 +94,17 @@
SHMEM_CTX_TYPE_ATOMIC_SWAP(_int, int, shmem)
SHMEM_CTX_TYPE_ATOMIC_SWAP(_long, long, shmem)
SHMEM_CTX_TYPE_ATOMIC_SWAP(_longlong, long long, shmem)
SHMEM_CTX_TYPE_ATOMIC_SWAP(_uint, unsigned int, shmem)
SHMEM_CTX_TYPE_ATOMIC_SWAP(_ulong, unsigned long, shmem)
SHMEM_CTX_TYPE_ATOMIC_SWAP(_ulonglong, unsigned long long, shmem)
SHMEM_CTX_TYPE_ATOMIC_SWAP(_float, float, shmem)
SHMEM_CTX_TYPE_ATOMIC_SWAP(_double, double, shmem)
SHMEM_TYPE_ATOMIC_SWAP(_int, int, shmem)
SHMEM_TYPE_ATOMIC_SWAP(_long, long, shmem)
SHMEM_TYPE_ATOMIC_SWAP(_longlong, long long, shmem)
SHMEM_TYPE_ATOMIC_SWAP(_uint, unsigned int, shmem)
SHMEM_TYPE_ATOMIC_SWAP(_ulong, unsigned long, shmem)
SHMEM_TYPE_ATOMIC_SWAP(_ulonglong, unsigned long long, shmem)
SHMEM_TYPE_ATOMIC_SWAP(_float, float, shmem)
SHMEM_TYPE_ATOMIC_SWAP(_double, double, shmem)

Просмотреть файл

@ -25,12 +25,20 @@
*/
#if OSHMEM_PROFILING
#include "oshmem/include/pshmem.h"
#pragma weak shmem_int_atomic_xor = pshmem_int_atomic_xor
#pragma weak shmem_long_atomic_xor = pshmem_long_atomic_xor
#pragma weak shmem_longlong_atomic_xor = pshmem_longlong_atomic_xor
#pragma weak shmem_uint_atomic_xor = pshmem_uint_atomic_xor
#pragma weak shmem_ulong_atomic_xor = pshmem_ulong_atomic_xor
#pragma weak shmem_ulonglong_atomic_xor = pshmem_ulonglong_atomic_xor
#pragma weak shmem_ctx_int_atomic_xor = pshmem_ctx_int_atomic_xor
#pragma weak shmem_ctx_long_atomic_xor = pshmem_ctx_long_atomic_xor
#pragma weak shmem_ctx_longlong_atomic_xor = pshmem_ctx_longlong_atomic_xor
#pragma weak shmem_ctx_uint_atomic_xor = pshmem_ctx_uint_atomic_xor
#pragma weak shmem_ctx_ulong_atomic_xor = pshmem_ctx_ulong_atomic_xor
#pragma weak shmem_ctx_ulonglong_atomic_xor = pshmem_ctx_ulonglong_atomic_xor
#pragma weak shmemx_int32_atomic_xor = pshmemx_int32_atomic_xor
#pragma weak shmemx_int64_atomic_xor = pshmemx_int64_atomic_xor
#pragma weak shmemx_uint32_atomic_xor = pshmemx_uint32_atomic_xor
@ -38,9 +46,15 @@
#include "oshmem/shmem/c/profile/defines.h"
#endif
OSHMEM_TYPE_OP(int, int, shmem, xor)
OSHMEM_TYPE_OP(long, long, shmem, xor)
OSHMEM_TYPE_OP(longlong, long long, shmem, xor)
OSHMEM_TYPE_OP(uint, unsigned int, shmem, xor)
OSHMEM_TYPE_OP(ulong, unsigned long, shmem, xor)
OSHMEM_TYPE_OP(ulonglong, unsigned long long, shmem, xor)
OSHMEM_CTX_TYPE_OP(int, int, shmem, xor)
OSHMEM_CTX_TYPE_OP(long, long, shmem, xor)
OSHMEM_CTX_TYPE_OP(longlong, long long, shmem, xor)
OSHMEM_CTX_TYPE_OP(uint, unsigned int, shmem, xor)
OSHMEM_CTX_TYPE_OP(ulong, unsigned long, shmem, xor)
OSHMEM_CTX_TYPE_OP(ulonglong, unsigned long long, shmem, xor)