Skip to main content

launch_unchecked

Function launch_unchecked 

Source
pub unsafe fn launch_unchecked<'kernel, RA: ReduceArgs, __R: Runtime>(
    __client: &ComputeClient<__R>,
    __ruda_count: RudaCount,
    __ruda_dim: RudaDim,
    __address_type: AddressType,
    _in_size: usize,
    _out_size: usize,
    input: RuntimeArg<RA::Input<In, InSize>, __R>,
    output: RuntimeArg<RA::Output<Out, OutSize>, __R>,
    reduce_axis: RuntimeArg<usize, __R>,
    out_vec_axis: RuntimeArg<usize, __R>,
    blueprint: ReduceBlueprint,
    config: ReduceOperationConfig,
    _input_dtype: StorageType,
    _output_dtype: StorageType,
    _acc_dtype: StorageType,
)
Expand description

Launch the kernel reduce_kernel() on the given runtime without bound checks.

ยงSafety

The kernel must not:

  • Contain any out of bounds reads or writes. Doing so is immediate UB.
  • Contain any loops that never terminate. These may be optimized away entirely or cause other unpredictable behaviour.