diff options
author | 2016-05-11 23:02:26 -0700 | |
---|---|---|
committer | 2016-05-11 23:02:26 -0700 | |
commit | fae0493f988b8e21f6b0b69d615487507d165dfb (patch) | |
tree | 8efa06dea1a3f827b6bfae5d7c967a5a793e09d5 /Eigen/src/Core/arch/CUDA/PacketMathHalf.h | |
parent | 886445ce4d010dcd4ed612eb79b963506698d57d (diff) |
Fixed a couple of bugs related to the Pascalfamily of GPUs
H: Enter commit message. Lines beginning with 'HG:' are removed.
Diffstat (limited to 'Eigen/src/Core/arch/CUDA/PacketMathHalf.h')
-rw-r--r-- | Eigen/src/Core/arch/CUDA/PacketMathHalf.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Eigen/src/Core/arch/CUDA/PacketMathHalf.h b/Eigen/src/Core/arch/CUDA/PacketMathHalf.h index 138881996..15b784a95 100644 --- a/Eigen/src/Core/arch/CUDA/PacketMathHalf.h +++ b/Eigen/src/Core/arch/CUDA/PacketMathHalf.h @@ -239,8 +239,8 @@ template<> EIGEN_DEVICE_FUNC inline half predux<half2>(const half2& a) { template<> EIGEN_DEVICE_FUNC inline half predux_max<half2>(const half2& a) { #if __CUDA_ARCH__ >= 530 - half first = __low2half(a); - half second = __high2half(a); + __half first = __low2half(a); + __half second = __high2half(a); return __hgt(first, second) ? first : second; #else float a1 = __low2float(a); @@ -251,8 +251,8 @@ template<> EIGEN_DEVICE_FUNC inline half predux_max<half2>(const half2& a) { template<> EIGEN_DEVICE_FUNC inline half predux_min<half2>(const half2& a) { #if __CUDA_ARCH__ >= 530 - half first = __low2half(a); - half second = __high2half(a); + __half first = __low2half(a); + __half second = __high2half(a); return __hlt(first, second) ? first : second; #else float a1 = __low2float(a); |