Skip to content

Commit

Permalink
[Fix] Call operator __half explicit (open-mmlab#2608)
Browse files Browse the repository at this point in the history
  • Loading branch information
q.yao authored and akozlov-outrider committed May 8, 2023
1 parent 884ef8d commit f52641b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmcv/ops/csrc/common/cuda/carafe_cuda_kernel.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f52641b

Please sign in to comment.