numba_dpex.core.kernel_interface.spirv_kernel module

class numba_dpex.core.kernel_interface.spirv_kernel.SpirvKernel(func, func_name)

Bases: KernelInterface

compile(target_ctx, typing_ctx, args, debug, compile_flags)

Compiles a kernel using numba_dpex.core.compiler.Compiler.

Args:

args (_type_): _description_ debug (_type_): _description_ compile_flags (_type_): _description_

property device_driver_ir_module

The module in a device IR (such as SPIR-V or PTX) format.

property llvm_module

The LLVM IR Module corresponding to the Kernel instance.

property module_name

The name of the compiled LLVM module for the kernel.

property pyfunc_name

The Python function name corresponding to the kernel.

property target_context

Returns the target context that was used to compile the kernel.

Raises:

UncompiledKernelError: If the kernel was not yet compiled.

Returns:

target context used to compile the kernel

property typing_context

Returns the typing context that was used to compile the kernel.

Raises:

UncompiledKernelError: If the kernel was not yet compiled.

Returns:

typing context used to compile the kernel