mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-13 20:26:03 +08:00
Made the CUDA implementation of ploadt_ro compatible with cuda implementations older than 3.5
This commit is contained in:
parent
29a94c8055
commit
36cd6daaae
@ -177,7 +177,7 @@ template<> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void pstoreu<double>(double* to
|
|||||||
to[1] = from.y;
|
to[1] = from.y;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __CUDA_ARCH__
|
#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ >= 350
|
||||||
template<>
|
template<>
|
||||||
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE float4 ploadt_ro<float4, Aligned>(const float* from) {
|
EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE float4 ploadt_ro<float4, Aligned>(const float* from) {
|
||||||
return __ldg((const float4*)from);
|
return __ldg((const float4*)from);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user