diff --git a/include/ck/utility/math_v2.hpp b/include/ck/utility/math_v2.hpp index 9b00967924..9add49a225 100644 --- a/include/ck/utility/math_v2.hpp +++ b/include/ck/utility/math_v2.hpp @@ -607,7 +607,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