pub fn launch_config_from_program<K: Kernel>(
n_elements: usize,
program: &CudaProgram<'_, K>,
) -> CudaLaunchConfigExpand 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.