From ab8ad19eda98a0d65820a20d4ce600191c76f5a7 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/hip commit: 094ff5431e769c8e6f769faaece278ced0e3f114] --- projects/hip/include/hip/amd_detail/hip_fp16.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/projects/hip/include/hip/amd_detail/hip_fp16.h b/projects/hip/include/hip/amd_detail/hip_fp16.h index 65dc36ea02..bd016542e4 100644 --- a/projects/hip/include/hip/amd_detail/hip_fp16.h +++ b/projects/hip/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