Cross target use of target-less @overload
leads to lowering errors.
#8530
Labels
bug - incorrect behavior
Bugs: incorrect behavior
@overload
leads to lowering errors.
#8530
Reporting a bug
visible in the change log (https://github.com/numba/numba/blob/main/CHANGE_LOG).
i.e. it's possible to run as 'python bug.py'.
This incorrect use of
@overload
is actually a simplified version of the issue in #8529. Note that the@overload
has notarget=
kwarg, as such the CUDA target cannot find it, but also as thetarget
is merely implied as CPU to preserve existing behaviours, this manifests as a lowering error as there's nobar
function implementation in the target context for CUDA.The error message ends with:
which is not ideal.
If the example is updated so that the overload is declared as
cpu
only via@overload(bar, target='cpu')
, then the error message is more helpful:The text was updated successfully, but these errors were encountered: