diff options
author | Deven Desai <deven.desai.amd@gmail.com> | 2019-06-22 00:06:05 +0000 |
---|---|---|
committer | Deven Desai <deven.desai.amd@gmail.com> | 2019-06-22 00:06:05 +0000 |
commit | ba506d5bd2da5ef5b709ae5f4e2cebd45f343370 (patch) | |
tree | d98d86ab1436d48f9b963a0a753ac1f9ce62f85c /Eigen/src/Core/arch/GPU | |
parent | c9394d7a0e5efb2ff6adac211f3505a84d80672c (diff) |
fix for a ROCm/HIP specificcompile errror introduced by a recent commit.
Diffstat (limited to 'Eigen/src/Core/arch/GPU')
-rw-r--r-- | Eigen/src/Core/arch/GPU/PacketMathHalf.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/arch/GPU/PacketMathHalf.h b/Eigen/src/Core/arch/GPU/PacketMathHalf.h index 3273c5ea2..4b2c01022 100644 --- a/Eigen/src/Core/arch/GPU/PacketMathHalf.h +++ b/Eigen/src/Core/arch/GPU/PacketMathHalf.h @@ -180,8 +180,8 @@ template <> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE half2 pselect<half2>(const half2& mask, const half2& a, const half2& b) { - half result_low = __low2half(mask) == half(0) ? __low2half(b) : __low2half(a); - half result_high = __high2half(mask) == half(0) ? __high2half(b) : __high2half(a); + half result_low = __low2half(mask) == __half(0) ? __low2half(b) : __low2half(a); + half result_high = __high2half(mask) == __half(0) ? __high2half(b) : __high2half(a); return __halves2half2(result_low, result_high); } |