From 7f8b53fd0e359aa2b1a588489f31135a8c52b55f Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Wed, 1 Aug 2018 12:36:24 -0700 Subject: bug #1580: Fix cuda clang build. STL is not supported, so std::equal_to and std::not_equal breaks compilation. Update the definition of EIGEN_CONSTEXPR_ARE_DEVICE_FUNC to exclude clang. See also PR 450. --- Eigen/src/Core/util/Meta.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Eigen/src/Core/util/Meta.h') diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h index 658cfa9eb..f27b8e85d 100755 --- a/Eigen/src/Core/util/Meta.h +++ b/Eigen/src/Core/util/Meta.h @@ -569,7 +569,7 @@ template struct scalar_product_traits } // end namespace internal namespace numext { - + #if defined(EIGEN_GPU_COMPILE_PHASE) template EIGEN_DEVICE_FUNC void swap(T &a, T &b) { T tmp = b; b = a; a = tmp; } #else -- cgit v1.2.3