mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-20 11:56:17 +08:00
Fix check if GPU compile phase for std::hash
This commit is contained in:
parent
db5691ff2b
commit
aba3998278
@ -672,7 +672,7 @@
|
|||||||
#ifndef EIGEN_HAS_STD_HASH
|
#ifndef EIGEN_HAS_STD_HASH
|
||||||
// The std::hash struct is defined in C++11 but is not labelled as a __device__
|
// 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.
|
// 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
|
#define EIGEN_HAS_STD_HASH 1
|
||||||
#else
|
#else
|
||||||
#define EIGEN_HAS_STD_HASH 0
|
#define EIGEN_HAS_STD_HASH 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user