configury: check existence of the atomic_init function in libfabric
intel compilers implements atomic_init in c++ only, so disable c11 atomic in libfabric for now
Этот коммит содержится в:
родитель
cbe0d26b2d
Коммит
955f3c2730
@ -201,7 +201,9 @@ AC_DEFUN([_OPAL_COMMON_LIBFABRIC_SETUP_LIBFABRIC_EMBEDDED],[
|
||||
# Check for gcc atomic intrinsics
|
||||
AC_MSG_CHECKING(compiler support for c11 atomics)
|
||||
AC_TRY_LINK([#include <stdatomic.h>],
|
||||
[#ifdef __STDC_NO_ATOMICS__
|
||||
[atomic_int a;
|
||||
atomic_init(&a, 0);
|
||||
#ifdef __STDC_NO_ATOMICS__
|
||||
#error c11 atomics are not supported
|
||||
#else
|
||||
return 0;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user