Skip to main content

launch_config_from_program

Function launch_config_from_program 

Source
pub fn launch_config_from_program<K: Kernel>(
    n_elements: usize,
    program: &CudaProgram<'_, K>,
) -> CudaLaunchConfig
Expand description

Build a launch config using block size from kernel metadata.

n_elements — total number of elements to process. program — compiled program; metadata.threads_per_block() is used as the block size.