1
1

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
Этот коммит содержится в:
Gilles Gouaillardet 2015-01-13 16:39:41 +09:00
родитель 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;