diff options
author | 2015-11-03 16:36:30 -0800 | |
---|---|---|
committer | 2015-11-03 16:36:30 -0800 | |
commit | 36cd6daaae4e13711853b7c6ecab8a7cf3a84217 (patch) | |
tree | 69e7e85789ab211fb33505cde581564d548a401c /Eigen/src/Core/arch/CUDA/PacketMath.h | |
parent | 29a94c80554920e016ef960853cd16c19702994a (diff) |
Made the CUDA implementation of ploadt_ro compatible with cuda implementations older than 3.5
Diffstat (limited to 'Eigen/src/Core/arch/CUDA/PacketMath.h')
-rw-r--r-- | Eigen/src/Core/arch/CUDA/PacketMath.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/arch/CUDA/PacketMath.h b/Eigen/src/Core/arch/CUDA/PacketMath.h index a2d803c06..0d2c2fef0 100644 --- a/Eigen/src/Core/arch/CUDA/PacketMath.h +++ b/Eigen/src/Core/arch/CUDA/PacketMath.h @@ -177,7 +177,7 @@ template<> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void pstoreu<double>(double* to to[1] = from.y; } -#ifdef __CUDA_ARCH__ +#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ >= 350 template<> EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE float4 ploadt_ro<float4, Aligned>(const float* from) { return __ldg((const float4*)from); |