Skip to content

Commit

Permalink
Make ol_compatible_view accessible on all targets
Browse files Browse the repository at this point in the history
This is to fix Issue #8529, where test_reinterpret_array_type fails
on CUDA with NumPy 1.23 because this overload is needed. Making it
accessible to the CUDA target should resolve the issue.
  • Loading branch information
gmarkall committed Oct 25, 2022
1 parent 9d034e9 commit f3f1868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numba/np/arrayobj.py
Original file line number Diff line number Diff line change
Expand Up @@ -2495,7 +2495,7 @@ def _compatible_view(a, dtype):
pass


@overload(_compatible_view)
@overload(_compatible_view, target='generic')
def ol_compatible_view(a, dtype):
"""Determines if the array and dtype are compatible for forming a view."""
# NOTE: NumPy 1.23+ uses this check.
Expand Down

0 comments on commit f3f1868

Please sign in to comment.