From 36cd6daaae4e13711853b7c6ecab8a7cf3a84217 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Tue, 3 Nov 2015 16:36:30 -0800 Subject: [PATCH] Made the CUDA implementation of ploadt_ro compatible with cuda implementations older than 3.5 --- Eigen/src/Core/arch/CUDA/PacketMath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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* 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(const float* from) { return __ldg((const float4*)from);