Made the CUDA implementation of ploadt_ro compatible with cuda implementations older than 3.5

This commit is contained in:
Benoit Steiner 2015-11-03 16:36:30 -08:00
parent 29a94c8055
commit 36cd6daaae

View File

@ -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);