mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-16 10:59:55 +00:00
Make sure we call __hneg with half to remove ambigios error (#1736)
[ROCm/composable_kernel commit: 67497a044d]
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user