Skip to content

[BUG]: Numpy 2.4.0 breaks 6 cuda.core tests #1417

Closed

Description

@mdboom

Is this a duplicate?

Type of Bug

Something else

Component

cuda.core

Describe the bug

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.

nvidia-smi output

No response

Activity

  1. self-assigned this
    on Dec 22, 2025
  2. added a commit that references this issue on Dec 22, 2025
    37b73bb
  3. linked a pull request that will close this issueFix #1417: Fix test for Numpy 2.4.0 #1418on Dec 22, 2025
  4. added a commit that references this issue on Dec 22, 2025
    46470ca
  5. added a commit that references this issue on Jan 13, 2026
    1ab529a
  6. added a commit that references this issue on Jan 13, 2026
    e0a11ef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions