CUDA test: test_reinterpret_array_type
is failing on NumPy 1.23
#8529
Labels
bug - failure to compile
Bugs: failed to compile valid code
bug - regression
A regression against a previous version of Numba
CUDA
CUDA related issue/PR
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'.
Reproducer is simply install Numba (from 0.56 series or current
main
) alongside NumPy>=1.23 and then run the test:Failure is roughly:
I suspect it's this that's causing the issue:
numba/numba/np/arrayobj.py
Lines 2559 to 2569 in f4b6fe0
the lowering for
array.view
is being "borrowed" by the CUDA target, but this branch for NumPy 1.23 resolves an@overload
(following) to determine if it's a compatible view and something goes wrong. I would guess that it either refuses to compile on CUDA (which is probably correct) or the current compilation target gets mixed up leading to similar.numba/numba/np/arrayobj.py
Lines 2498 to 2539 in f4b6fe0
The same test runs fine on NumPy 1.22.
CC @gmarkall.
The text was updated successfully, but these errors were encountered: