Skip to main content

generate_inline_block_reduce

Function generate_inline_block_reduce 

Source
pub fn generate_inline_block_reduce(
    value_expr: &str,
    shared_array: &str,
    result_var: &str,
    ty: &str,
    block_size: u32,
    op: &ReductionOp,
) -> String
Expand description

Generate inline reduction code (without helper function call).

Use this when you want the reduction logic inlined in a specific location.