tvm_tirx.backend.cuda.op.cta_reduce#
- tvm_tirx.backend.cuda.op.cta_reduce(value, op, num_warps, scratch, *, ty=None, loc=UNKNOWN_LOC)#
CTA-wide reduction via warp shuffle + shared memory.
Two-step reduction: (1) intra-warp shuffle reduction, (2) warp-0 collects per-warp partials from
scratch, reduces, broadcasts via__syncthreads(). All CTA threads must participate.- Parameters:
- Returns:
call (Expr) – The reduced value broadcast to all threads (same dtype as value).