numba_dpex.core.utils.kernel_templates package
Submodules
Module contents
- class numba_dpex.core.utils.kernel_templates.RangeKernelTemplate(kernel_name, kernel_params, kernel_rank, ivar_names, sentinel_name, loop_ranges, param_dict)
Bases:
objectA template class to generate a numba_dpex.kernel decorated function representing a basic range kernel.
- dump_kernel_ir()
Helper to dump the Numba IR for the RangeKernelTemplate.
- dump_kernel_string()
Helper to print the kernel function string.
- property kernel_ir
Returns the Numba IR generated for a RangeKernelTemplate.
Returns: The Numba functionIR object for the compiled kernel_txt string.
- property kernel_string
Returns the function string generated for a RangeKernelTemplate.
- Returns:
str: A string representing a stub kernel function for the parfor.