cuda.core.experimental.LaunchConfig

class cuda.core.experimental.LaunchConfig(grid: tuple | int = None, cluster: tuple | int = None, block: tuple | int = None, stream: Stream = None, shmem_size: int | None = None)

Customizable launch options.

grid

Collection of threads that will execute a kernel function.

Type:

Union[tuple, int]

cluster

Group of blocks (Thread Block Cluster) that will execute on the same GPU Processing Cluster (GPC). Blocks within a cluster have access to distributed shared memory and can be explicitly synchronized.

Type:

Union[tuple, int]

block

Group of threads (Thread Block) that will execute on the same streaming multiprocessor (SM). Threads within a thread blocks have access to shared memory and can be explicitly synchronized.

Type:

Union[tuple, int]

stream

The stream establishing the stream ordering semantic of a launch.

Type:

Stream

shmem_size

Dynamic shared-memory size per thread block in bytes. (Default to size 0)

Type:

int, optional