Skip to main content

Module launch_attr

Module launch_attr 

Source
Expand description

Extended launch attributes + cudaLaunchKernelEx (cluster launches, programmatic stream serialization, preferred shmem carveout).

Modern launches go through LaunchExBuilder:

unsafe {
    LaunchExBuilder::new(&stream, (32, 1, 1), (256, 1, 1))
        .cluster_dim((2, 1, 1))
        .cooperative(true)
        .launch(kernel, &mut args)
        .unwrap();
}

Structs§

LaunchExBuilder
Builder for cudaLaunchKernelEx — accepts up to ~14 attribute kinds.