oshmem: Align OSHMEM API with spec v1.2 (modify existing functions)
Several functions are moved from to shmem-compat.h to shmem.h and back.
Этот коммит содержится в:
родитель
8498e26c4e
Коммит
9942dfdabf
@ -1,6 +1,6 @@
|
||||
/* oshmem/include/shmem-compat.h. This file contains OpenSHMEM lagacy API */
|
||||
/*
|
||||
* Copyright (c) 2014 Mellanox Technologies, Inc.
|
||||
* Copyright (c) 2014-2015 Mellanox Technologies, Inc.
|
||||
* All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
@ -23,10 +23,18 @@ OSHMEM_DECLSPEC int num_pes(void);
|
||||
OSHMEM_DECLSPEC int my_pe(void);
|
||||
|
||||
/* old init/destruct functions - not in the open shmem spec but still supported */
|
||||
OSHMEM_DECLSPEC void shmem_init(void);
|
||||
OSHMEM_DECLSPEC void shmem_finalize(void) OSHMEM_DESTRUCTOR;
|
||||
OSHMEM_DECLSPEC int shmem_n_pes(void);
|
||||
OSHMEM_DECLSPEC int shmem_my_pe(void);
|
||||
OSHMEM_DECLSPEC void start_pes(int npes);
|
||||
|
||||
OSHMEM_DECLSPEC int _num_pes(void);
|
||||
OSHMEM_DECLSPEC int _my_pe(void);
|
||||
|
||||
OSHMEM_DECLSPEC void* shmalloc(size_t size);
|
||||
OSHMEM_DECLSPEC void* shmemalign(size_t align, size_t size);
|
||||
OSHMEM_DECLSPEC void* shrealloc(void *ptr, size_t size);
|
||||
OSHMEM_DECLSPEC void shfree(void* ptr);
|
||||
|
||||
OSHMEM_DECLSPEC void shmem_char_put(char *target, const char *source, size_t len, int pe);
|
||||
OSHMEM_DECLSPEC void shmem_char_get(char *target, const char *source, size_t len, int pe);
|
||||
|
||||
OSHMEM_DECLSPEC void shmem_put(void *target, const void *source, size_t len, int pe);
|
||||
OSHMEM_DECLSPEC void shmem_get(void *target, const void *source, size_t len, int pe);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2014 Mellanox Technologies, Inc.
|
||||
* Copyright (c) 2014-2015 Mellanox Technologies, Inc.
|
||||
* All rights reserved.
|
||||
* Copyright (c) 2014 Intel, Inc. All rights reserved
|
||||
* $COPYRIGHT$
|
||||
@ -106,14 +106,16 @@ enum shmem_wait_ops {
|
||||
/*
|
||||
* Initialization routines
|
||||
*/
|
||||
OSHMEM_DECLSPEC void start_pes(int npes);
|
||||
OSHMEM_DECLSPEC void shmem_init(void);
|
||||
OSHMEM_DECLSPEC void shmem_finalize(void) OSHMEM_DESTRUCTOR;
|
||||
OSHMEM_DECLSPEC void shmem_global_exit(int status);
|
||||
|
||||
|
||||
/*
|
||||
* Query routines
|
||||
*/
|
||||
OSHMEM_DECLSPEC int _num_pes(void);
|
||||
OSHMEM_DECLSPEC int _my_pe(void);
|
||||
OSHMEM_DECLSPEC int shmem_n_pes(void);
|
||||
OSHMEM_DECLSPEC int shmem_my_pe(void);
|
||||
|
||||
|
||||
/*
|
||||
@ -125,10 +127,10 @@ OSHMEM_DECLSPEC int shmem_addr_accessible(void *addr, int pe);
|
||||
/*
|
||||
* Symmetric heap routines
|
||||
*/
|
||||
OSHMEM_DECLSPEC void* shmalloc(size_t size);
|
||||
OSHMEM_DECLSPEC void* shmemalign(size_t align, size_t size);
|
||||
OSHMEM_DECLSPEC void* shrealloc(void *ptr, size_t size);
|
||||
OSHMEM_DECLSPEC void shfree(void* ptr);
|
||||
OSHMEM_DECLSPEC void* shmem_malloc(size_t size);
|
||||
OSHMEM_DECLSPEC void* shmem_align(size_t align, size_t size);
|
||||
OSHMEM_DECLSPEC void* shmem_realloc(void *ptr, size_t size);
|
||||
OSHMEM_DECLSPEC void shmem_free(void* ptr);
|
||||
|
||||
/*
|
||||
* Remote pointer operations
|
||||
@ -138,6 +140,7 @@ OSHMEM_DECLSPEC void *shmem_ptr(void *ptr, int pe);
|
||||
/*
|
||||
* Elemental put routines
|
||||
*/
|
||||
OSHMEM_DECLSPEC void shmem_char_p(char* addr, char value, int pe);
|
||||
OSHMEM_DECLSPEC void shmem_short_p(short* addr, short value, int pe);
|
||||
OSHMEM_DECLSPEC void shmem_int_p(int* addr, int value, int pe);
|
||||
OSHMEM_DECLSPEC void shmem_long_p(long* addr, long value, int pe);
|
||||
@ -149,7 +152,6 @@ OSHMEM_DECLSPEC void shmem_longdouble_p(long double* addr, long double value, i
|
||||
/*
|
||||
* Block data put routines
|
||||
*/
|
||||
OSHMEM_DECLSPEC void shmem_char_put(char *target, const char *source, size_t len, int pe);
|
||||
OSHMEM_DECLSPEC void shmem_short_put(short *target, const short *source, size_t len, int pe);
|
||||
OSHMEM_DECLSPEC void shmem_int_put(int* target, const int* source, size_t len, int pe);
|
||||
OSHMEM_DECLSPEC void shmem_long_put(long *target, const long *source, size_t len, int pe);
|
||||
@ -165,8 +167,8 @@ OSHMEM_DECLSPEC void shmem_putmem(void *target, const void *source, size_t len,
|
||||
/*
|
||||
* Strided put routines
|
||||
*/
|
||||
OSHMEM_DECLSPEC void shmem_int_iput(int* target, const int* source, ptrdiff_t tst, ptrdiff_t sst,size_t len, int pe);
|
||||
OSHMEM_DECLSPEC void shmem_short_iput(short* target, const short* source, ptrdiff_t tst, ptrdiff_t sst,size_t len, int pe);
|
||||
OSHMEM_DECLSPEC void shmem_int_iput(int* target, const int* source, ptrdiff_t tst, ptrdiff_t sst,size_t len, int pe);
|
||||
OSHMEM_DECLSPEC void shmem_float_iput(float* target, const float* source, ptrdiff_t tst, ptrdiff_t sst,size_t len, int pe);
|
||||
OSHMEM_DECLSPEC void shmem_double_iput(double* target, const double* source, ptrdiff_t tst, ptrdiff_t sst,size_t len, int pe);
|
||||
OSHMEM_DECLSPEC void shmem_longlong_iput(long long* target, const long long* source, ptrdiff_t tst, ptrdiff_t sst,size_t len, int pe);
|
||||
@ -191,7 +193,6 @@ OSHMEM_DECLSPEC long double shmem_longdouble_g(long double* addr, int pe);
|
||||
/*
|
||||
* Block data get routines
|
||||
*/
|
||||
OSHMEM_DECLSPEC void shmem_char_get(char *target, const char *source, size_t len, int pe);
|
||||
OSHMEM_DECLSPEC void shmem_short_get(short *target, const short *source, size_t len, int pe);
|
||||
OSHMEM_DECLSPEC void shmem_int_get(int *target, const int *source, size_t len, int pe);
|
||||
OSHMEM_DECLSPEC void shmem_long_get(long *target, const long *source, size_t len, int pe);
|
||||
@ -207,8 +208,8 @@ OSHMEM_DECLSPEC void shmem_getmem(void *target, const void *source, size_t len,
|
||||
/*
|
||||
* Strided get routines
|
||||
*/
|
||||
OSHMEM_DECLSPEC void shmem_int_iget(int* target, const int* source, ptrdiff_t tst, ptrdiff_t sst,size_t len, int pe);
|
||||
OSHMEM_DECLSPEC void shmem_short_iget(short* target, const short* source, ptrdiff_t tst, ptrdiff_t sst,size_t len, int pe);
|
||||
OSHMEM_DECLSPEC void shmem_int_iget(int* target, const int* source, ptrdiff_t tst, ptrdiff_t sst,size_t len, int pe);
|
||||
OSHMEM_DECLSPEC void shmem_float_iget(float* target, const float* source, ptrdiff_t tst, ptrdiff_t sst,size_t len, int pe);
|
||||
OSHMEM_DECLSPEC void shmem_double_iget(double* target, const double* source, ptrdiff_t tst, ptrdiff_t sst,size_t len, int pe);
|
||||
OSHMEM_DECLSPEC void shmem_longlong_iget(long long* target, const long long* source, ptrdiff_t tst, ptrdiff_t sst,size_t len, int pe);
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* oshmem/include/shmemx.h. This file contains vendor extension functions */
|
||||
/*
|
||||
* Copyright (c) 2014 Mellanox Technologies, Inc.
|
||||
* Copyright (c) 2014-2015 Mellanox Technologies, Inc.
|
||||
* All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
@ -26,7 +26,6 @@ OSHMEM_DECLSPEC void shmem_int64_p(int64_t* addr, int64_t value, int pe);
|
||||
/*
|
||||
* Elemental put routines
|
||||
*/
|
||||
OSHMEM_DECLSPEC void shmem_char_p(char* addr, char value, int pe);
|
||||
|
||||
/*
|
||||
* Block data put routines
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (c) 2013 Mellanox Technologies, Inc.
|
||||
# Copyright (c) 2013-2015 Mellanox Technologies, Inc.
|
||||
# All rights reserved
|
||||
# Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
|
||||
# $COPYRIGHT$
|
||||
@ -15,8 +15,7 @@ if OSHMEM_PROFILING
|
||||
endif
|
||||
|
||||
OSHMEM_AUX_SOURCES = \
|
||||
shmem_lock.c \
|
||||
globalexit.c
|
||||
shmem_lock.c
|
||||
|
||||
OSHMEM_API_SOURCES = \
|
||||
shmem_init.c \
|
||||
@ -56,7 +55,8 @@ OSHMEM_API_SOURCES = \
|
||||
shmem_inc.c \
|
||||
shmem_clear_lock.c \
|
||||
shmem_set_lock.c \
|
||||
shmem_test_lock.c
|
||||
shmem_test_lock.c \
|
||||
shmem_global_exit.c
|
||||
|
||||
AM_CPPFLAGS = -DOSHMEM_PROFILING=0
|
||||
|
||||
|
@ -67,7 +67,8 @@ OSHMEM_API_SOURCES = \
|
||||
pshmem_inc.c \
|
||||
pshmem_clear_lock.c \
|
||||
pshmem_set_lock.c \
|
||||
pshmem_test_lock.c
|
||||
pshmem_test_lock.c \
|
||||
pshmem_global_exit.c
|
||||
|
||||
nodist_liboshmem_c_pshmem_la_SOURCES = \
|
||||
$(OSHMEM_API_SOURCES)
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013 Mellanox Technologies, Inc.
|
||||
* Copyright (c) 2013-2015 Mellanox Technologies, Inc.
|
||||
* All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
@ -20,302 +20,310 @@
|
||||
/*
|
||||
* Initialization routines
|
||||
*/
|
||||
#define start_pes pstart_pes
|
||||
#define shmem_init pshmem_init
|
||||
#define start_pes pstart_pes /* shmem-compat.h */
|
||||
|
||||
/*
|
||||
* Finalization routines
|
||||
*/
|
||||
#define shmem_finalize pshmem_finalize
|
||||
#define shmem_finalize pshmem_finalize
|
||||
#define shmem_global_exit pshmem_global_exit
|
||||
|
||||
|
||||
/*
|
||||
* Query routines
|
||||
*/
|
||||
#define _num_pes p_num_pes
|
||||
#define _my_pe p_my_pe
|
||||
#define shmem_n_pes pshmem_n_pes
|
||||
#define shmem_my_pe pshmem_my_pe
|
||||
#define _num_pes p_num_pes /* shmem-compat.h */
|
||||
#define _my_pe p_my_pe /* shmem-compat.h */
|
||||
|
||||
|
||||
/*
|
||||
* Accessability routines
|
||||
*/
|
||||
#define shmem_pe_accessible pshmem_pe_accessible
|
||||
#define shmem_addr_accessible pshmem_addr_accessible
|
||||
#define shmem_pe_accessible pshmem_pe_accessible
|
||||
#define shmem_addr_accessible pshmem_addr_accessible
|
||||
|
||||
/*
|
||||
* Symmetric heap routines
|
||||
*/
|
||||
#define shmalloc pshmalloc
|
||||
#define shmemalign pshmemalign
|
||||
#define shrealloc pshrealloc
|
||||
#define shfree pshfree
|
||||
#define shmem_malloc pshmem_malloc
|
||||
#define shmem_align pshmem_align
|
||||
#define shmem_realloc pshmem_realloc
|
||||
#define shmem_free pshmem_free
|
||||
#define shmalloc pshmalloc /* shmem-compat.h */
|
||||
#define shmemalign pshmemalign /* shmem-compat.h */
|
||||
#define shrealloc pshrealloc /* shmem-compat.h */
|
||||
#define shfree pshfree /* shmem-compat.h */
|
||||
|
||||
/*
|
||||
* Remote pointer operations
|
||||
*/
|
||||
#define shmem_ptr pshmem_ptr
|
||||
#define shmem_ptr pshmem_ptr
|
||||
|
||||
/*
|
||||
* Elemental put routines
|
||||
*/
|
||||
#define shmem_char_p pshmem_char_p
|
||||
#define shmem_short_p pshmem_short_p
|
||||
#define shmem_int_p pshmem_int_p
|
||||
#define shmem_long_p pshmem_long_p
|
||||
#define shmem_float_p pshmem_float_p
|
||||
#define shmem_double_p pshmem_double_p
|
||||
#define shmem_longlong_p pshmem_longlong_p
|
||||
#define shmem_longdouble_p pshmem_longdouble_p
|
||||
#define shmem_int16_p pshmem_int16_p
|
||||
#define shmem_int32_p pshmem_int32_p
|
||||
#define shmem_int64_p pshmem_int64_p
|
||||
#define shmem_char_p pshmem_char_p
|
||||
#define shmem_short_p pshmem_short_p
|
||||
#define shmem_int_p pshmem_int_p
|
||||
#define shmem_long_p pshmem_long_p
|
||||
#define shmem_float_p pshmem_float_p
|
||||
#define shmem_double_p pshmem_double_p
|
||||
#define shmem_longlong_p pshmem_longlong_p
|
||||
#define shmem_longdouble_p pshmem_longdouble_p
|
||||
#define shmem_int16_p pshmem_int16_p
|
||||
#define shmem_int32_p pshmem_int32_p
|
||||
#define shmem_int64_p pshmem_int64_p
|
||||
|
||||
/*
|
||||
* Block data put routines
|
||||
*/
|
||||
#define shmem_char_put pshmem_char_put
|
||||
#define shmem_short_put pshmem_short_put
|
||||
#define shmem_int_put pshmem_int_put
|
||||
#define shmem_long_put pshmem_long_put
|
||||
#define shmem_float_put pshmem_float_put
|
||||
#define shmem_double_put pshmem_double_put
|
||||
#define shmem_longlong_put pshmem_longlong_put
|
||||
#define shmem_longdouble_put pshmem_longdouble_put
|
||||
#define shmem_put16 pshmem_put16
|
||||
#define shmem_put32 pshmem_put32
|
||||
#define shmem_put64 pshmem_put64
|
||||
#define shmem_put128 pshmem_put128
|
||||
#define shmem_putmem pshmem_putmem
|
||||
#define shmem_char_put pshmem_char_put /* shmem-compat.h */
|
||||
#define shmem_short_put pshmem_short_put
|
||||
#define shmem_int_put pshmem_int_put
|
||||
#define shmem_long_put pshmem_long_put
|
||||
#define shmem_float_put pshmem_float_put
|
||||
#define shmem_double_put pshmem_double_put
|
||||
#define shmem_longlong_put pshmem_longlong_put
|
||||
#define shmem_longdouble_put pshmem_longdouble_put
|
||||
#define shmem_put16 pshmem_put16
|
||||
#define shmem_put32 pshmem_put32
|
||||
#define shmem_put64 pshmem_put64
|
||||
#define shmem_put128 pshmem_put128
|
||||
#define shmem_putmem pshmem_putmem
|
||||
|
||||
/*
|
||||
* Strided put routines
|
||||
*/
|
||||
#define shmem_int_iput pshmem_int_iput
|
||||
#define shmem_short_iput pshmem_short_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_iput16 pshmem_iput16
|
||||
#define shmem_iput32 pshmem_iput32
|
||||
#define shmem_iput64 pshmem_iput64
|
||||
#define shmem_iput128 pshmem_iput128
|
||||
#define shmem_int_iput pshmem_int_iput
|
||||
#define shmem_short_iput pshmem_short_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_iput16 pshmem_iput16
|
||||
#define shmem_iput32 pshmem_iput32
|
||||
#define shmem_iput64 pshmem_iput64
|
||||
#define shmem_iput128 pshmem_iput128
|
||||
|
||||
/*
|
||||
* Elemental get routines
|
||||
*/
|
||||
#define shmem_char_g pshmem_char_g
|
||||
#define shmem_short_g pshmem_short_g
|
||||
#define shmem_int_g pshmem_int_g
|
||||
#define shmem_long_g pshmem_long_g
|
||||
#define shmem_float_g pshmem_float_g
|
||||
#define shmem_double_g pshmem_double_g
|
||||
#define shmem_longlong_g pshmem_longlong_g
|
||||
#define shmem_longdouble_g pshmem_longdouble_g
|
||||
#define shmem_int16_g pshmem_int16_g
|
||||
#define shmem_int32_g pshmem_int32_g
|
||||
#define shmem_int64_g pshmem_int64_g
|
||||
#define shmem_char_g pshmem_char_g
|
||||
#define shmem_short_g pshmem_short_g
|
||||
#define shmem_int_g pshmem_int_g
|
||||
#define shmem_long_g pshmem_long_g
|
||||
#define shmem_float_g pshmem_float_g
|
||||
#define shmem_double_g pshmem_double_g
|
||||
#define shmem_longlong_g pshmem_longlong_g
|
||||
#define shmem_longdouble_g pshmem_longdouble_g
|
||||
#define shmem_int16_g pshmem_int16_g
|
||||
#define shmem_int32_g pshmem_int32_g
|
||||
#define shmem_int64_g pshmem_int64_g
|
||||
|
||||
/*
|
||||
* Block data get routines
|
||||
*/
|
||||
#define shmem_char_get pshmem_char_get
|
||||
#define shmem_short_get pshmem_short_get
|
||||
#define shmem_int_get pshmem_int_get
|
||||
#define shmem_long_get pshmem_long_get
|
||||
#define shmem_float_get pshmem_float_get
|
||||
#define shmem_double_get pshmem_double_get
|
||||
#define shmem_longlong_get pshmem_longlong_get
|
||||
#define shmem_longdouble_get pshmem_longdouble_get
|
||||
#define shmem_get16 pshmem_get16
|
||||
#define shmem_get32 pshmem_get32
|
||||
#define shmem_get64 pshmem_get64
|
||||
#define shmem_get128 pshmem_get128
|
||||
#define shmem_getmem pshmem_getmem
|
||||
#define shmem_char_get pshmem_char_get /* shmem-compat.h */
|
||||
#define shmem_short_get pshmem_short_get
|
||||
#define shmem_int_get pshmem_int_get
|
||||
#define shmem_long_get pshmem_long_get
|
||||
#define shmem_float_get pshmem_float_get
|
||||
#define shmem_double_get pshmem_double_get
|
||||
#define shmem_longlong_get pshmem_longlong_get
|
||||
#define shmem_longdouble_get pshmem_longdouble_get
|
||||
#define shmem_get16 pshmem_get16
|
||||
#define shmem_get32 pshmem_get32
|
||||
#define shmem_get64 pshmem_get64
|
||||
#define shmem_get128 pshmem_get128
|
||||
#define shmem_getmem pshmem_getmem
|
||||
|
||||
/*
|
||||
* Strided get routines
|
||||
*/
|
||||
#define shmem_int_iget pshmem_int_iget
|
||||
#define shmem_short_iget pshmem_short_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_iget16 pshmem_iget16
|
||||
#define shmem_iget32 pshmem_iget32
|
||||
#define shmem_iget64 pshmem_iget64
|
||||
#define shmem_iget128 pshmem_iget128
|
||||
#define shmem_int_iget pshmem_int_iget
|
||||
#define shmem_short_iget pshmem_short_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_iget16 pshmem_iget16
|
||||
#define shmem_iget32 pshmem_iget32
|
||||
#define shmem_iget64 pshmem_iget64
|
||||
#define shmem_iget128 pshmem_iget128
|
||||
|
||||
/*
|
||||
* Atomic operations
|
||||
*/
|
||||
/* Atomic swap */
|
||||
#define shmem_swap pshmem_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 shmem_int32_swap pshmem_int32_swap
|
||||
#define shmem_int64_swap pshmem_int64_swap
|
||||
#define shmem_swap pshmem_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 shmem_int32_swap pshmem_int32_swap
|
||||
#define shmem_int64_swap pshmem_int64_swap
|
||||
|
||||
|
||||
/* Atomic conditional swap */
|
||||
#define shmem_int_cswap pshmem_int_cswap
|
||||
#define shmem_long_cswap pshmem_long_cswap
|
||||
#define shmem_longlong_cswap pshmem_longlong_cswap
|
||||
#define shmem_int32_cswap pshmem_int32_cswap
|
||||
#define shmem_int64_cswap pshmem_int64_cswap
|
||||
#define shmem_int_cswap pshmem_int_cswap
|
||||
#define shmem_long_cswap pshmem_long_cswap
|
||||
#define shmem_longlong_cswap pshmem_longlong_cswap
|
||||
#define shmem_int32_cswap pshmem_int32_cswap
|
||||
#define shmem_int64_cswap pshmem_int64_cswap
|
||||
|
||||
|
||||
/* 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 shmem_int32_fadd pshmem_int32_fadd
|
||||
#define shmem_int64_fadd pshmem_int64_fadd
|
||||
#define shmem_int_fadd pshmem_int_fadd
|
||||
#define shmem_long_fadd pshmem_long_fadd
|
||||
#define shmem_longlong_fadd pshmem_longlong_fadd
|
||||
#define shmem_int32_fadd pshmem_int32_fadd
|
||||
#define shmem_int64_fadd pshmem_int64_fadd
|
||||
|
||||
/* 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 shmem_int32_finc pshmem_int32_finc
|
||||
#define shmem_int64_finc pshmem_int64_finc
|
||||
#define shmem_int_finc pshmem_int_finc
|
||||
#define shmem_long_finc pshmem_long_finc
|
||||
#define shmem_longlong_finc pshmem_longlong_finc
|
||||
#define shmem_int32_finc pshmem_int32_finc
|
||||
#define shmem_int64_finc pshmem_int64_finc
|
||||
|
||||
/* Atomic Add*/
|
||||
#define shmem_int_add pshmem_int_add
|
||||
#define shmem_long_add pshmem_long_add
|
||||
#define shmem_longlong_add pshmem_longlong_add
|
||||
#define shmem_int32_add pshmem_int32_add
|
||||
#define shmem_int64_add pshmem_int64_add
|
||||
#define shmem_int_add pshmem_int_add
|
||||
#define shmem_long_add pshmem_long_add
|
||||
#define shmem_longlong_add pshmem_longlong_add
|
||||
#define shmem_int32_add pshmem_int32_add
|
||||
#define shmem_int64_add pshmem_int64_add
|
||||
|
||||
/* Atomic Inc */
|
||||
#define shmem_int_inc pshmem_int_inc
|
||||
#define shmem_long_inc pshmem_long_inc
|
||||
#define shmem_longlong_inc pshmem_longlong_inc
|
||||
#define shmem_int32_inc pshmem_int32_inc
|
||||
#define shmem_int64_inc pshmem_int64_inc
|
||||
#define shmem_int_inc pshmem_int_inc
|
||||
#define shmem_long_inc pshmem_long_inc
|
||||
#define shmem_longlong_inc pshmem_longlong_inc
|
||||
#define shmem_int32_inc pshmem_int32_inc
|
||||
#define shmem_int64_inc pshmem_int64_inc
|
||||
|
||||
/*
|
||||
* Lock functions
|
||||
*/
|
||||
#define shmem_set_lock pshmem_set_lock
|
||||
#define shmem_clear_lock pshmem_clear_lock
|
||||
#define shmem_test_lock pshmem_test_lock
|
||||
#define shmem_set_lock pshmem_set_lock
|
||||
#define shmem_clear_lock pshmem_clear_lock
|
||||
#define shmem_test_lock pshmem_test_lock
|
||||
|
||||
/*
|
||||
* P2P sync routines
|
||||
*/
|
||||
#define shmem_short_wait pshmem_short_wait
|
||||
#define shmem_int_wait pshmem_int_wait
|
||||
#define shmem_long_wait pshmem_long_wait
|
||||
#define shmem_longlong_wait pshmem_longlong_wait
|
||||
#define shmem_wait pshmem_wait
|
||||
#define shmem_int16_wait pshmem_int16_wait
|
||||
#define shmem_int32_wait pshmem_int32_wait
|
||||
#define shmem_int64_wait pshmem_int64_wait
|
||||
#define shmem_short_wait pshmem_short_wait
|
||||
#define shmem_int_wait pshmem_int_wait
|
||||
#define shmem_long_wait pshmem_long_wait
|
||||
#define shmem_longlong_wait pshmem_longlong_wait
|
||||
#define shmem_wait pshmem_wait
|
||||
#define shmem_int16_wait pshmem_int16_wait
|
||||
#define shmem_int32_wait pshmem_int32_wait
|
||||
#define shmem_int64_wait pshmem_int64_wait
|
||||
|
||||
#define shmem_short_wait_until pshmem_short_wait_until
|
||||
#define shmem_int_wait_until pshmem_int_wait_until
|
||||
#define shmem_long_wait_until pshmem_long_wait_until
|
||||
#define shmem_longlong_wait_until pshmem_longlong_wait_until
|
||||
#define shmem_wait_until pshmem_wait_until
|
||||
#define shmem_int16_wait_until pshmem_int16_wait_until
|
||||
#define shmem_int32_wait_until pshmem_int32_wait_until
|
||||
#define shmem_int64_wait_until pshmem_int64_wait_until
|
||||
#define shmem_short_wait_until pshmem_short_wait_until
|
||||
#define shmem_int_wait_until pshmem_int_wait_until
|
||||
#define shmem_long_wait_until pshmem_long_wait_until
|
||||
#define shmem_longlong_wait_until pshmem_longlong_wait_until
|
||||
#define shmem_wait_until pshmem_wait_until
|
||||
#define shmem_int16_wait_until pshmem_int16_wait_until
|
||||
#define shmem_int32_wait_until pshmem_int32_wait_until
|
||||
#define shmem_int64_wait_until pshmem_int64_wait_until
|
||||
|
||||
/*
|
||||
* Barrier sync routines
|
||||
*/
|
||||
#define shmem_barrier pshmem_barrier
|
||||
#define shmem_barrier_all pshmem_barrier_all
|
||||
#define shmem_fence pshmem_fence
|
||||
#define shmem_quiet pshmem_quiet
|
||||
#define shmem_barrier pshmem_barrier
|
||||
#define shmem_barrier_all pshmem_barrier_all
|
||||
#define shmem_fence pshmem_fence
|
||||
#define shmem_quiet pshmem_quiet
|
||||
|
||||
/*
|
||||
* Collective routines
|
||||
*/
|
||||
#define shmem_broadcast32 pshmem_broadcast32
|
||||
#define shmem_broadcast64 pshmem_broadcast64
|
||||
#define shmem_broadcast pshmem_broadcast
|
||||
#define shmem_collect32 pshmem_collect32
|
||||
#define shmem_collect64 pshmem_collect64
|
||||
#define shmem_fcollect32 pshmem_fcollect32
|
||||
#define shmem_fcollect64 pshmem_fcollect64
|
||||
#define shmem_broadcast32 pshmem_broadcast32
|
||||
#define shmem_broadcast64 pshmem_broadcast64
|
||||
#define shmem_broadcast pshmem_broadcast
|
||||
#define shmem_collect32 pshmem_collect32
|
||||
#define shmem_collect64 pshmem_collect64
|
||||
#define shmem_fcollect32 pshmem_fcollect32
|
||||
#define shmem_fcollect64 pshmem_fcollect64
|
||||
|
||||
/*
|
||||
* Reduction routines
|
||||
*/
|
||||
#define shmem_short_and_to_all pshmem_short_and_to_all
|
||||
#define shmem_int_and_to_all pshmem_int_and_to_all
|
||||
#define shmem_long_and_to_all pshmem_long_and_to_all
|
||||
#define shmem_longlong_and_to_all pshmem_longlong_and_to_all
|
||||
#define shmem_int16_and_to_all pshmem_int16_and_to_all
|
||||
#define shmem_int32_and_to_all pshmem_int32_and_to_all
|
||||
#define shmem_int64_and_to_all pshmem_int64_and_to_all
|
||||
#define shmem_short_and_to_all pshmem_short_and_to_all
|
||||
#define shmem_int_and_to_all pshmem_int_and_to_all
|
||||
#define shmem_long_and_to_all pshmem_long_and_to_all
|
||||
#define shmem_longlong_and_to_all pshmem_longlong_and_to_all
|
||||
#define shmem_int16_and_to_all pshmem_int16_and_to_all
|
||||
#define shmem_int32_and_to_all pshmem_int32_and_to_all
|
||||
#define shmem_int64_and_to_all pshmem_int64_and_to_all
|
||||
|
||||
#define shmem_short_or_to_all pshmem_short_or_to_all
|
||||
#define shmem_int_or_to_all pshmem_int_or_to_all
|
||||
#define shmem_long_or_to_all pshmem_long_or_to_all
|
||||
#define shmem_longlong_or_to_all pshmem_longlong_or_to_all
|
||||
#define shmem_int16_or_to_all pshmem_int16_or_to_all
|
||||
#define shmem_int32_or_to_all pshmem_int32_or_to_all
|
||||
#define shmem_int64_or_to_all pshmem_int64_or_to_all
|
||||
#define shmem_short_or_to_all pshmem_short_or_to_all
|
||||
#define shmem_int_or_to_all pshmem_int_or_to_all
|
||||
#define shmem_long_or_to_all pshmem_long_or_to_all
|
||||
#define shmem_longlong_or_to_all pshmem_longlong_or_to_all
|
||||
#define shmem_int16_or_to_all pshmem_int16_or_to_all
|
||||
#define shmem_int32_or_to_all pshmem_int32_or_to_all
|
||||
#define shmem_int64_or_to_all pshmem_int64_or_to_all
|
||||
|
||||
#define shmem_short_xor_to_all pshmem_short_xor_to_all
|
||||
#define shmem_int_xor_to_all pshmem_int_xor_to_all
|
||||
#define shmem_long_xor_to_all pshmem_long_xor_to_all
|
||||
#define shmem_longlong_xor_to_all pshmem_longlong_xor_to_all
|
||||
#define shmem_int16_xor_to_all pshmem_int16_xor_to_all
|
||||
#define shmem_int32_xor_to_all pshmem_int32_xor_to_all
|
||||
#define shmem_int64_xor_to_all pshmem_int64_xor_to_all
|
||||
#define shmem_short_xor_to_all pshmem_short_xor_to_all
|
||||
#define shmem_int_xor_to_all pshmem_int_xor_to_all
|
||||
#define shmem_long_xor_to_all pshmem_long_xor_to_all
|
||||
#define shmem_longlong_xor_to_all pshmem_longlong_xor_to_all
|
||||
#define shmem_int16_xor_to_all pshmem_int16_xor_to_all
|
||||
#define shmem_int32_xor_to_all pshmem_int32_xor_to_all
|
||||
#define shmem_int64_xor_to_all pshmem_int64_xor_to_all
|
||||
|
||||
#define shmem_short_max_to_all pshmem_short_max_to_all
|
||||
#define shmem_int_max_to_all pshmem_int_max_to_all
|
||||
#define shmem_long_max_to_all pshmem_long_max_to_all
|
||||
#define shmem_longlong_max_to_all pshmem_longlong_max_to_all
|
||||
#define shmem_float_max_to_all pshmem_float_max_to_all
|
||||
#define shmem_double_max_to_all pshmem_double_max_to_all
|
||||
#define shmem_longdouble_max_to_all pshmem_longdouble_max_to_all
|
||||
#define shmem_int16_max_to_all pshmem_int16_max_to_all
|
||||
#define shmem_int32_max_to_all pshmem_int32_max_to_all
|
||||
#define shmem_int64_max_to_all pshmem_int64_max_to_all
|
||||
#define shmem_short_max_to_all pshmem_short_max_to_all
|
||||
#define shmem_int_max_to_all pshmem_int_max_to_all
|
||||
#define shmem_long_max_to_all pshmem_long_max_to_all
|
||||
#define shmem_longlong_max_to_all pshmem_longlong_max_to_all
|
||||
#define shmem_float_max_to_all pshmem_float_max_to_all
|
||||
#define shmem_double_max_to_all pshmem_double_max_to_all
|
||||
#define shmem_longdouble_max_to_all pshmem_longdouble_max_to_all
|
||||
#define shmem_int16_max_to_all pshmem_int16_max_to_all
|
||||
#define shmem_int32_max_to_all pshmem_int32_max_to_all
|
||||
#define shmem_int64_max_to_all pshmem_int64_max_to_all
|
||||
|
||||
#define shmem_short_min_to_all pshmem_short_min_to_all
|
||||
#define shmem_int_min_to_all pshmem_int_min_to_all
|
||||
#define shmem_long_min_to_all pshmem_long_min_to_all
|
||||
#define shmem_longlong_min_to_all pshmem_longlong_min_to_all
|
||||
#define shmem_float_min_to_all pshmem_float_min_to_all
|
||||
#define shmem_double_min_to_all pshmem_double_min_to_all
|
||||
#define shmem_longdouble_min_to_all pshmem_longdouble_min_to_all
|
||||
#define shmem_int16_min_to_all pshmem_int16_min_to_all
|
||||
#define shmem_int32_min_to_all pshmem_int32_min_to_all
|
||||
#define shmem_int64_min_to_all pshmem_int64_min_to_all
|
||||
#define shmem_short_min_to_all pshmem_short_min_to_all
|
||||
#define shmem_int_min_to_all pshmem_int_min_to_all
|
||||
#define shmem_long_min_to_all pshmem_long_min_to_all
|
||||
#define shmem_longlong_min_to_all pshmem_longlong_min_to_all
|
||||
#define shmem_float_min_to_all pshmem_float_min_to_all
|
||||
#define shmem_double_min_to_all pshmem_double_min_to_all
|
||||
#define shmem_longdouble_min_to_all pshmem_longdouble_min_to_all
|
||||
#define shmem_int16_min_to_all pshmem_int16_min_to_all
|
||||
#define shmem_int32_min_to_all pshmem_int32_min_to_all
|
||||
#define shmem_int64_min_to_all pshmem_int64_min_to_all
|
||||
|
||||
#define shmem_short_sum_to_all pshmem_short_sum_to_all
|
||||
#define shmem_int_sum_to_all pshmem_int_sum_to_all
|
||||
#define shmem_long_sum_to_all pshmem_long_sum_to_all
|
||||
#define shmem_longlong_sum_to_all pshmem_longlong_sum_to_all
|
||||
#define shmem_float_sum_to_all pshmem_float_sum_to_all
|
||||
#define shmem_double_sum_to_all pshmem_double_sum_to_all
|
||||
#define shmem_longdouble_sum_to_all pshmem_longdouble_sum_to_all
|
||||
#define shmem_complexf_sum_to_all pshmem_complexf_sum_to_all
|
||||
#define shmem_complexd_sum_to_all pshmem_complexd_sum_to_all
|
||||
#define shmem_int16_sum_to_all pshmem_int16_sum_to_all
|
||||
#define shmem_int32_sum_to_all pshmem_int32_sum_to_all
|
||||
#define shmem_int64_sum_to_all pshmem_int64_sum_to_all
|
||||
#define shmem_short_sum_to_all pshmem_short_sum_to_all
|
||||
#define shmem_int_sum_to_all pshmem_int_sum_to_all
|
||||
#define shmem_long_sum_to_all pshmem_long_sum_to_all
|
||||
#define shmem_longlong_sum_to_all pshmem_longlong_sum_to_all
|
||||
#define shmem_float_sum_to_all pshmem_float_sum_to_all
|
||||
#define shmem_double_sum_to_all pshmem_double_sum_to_all
|
||||
#define shmem_longdouble_sum_to_all pshmem_longdouble_sum_to_all
|
||||
#define shmem_complexf_sum_to_all pshmem_complexf_sum_to_all
|
||||
#define shmem_complexd_sum_to_all pshmem_complexd_sum_to_all
|
||||
#define shmem_int16_sum_to_all pshmem_int16_sum_to_all
|
||||
#define shmem_int32_sum_to_all pshmem_int32_sum_to_all
|
||||
#define shmem_int64_sum_to_all pshmem_int64_sum_to_all
|
||||
|
||||
#define shmem_short_prod_to_all pshmem_short_prod_to_all
|
||||
#define shmem_int_prod_to_all pshmem_int_prod_to_all
|
||||
#define shmem_long_prod_to_all pshmem_long_prod_to_all
|
||||
#define shmem_longlong_prod_to_all pshmem_longlong_prod_to_all
|
||||
#define shmem_float_prod_to_all pshmem_float_prod_to_all
|
||||
#define shmem_double_prod_to_all pshmem_double_prod_to_all
|
||||
#define shmem_short_prod_to_all pshmem_short_prod_to_all
|
||||
#define shmem_int_prod_to_all pshmem_int_prod_to_all
|
||||
#define shmem_long_prod_to_all pshmem_long_prod_to_all
|
||||
#define shmem_longlong_prod_to_all pshmem_longlong_prod_to_all
|
||||
#define shmem_float_prod_to_all pshmem_float_prod_to_all
|
||||
#define shmem_double_prod_to_all pshmem_double_prod_to_all
|
||||
#define shmem_longdouble_prod_to_all pshmem_longdouble_prod_to_all
|
||||
#define shmem_complexf_prod_to_all pshmem_complexf_prod_to_all
|
||||
#define shmem_complexd_prod_to_all pshmem_complexd_prod_to_all
|
||||
#define shmem_complexf_prod_to_all pshmem_complexf_prod_to_all
|
||||
#define shmem_complexd_prod_to_all pshmem_complexd_prod_to_all
|
||||
#define shmem_int16_prod_to_all pshmem_int16_prod_to_all
|
||||
#define shmem_int32_prod_to_all pshmem_int32_prod_to_all
|
||||
#define shmem_int64_prod_to_all pshmem_int64_prod_to_all
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013 Mellanox Technologies, Inc.
|
||||
* Copyright (c) 2013-2015 Mellanox Technologies, Inc.
|
||||
* All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
@ -19,11 +19,24 @@
|
||||
|
||||
#if OSHMEM_PROFILING
|
||||
#include "oshmem/include/pshmem.h"
|
||||
#pragma weak shmem_align = pshmem_align
|
||||
#pragma weak shmemalign = pshmemalign
|
||||
#include "oshmem/shmem/c/profile/defines.h"
|
||||
#endif
|
||||
|
||||
static inline void* _shmemalign(size_t align, size_t size);
|
||||
|
||||
void* shmem_align(size_t align, size_t size)
|
||||
{
|
||||
return _shmemalign(align, size);
|
||||
}
|
||||
|
||||
void* shmemalign(size_t align, size_t size)
|
||||
{
|
||||
return _shmemalign(align, size);
|
||||
}
|
||||
|
||||
static inline void* _shmemalign(size_t align, size_t size)
|
||||
{
|
||||
int rc;
|
||||
void* pBuff = NULL;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013 Mellanox Technologies, Inc.
|
||||
* Copyright (c) 2013-2015 Mellanox Technologies, Inc.
|
||||
* All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
@ -19,11 +19,24 @@
|
||||
|
||||
#if OSHMEM_PROFILING
|
||||
#include "oshmem/include/pshmem.h"
|
||||
#pragma weak shmem_malloc = pshmem_malloc
|
||||
#pragma weak shmalloc = pshmalloc
|
||||
#include "oshmem/shmem/c/profile/defines.h"
|
||||
#endif
|
||||
|
||||
static inline void* _shmalloc(size_t size);
|
||||
|
||||
void* shmem_malloc(size_t size)
|
||||
{
|
||||
return _shmalloc(size);
|
||||
}
|
||||
|
||||
void* shmalloc(size_t size)
|
||||
{
|
||||
return _shmalloc(size);
|
||||
}
|
||||
|
||||
static inline void* _shmalloc(size_t size)
|
||||
{
|
||||
int rc;
|
||||
void* pBuff = NULL;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013 Mellanox Technologies, Inc.
|
||||
* Copyright (c) 2013-2015 Mellanox Technologies, Inc.
|
||||
* All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
@ -20,11 +20,24 @@
|
||||
|
||||
#if OSHMEM_PROFILING
|
||||
#include "oshmem/include/pshmem.h"
|
||||
#pragma weak shmem_free = pshmem_free
|
||||
#pragma weak shfree = pshfree
|
||||
#include "oshmem/shmem/c/profile/defines.h"
|
||||
#endif
|
||||
|
||||
static inline void _shfree(void* ptr);
|
||||
|
||||
void shmem_free(void* ptr)
|
||||
{
|
||||
_shfree(ptr);
|
||||
}
|
||||
|
||||
void shfree(void* ptr)
|
||||
{
|
||||
_shfree(ptr);
|
||||
}
|
||||
|
||||
static inline void _shfree(void* ptr)
|
||||
{
|
||||
int rc;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2012 Mellanox Technologies, Inc.
|
||||
* Copyright (c) 2012-2015 Mellanox Technologies, Inc.
|
||||
* All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
@ -14,9 +14,27 @@
|
||||
|
||||
#include "orte/mca/errmgr/errmgr.h"
|
||||
|
||||
#if OSHMEM_PROFILING
|
||||
#include "oshmem/include/pshmem.h"
|
||||
#pragma weak shmem_global_exit = pshmem_global_exit
|
||||
#include "oshmem/shmem/c/profile/defines.h"
|
||||
#endif
|
||||
|
||||
extern int oshmem_shmem_inglobalexit;
|
||||
|
||||
static inline void _globalexit(int status);
|
||||
|
||||
void shmem_global_exit(int status)
|
||||
{
|
||||
_globalexit(status);
|
||||
}
|
||||
|
||||
void globalexit(int status)
|
||||
{
|
||||
_globalexit(status);
|
||||
}
|
||||
|
||||
static inline void _globalexit(int status)
|
||||
{
|
||||
oshmem_shmem_inglobalexit++;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013 Mellanox Technologies, Inc.
|
||||
* Copyright (c) 2013-2015 Mellanox Technologies, Inc.
|
||||
* All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
@ -25,16 +25,25 @@
|
||||
|
||||
#if OSHMEM_PROFILING
|
||||
#include "oshmem/include/pshmem.h"
|
||||
#pragma weak shmem_init = pshmem_init
|
||||
#pragma weak start_pes = pstart_pes
|
||||
#include "oshmem/shmem/c/profile/defines.h"
|
||||
#endif
|
||||
|
||||
extern int oshmem_shmem_globalexit_status;
|
||||
|
||||
static inline void _shmem_init(void);
|
||||
|
||||
void shmem_init(void)
|
||||
{
|
||||
/* spec says that npes are ignored for now */
|
||||
_shmem_init();
|
||||
}
|
||||
|
||||
void start_pes(int npes)
|
||||
{
|
||||
/* spec says that npes are ignored for now */
|
||||
shmem_init();
|
||||
_shmem_init();
|
||||
}
|
||||
|
||||
static void shmem_onexit(int exitcode, void *arg)
|
||||
@ -42,7 +51,7 @@ static void shmem_onexit(int exitcode, void *arg)
|
||||
oshmem_shmem_globalexit_status = exitcode;
|
||||
}
|
||||
|
||||
void shmem_init(void)
|
||||
static inline void _shmem_init(void)
|
||||
{
|
||||
int err = OSHMEM_SUCCESS;
|
||||
int provided;
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013 Mellanox Technologies, Inc.
|
||||
* Copyright (c) 2013-2015 Mellanox Technologies, Inc.
|
||||
* All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
@ -18,6 +18,8 @@
|
||||
|
||||
#if OSHMEM_PROFILING
|
||||
#include "oshmem/include/pshmem.h"
|
||||
#pragma weak shmem_n_pes = pshmem_n_pes
|
||||
#pragma weak shmem_my_pe = pshmem_my_pe
|
||||
#pragma weak _num_pes = p_num_pes
|
||||
#pragma weak _my_pe = p_my_pe
|
||||
#include "oshmem/shmem/c/profile/defines.h"
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013 Mellanox Technologies, Inc.
|
||||
* Copyright (c) 2013-2015 Mellanox Technologies, Inc.
|
||||
* All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
@ -21,11 +21,24 @@
|
||||
|
||||
#if OSHMEM_PROFILING
|
||||
#include "oshmem/include/pshmem.h"
|
||||
#pragma weak shmem_realloc = pshmem_realloc
|
||||
#pragma weak shrealloc = pshrealloc
|
||||
#include "oshmem/shmem/c/profile/defines.h"
|
||||
#endif
|
||||
|
||||
static inline void* _shrealloc(void *ptr, size_t size);
|
||||
|
||||
void* shmem_realloc(void *ptr, size_t size)
|
||||
{
|
||||
return _shrealloc(ptr, size);
|
||||
}
|
||||
|
||||
void* shrealloc(void *ptr, size_t size)
|
||||
{
|
||||
return _shrealloc(ptr, size);
|
||||
}
|
||||
|
||||
static inline void* _shrealloc(void *ptr, size_t size)
|
||||
{
|
||||
int rc;
|
||||
void* pBuff = NULL;
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user