numba_dpex.core.kernel_interface.kernel_base module
- class numba_dpex.core.kernel_interface.kernel_base.KernelInterface
Bases:
objectAn interface for compute kernel that was generated either from a Python function object or as a Numba IR FunctionType object.
- Args:
metaclass (optional): The interface is derived from abc.ABCMeta.
- Raises:
NotImplementedError: The interface does not implement any of the methods and subclasses are required to implement them.
- abstract compile(target_ctx, typing_ctx, args, debug, compile_flags)
Abstract method to compile a Kernel instance.
- abstract property device_driver_ir_module
The module in a device IR (such as SPIR-V or PTX) format.
- abstract property llvm_module
The LLVM IR Module corresponding to the Kernel instance.
- abstract property module_name
The LLVM module name for the compiled kernel.
- abstract property pyfunc_name
The Python function name corresponding to the Kernel instance.