From 9211198dcd2c94d0b3ea7fb0235cf0293803c99a Mon Sep 17 00:00:00 2001 From: Michael LIAO Date: Wed, 6 Jan 2021 00:13:11 -0500 Subject: [PATCH] Remove checking on `double`. - All conversions among floating point types should be allowed. Change-Id: I6223bece51f5b2a535ab3369c5c4380f18acc74d [ROCm/clr commit: 6b9c1744e9ebbf3bac2615a1de1b74c6c2c0ddc6] --- projects/clr/hipamd/include/hip/amd_detail/hip_fp16.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/projects/clr/hipamd/include/hip/amd_detail/hip_fp16.h b/projects/clr/hipamd/include/hip/amd_detail/hip_fp16.h index 65dc36ea02..bd016542e4 100644 --- a/projects/clr/hipamd/include/hip/amd_detail/hip_fp16.h +++ b/projects/clr/hipamd/include/hip/amd_detail/hip_fp16.h @@ -220,9 +220,7 @@ THE SOFTWARE. #if !defined(__HIP_NO_HALF_CONVERSIONS__) template< typename T, - Enable_if_t< - std::is_floating_point{} && - !std::is_same{}>* = nullptr> + Enable_if_t{}>* = nullptr> __host__ __device__ operator T() const { return data; } #endif