From 9e03dfb452d3fef3b4f7ee0a1a3b725221fdc209 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Sat, 17 Dec 2016 09:23:37 -0800 Subject: [PATCH] Made sure EIGEN_HAS_C99_MATH is defined when compiling OpenCL code --- Eigen/src/Core/util/Macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index c5f5ccd40..4ce427478 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -381,7 +381,7 @@ ((defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901)) \ || (defined(__GNUC__) && defined(_GLIBCXX_USE_C99)) \ || (defined(_LIBCPP_VERSION) && !defined(_MSC_VER)) \ - || (EIGEN_COMP_MSVC >= 1900)) + || (EIGEN_COMP_MSVC >= 1900) || defined(__SYCL_DEVICE_ONLY__)) #define EIGEN_HAS_C99_MATH 1 #else #define EIGEN_HAS_C99_MATH 0