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
With Numpy 2.4.0, the cuda.core test suite fails on the following tests:
FAILED cuda_core/tests/test_utils.py::TestViewCPU::test_args_viewable_as_strided_memory_cpu[in_arr4] - assert (1,) is None
FAILED cuda_core/tests/test_utils.py::TestViewCPU::test_strided_memory_view_cpu_init[in_arr0] - assert (1,) is None
FAILED cuda_core/tests/test_utils.py::TestViewCPU::test_strided_memory_view_cpu[in_arr0] - assert (1,) is None
FAILED cuda_core/tests/test_utils.py::TestViewCPU::test_args_viewable_as_strided_memory_cpu[in_arr0] - assert (1,) is None
FAILED cuda_core/tests/test_utils.py::TestViewCPU::test_strided_memory_view_cpu_init[in_arr4] - assert (1,) is None
FAILED cuda_core/tests/test_utils.py::TestViewCPU::test_strided_memory_view_cpu[in_arr4] - assert (1,) is None
How to Reproduce
Run the cuda.core tests with Numpy 2.4.0 installed. (Numpy 2.3.5 works).
Expected behavior
Tests pass.
My hunch is that Numpy previously set strides to None when the data was C contiguous, but now it is setting it always. I don't see a Numpy CHANGELOG entry for this, but strides is now readonly, fwiw.
Operating System
All Python versions 3.11 and greater in CI. This tracks, since 3.10 is not supported by Numpy 2.4.0, so there we get an earlier version installed.
Activity
Fix NVIDIA#1417: Fix test for Numpy 2.4.0
Fix NVIDIA#1417: Fix test for Numpy 2.4.0 (NVIDIA#1418)
Fix #1417: Fix test for Numpy 2.4.0 (#1418)
Fix #1417: Fix test for Numpy 2.4.0 (#1418) (#1476)