tilelang.jit.adapter.nvrtc.adapter¶
Attributes¶
Classes¶
Helper class that provides a standard way to create an ABC using |
Module Contents¶
- tilelang.jit.adapter.nvrtc.adapter.logger¶
- class tilelang.jit.adapter.nvrtc.adapter.NVRTCKernelAdapter(params, result_idx, target, func_or_mod, host_mod=None, device_mod=None, kernel_global_source=None, verbose=False, pass_configs=None, compile_flags=None)¶
Bases:
tilelang.jit.adapter.base.BaseKernelAdapterHelper class that provides a standard way to create an ABC using inheritance.
- Parameters:
params (list[tilelang.engine.param.KernelParam])
result_idx (list[int])
target (str | tvm.target.Target)
func_or_mod (tvm.tir.PrimFunc | tilelang.tvm.IRModule)
host_mod (tilelang.tvm.IRModule | None)
device_mod (tilelang.tvm.IRModule | None)
kernel_global_source (str | None)
verbose (bool)
pass_configs (dict[str, Any] | None)
compile_flags (list[str] | None)
- pymodule = None¶
- kernels¶
- params¶
- result_idx¶
- kernel_global_source = None¶
- param_dtypes¶
- param_shapes = []¶
- dynamic_symbolic_map¶
- target¶
- verbose = False¶
- wrapper¶
- lib_generator¶
- libpath¶
- classmethod from_database(params, result_idx, target, func_or_mod, kernel_global_source, kernel_lib_path, verbose=False, pass_configs=None, compile_flags=None)¶
- Parameters:
params (list[tilelang.engine.param.KernelParam])
result_idx (list[int])
target (str)
func_or_mod (tvm.tir.PrimFunc | tilelang.tvm.IRModule)
kernel_global_source (str)
kernel_lib_path (str)
verbose (bool)
pass_configs (dict[str, Any] | None)
compile_flags (list[str] | None)
- get_kernel_source()¶
Get the CUDA kernel source code.
- Returns:
The kernel source code, or None if not available
- Return type:
Optional[str]
- property prim_func: tvm.tir.PrimFunc¶
Returns the primary TIR function from the IR module.
- Return type:
tvm.tir.PrimFunc