Unverified Commit 998e4597 authored by q.yao's avatar q.yao Committed by GitHub
Browse files

[Fix] Call operator __half explicit (#2608)

parent a019d2a3
......@@ -59,7 +59,7 @@ __device__ __forceinline__ phalf warpReduceSum(phalf val) {
__PHALF(val) += __shfl_down(val, offset);
#else
__PHALF(val) +=
__shfl_down_sync(FULL_MASK, static_cast<__half>(__PHALF(val)), offset);
__shfl_down_sync(FULL_MASK, __PHALF(val).operator __half(), offset);
#endif
return val;
}
......
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