From f3f1868693813a66ae9084515f139105d3cc605c Mon Sep 17 00:00:00 2001 From: Graham Markall Date: Tue, 25 Oct 2022 09:59:37 +0100 Subject: [PATCH] Make ol_compatible_view accessible on all targets 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. --- numba/np/arrayobj.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/numba/np/arrayobj.py b/numba/np/arrayobj.py index 5d91714ee09..1574041b33b 100644 --- a/numba/np/arrayobj.py +++ b/numba/np/arrayobj.py @@ -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.