don't define OPAL_HAVE_ATOMIC_SWAP_64/32 in amd/atomic.h unless we have inlined assembly. fixes pgi complilation on XE/XK-6
This commit was SVN r26343.
Этот коммит содержится в:
родитель
3461809341
Коммит
e84f9ec8c3
@ -44,10 +44,6 @@
|
||||
|
||||
#define OPAL_HAVE_ATOMIC_CMPSET_64 1
|
||||
|
||||
#define OPAL_HAVE_ATOMIC_SWAP_32 1
|
||||
|
||||
#define OPAL_HAVE_ATOMIC_SWAP_64 1
|
||||
|
||||
/**********************************************************************
|
||||
*
|
||||
* Memory Barriers
|
||||
@ -125,6 +121,10 @@ static inline int opal_atomic_cmpset_64( volatile int64_t *addr,
|
||||
|
||||
#if OMPI_GCC_INLINE_ASSEMBLY
|
||||
|
||||
#define OPAL_HAVE_ATOMIC_SWAP_32 1
|
||||
|
||||
#define OPAL_HAVE_ATOMIC_SWAP_64 1
|
||||
|
||||
static inline int32_t opal_atomic_swap_32( volatile int32_t *addr,
|
||||
int32_t newval)
|
||||
{
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user