numba_dpex.core.compiler module
- numba_dpex.core.compiler.compile_with_dpex(pyfunc, pyfunc_name, args, return_type, target_context, typing_context, debug=False, is_kernel=True, extra_compile_flags=None)
Compiles a function using class:numba_dpex.core.pipelines.KernelCompiler and returns the compiled result.
- Args:
args: The list of arguments passed to the kernel. debug (bool): Optional flag to turn on debug mode compilation. extra_compile_flags: Extra flags passed to the compiler.
- Returns:
cres: Compiled result.
- Raises:
KernelHasReturnValueError: If the compiled function returns a non-void value.