"...composable_kernel.git" did not exist on "88833bd9ad99721fdc9f636e096710acf7e0b14f"
Commit acf73bd1 authored by Jatin Chaudhary's avatar Jatin Chaudhary Committed by Pruthvi Madugundu
Browse files

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

parent a82ae8e5
...@@ -607,7 +607,7 @@ inline __device__ int8_t neg<int8_t>(int8_t x) ...@@ -607,7 +607,7 @@ inline __device__ int8_t neg<int8_t>(int8_t x)
template <> template <>
inline __device__ half_t neg<half_t>(half_t x) inline __device__ half_t neg<half_t>(half_t x)
{ {
return __hneg(x); return __hneg(static_cast<__half>(x));
}; };
template <typename T> template <typename T>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment