Skip to content

test(cuda.core): host-located graph memory-allocation nodes return NOT_SUPPORTED on every runner #3588

Todo

Description

@mdboom

Part of #2077.

Problem

cuda_core/tests/graph/test_graph_definition.py::test_alloc_memory_type_host never runs in CI. It checks that a graph memory-allocation node created with GraphDefinition.allocate(..., memory_type=GraphMemoryType.HOST) reconstructs its memory_type and dptr from the driver.

The node is created with a CU_MEM_LOCATION_TYPE_HOST pool location. On every runner, the driver returns CUDA_ERROR_NOT_SUPPORTED, and the test skips with "Driver does not support graph alloc memory_type='host'". That includes 59 configurations, GH200 and GB300 among them, on drivers 595.99.02 (CUDA 13.2) and 610.43.02 (CUDA 13.3). The remaining 6 skip earlier because the device has no memory pools.

The test already skips drivers older than 13.0. Beyond that, it treats any NOT_SUPPORTED as an acceptable outcome, so it would never notice if host-located graph allocations started working, or stopped working on a driver that should support them.

Investigation

  • Find out which driver versions and platforms support graph memory-allocation nodes with a host pool location, and whether there are prerequisites (for example, a host memory-pool device attribute) that cuda.core could check first.
  • Recheck on a driver as new as the CTK under test (CI: no runner has a driver as new as the CTK under test (13.5) #3579).

Then gate the test on the documented requirement (driver version and/or device attribute) instead of skipping on any NOT_SUPPORTED. If no released driver supports it yet, say so in the skip reason, and consider whether GraphMemoryType.HOST should document the requirement too.

Done when

The requirement is known and encoded in the test's skip condition (and documented for GraphMemoryType.HOST if needed), and the test runs wherever the requirement is met.

Guidance for PRs that address this issue

  • When making a fix that allows a test to run in CI, remove the comment about the test not running in CI from the code.
  • When making a test run only in nightly CI, we need to concretely confirm that in nightly CI. Include instructions in the PR about how to kick off a nightly run for the specific PR in order to test that (see below).
  • For every PR note that the reviewer should feel free to push commits directly to the PR to improve things. @mdboom does not have the bandwidth to shepard each of them through.
  • Every PR should include a way to confirm automatically that the tests are now running in at least one CI configuration.

Running the nightly test suites for a PR

The nightly workflow can test a PR's own wheels and tests, but it has to be started by hand. Starting it needs write access to NVIDIA/cuda-python, so ask a maintainer if you don't have it.

  1. Wait for the PR's CI workflow run to finish successfully, and note its run ID, the number in its URL (.../actions/runs/<run-id>).

  2. Start CI: Nightly optional-deps on the PR's mirror branch, with that run ID. Either:

    • In the GitHub UI: Actions → CI: Nightly optional-deps → Run workflow. Set Use workflow from to pull-request/<PR number>, enter the run ID in the run-ID field, and leave the link-checker-only box unchecked.

    • From the command line:

      gh workflow run ci-nightly.yml --repo NVIDIA/cuda-python --ref pull-request/<PR number> -f run-id=<run-id>
      

    Supply the run ID. Without it, the nightly run tests main's latest wheels and tests, not the PR's.

  3. Link the nightly run in the PR. Then confirm that the affected tests ran and passed, rather than skipped, in the relevant nightly jobs.

The nightly run tests the commit of that CI run. Repeat these steps after pushing changes that affect the nightly-only tests.

Activity

  1. added
    test
    cuda.core
    on Nov 25, 2026
  2. self-assigned this
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

cuda.coretest

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions