mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-07-17 00:58:44 +00:00
Make sure we call __hneg with half to remove ambigios error (#1736)
This commit is contained in:
committed by
Jithun Nair
parent
50ee4267e2
commit
60c7f66251
@@ -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