cuda.core.experimental._module.Kernel

class cuda.core.experimental._module.Kernel(*args, **kwargs)

Represent a compiled kernel that had been loaded onto the device.

Kernel instances can execution when passed directly into the launch() function.

Directly creating a Kernel is not supported, and they should instead be created through a ObjectCode object.

Methods

__init__()

Attributes

property arguments_info: list[ParamInfo]

(offset, size) for each argument of this function

Type:

list[ParamInfo]

property attributes: KernelAttributes

Get the read-only attributes of this kernel.

property num_arguments: int

The number of arguments of this function

Type:

int