Commit 60c7f662 authored by Jatin Chaudhary's avatar Jatin Chaudhary Committed by Jithun Nair
Browse files

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

parent 50ee4267
......@@ -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>
......
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