You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
numba.core.errors.TypingError: Failed in dpex_kernel_nopython mode pipeline (step: numba_dpex qualified name disambiguation)
Failed in nopython mode pipeline (step: nopython frontend)
No implementation of function Function(<function np_real_cbrt_impl.<locals>.cbrt at 0x7f0f545c1940>) found for signature:
>>> cbrt(float32)
There are 2 candidate implementations:
- Of which 2 did not match due to:
Overload in function 'register_jitable.<locals>.wrap.<locals>.ov_wrap': File: numba/core/extending.py: Line 161.
With argument(s): '(float64)':
Rejected as the implementation raised a specific error:
KeyError: <class 'numba_dpex.core.targets.kernel_target.SyclDevice'>
raised from /home/yevhenii/Projects/numba/numba/core/registry.py:100
During: resolving callee type: Function(<function np_real_cbrt_impl.<locals>.cbrt at 0x7f6e67bd9300>)
During: typing of call at /home/yevhenii/Projects/numba/numba/np/npyfuncs.py (839)
File "../numba/numba/np/npyfuncs.py", line 839:
def _cbrt(x):
<source elided>
return np.nan
return cbrt(x)
^
During: lowering "$expr_out_var.12 = call $8load_deref.1.14($arg_out_var.13, func=$8load_deref.1.14, args=[Var($arg_out_var.13, test_dpnp_ufuncs.py:169)], kws=(), vararg=None, varkwarg=None, target=None)" at /home/yevhenii/Projects/numba-dpex/numba_dpex/tests/dpjit_tests/parfors/test_dpnp_ufuncs.py (169)
Possible cause of issue
cbrt is defined with @register_jitable(fastmath=True) which may be not registered at kernel target.
Reproduction
numba_dpex/tests/dpjit_tests/parfors/test_dpnp_ufuncs.py:cbrtfrom_unsupportedatnumba_dpex/core/typing/dpnpdecl.pyPossible cause of issue
cbrtis defined with@register_jitable(fastmath=True)which may be not registered at kernel target.Numba version
Equivalent code for numba+numpy works okay:
Found in #1283