tvm_tirx.backend.cuda.op.warp_reduce#
- tvm_tirx.backend.cuda.op.warp_reduce(value, op, width=32, *, ty=None, loc=UNKNOWN_LOC)#
Warp-level butterfly shuffle-XOR reduction.
Reduces
valueacrosswidthadjacent lanes using the specified operation. Codegen emitslog2(width)steps of__shfl_xor_sync(0xFFFFFFFF, val, mask)with descending XOR masks.- Parameters:
- Returns:
call (Expr) – The reduced value (same dtype as value).