Make sure we call __hneg with half to remove ambigios error (#1736)

[ROCm/composable_kernel commit: 67497a044d]
This commit is contained in:
Jatin Chaudhary
2024-12-10 16:47:36 +00:00
committed by GitHub
parent a05c4ff96c
commit 99375c652f

View File

@@ -611,7 +611,7 @@ inline __device__ int8_t neg<int8_t>(int8_t x)
template <>
inline __device__ half_t neg<half_t>(half_t x)
{
return __hneg(x);
return __hneg(static_cast<__half>(x));
};
template <typename T>