diff options
author | Antonio Sanchez <cantonios@google.com> | 2021-02-23 19:52:08 -0800 |
---|---|---|
committer | Antonio Sanchez <cantonios@google.com> | 2021-02-23 19:52:08 -0800 |
commit | aba39982786c8aa2b1486ebdf2d9b51a43e0bcee (patch) | |
tree | 01cea29a87426454dd22503971eb9bc43a9bef87 /Eigen/src/Core/util/Macros.h | |
parent | db5691ff2b537ef003b192b5cbd871f0eb9309ba (diff) |
Fix check if GPU compile phase for std::hash
Diffstat (limited to 'Eigen/src/Core/util/Macros.h')
-rw-r--r-- | Eigen/src/Core/util/Macros.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index d4f91a905..04e8e4d1e 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -672,7 +672,7 @@ #ifndef EIGEN_HAS_STD_HASH // The std::hash struct is defined in C++11 but is not labelled as a __device__ // function and is not constexpr, so cannot be used on device. -#if EIGEN_HAS_CXX11 && !EIGEN_GPU_COMPILE_PHASE +#if EIGEN_HAS_CXX11 && !defined(EIGEN_GPU_COMPILE_PHASE) #define EIGEN_HAS_STD_HASH 1 #else #define EIGEN_HAS_STD_HASH 0 |