tilelang.cuda.language.reduce_op¶
CUDA dialect of the reduction operators: the common ops plus CUDA knobs.
Functions¶
|
Perform reduce max, with the CUDA NaN-propagation knob. |
|
Perform reduce min, with the CUDA NaN-propagation knob. |
|
Perform reduce absolute max, with the CUDA NaN-propagation knob. |
Module Contents¶
- tilelang.cuda.language.reduce_op.reduce_max(buffer, out, dim=-1, clear=True, batch=1, nan_propagate=False, annotations=None)¶
Perform reduce max, with the CUDA NaN-propagation knob.
Same semantics as the common
tilelang.language.reduce_op.reduce_max().nan_propagateis meaningful for float16/bfloat16 only: when True the reduction lowers to__hmax_nanso NaNs propagate; when False (default)__hmaxreturns the non-NaN operand. Targets without these intrinsics reject the annotation at compile time.
- tilelang.cuda.language.reduce_op.reduce_min(buffer, out, dim=-1, clear=True, batch=1, nan_propagate=False, annotations=None)¶
Perform reduce min, with the CUDA NaN-propagation knob.
See
reduce_max(); this lowers to__hmin_nan/__hmin.
- tilelang.cuda.language.reduce_op.reduce_absmax(buffer, out, dim=-1, clear=True, batch=1, nan_propagate=False, annotations=None)¶
Perform reduce absolute max, with the CUDA NaN-propagation knob.
See
reduce_max().