aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen
diff options
context:
space:
mode:
authorGravatar nluehr <nluehr@nvidia.com>2017-11-28 10:15:46 -0800
committerGravatar nluehr <nluehr@nvidia.com>2017-11-28 10:15:46 -0800
commitaefd5fd5c4331f0265abb692d4742b558f13f01d (patch)
tree3bdc9715d810e7ae17099cb8e11e9a0beb66652e /Eigen
parentd0b028e1731e7670c5ace4f79c8d48137dd55483 (diff)
Replace __float2half_rn with __float2half
The latter provides a consistent definition for CUDA 8.0 and 9.0.
Diffstat (limited to 'Eigen')
-rw-r--r--Eigen/src/Core/arch/CUDA/PacketMathHalf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/arch/CUDA/PacketMathHalf.h b/Eigen/src/Core/arch/CUDA/PacketMathHalf.h
index e3e45b03a..8a6f209c4 100644
--- a/Eigen/src/Core/arch/CUDA/PacketMathHalf.h
+++ b/Eigen/src/Core/arch/CUDA/PacketMathHalf.h
@@ -231,7 +231,7 @@ template<> __device__ EIGEN_STRONG_INLINE Eigen::half predux<half2>(const half2&
#else
float a1 = __low2float(a);
float a2 = __high2float(a);
- return Eigen::half(__float2half_rn(a1 + a2));
+ return Eigen::half(__float2half(a1 + a2));
#endif
}
@@ -265,7 +265,7 @@ template<> __device__ EIGEN_STRONG_INLINE Eigen::half predux_mul<half2>(const ha
#else
float a1 = __low2float(a);
float a2 = __high2float(a);
- return Eigen::half(__float2half_rn(a1 * a2));
+ return Eigen::half(__float2half(a1 * a2));
#endif
}