From 99375c652f0686699cf43685a3af6f870ff5cb0e Mon Sep 17 00:00:00 2001 From: Jatin Chaudhary <51944368+cjatin@users.noreply.github.com> Date: Tue, 10 Dec 2024 16:47:36 +0000 Subject: [PATCH] Make sure we call __hneg with half to remove ambigios error (#1736) [ROCm/composable_kernel commit: 67497a044d450fbc0bcb099cfb0aa270cfb0aa6b] --- include/ck/utility/math_v2.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ck/utility/math_v2.hpp b/include/ck/utility/math_v2.hpp index a6c3540d85..eaa1c68138 100644 --- a/include/ck/utility/math_v2.hpp +++ b/include/ck/utility/math_v2.hpp @@ -611,7 +611,7 @@ inline __device__ int8_t neg(int8_t x) template <> inline __device__ half_t neg(half_t x) { - return __hneg(x); + return __hneg(static_cast<__half>(x)); }; template