Skip to content

CI: give a Linux GPU runner an IMEX channel so the VMM fabric IPC tests run #3580

Todo

Description

@mdboom

Part of #2077.

Problem

8 tests (16 cases) in cuda_core/tests/memory_ipc/test_vmm_fabric.py never run in CI:

  • test_buffer_pickle
  • test_cross_process[*] (8 cases)
  • test_export_shape
  • test_garbage[ones|zero]
  • test_queued_buffer_does_not_pin
  • test_reexport_imported_derivatives
  • test_stale_descriptor
  • test_second_gpu_and_wrong_owner

Every Linux runner (T4, V100, L4, A100, H100, RTX PRO 6000, GH200, GB300) reports CU_DEVICE_ATTRIBUTE_HANDLE_TYPE_FABRIC_SUPPORTED. However, every fabric allocation fails with CUDA_ERROR_NOT_PERMITTED, and the tests skip with "The device reports fabric handle support, but a fabric allocation is refused here". CUDA_ERROR_NOT_PERMITTED is the status you get when the process cannot open an IMEX channel (/dev/nvidia-caps-imex-channels/channel*). cuda.core's own error message for unsupported fabric points at the same path. Windows and WSL skip as designed, because fabric IPC is Linux-only.

The hardware is already in CI. The job containers just can't reach an IMEX channel.

Proposal

  1. On at least one Hopper or Blackwell Linux runner (GH200, GB300, or H100), create IMEX channel 0 on the host (NVreg_CreateImexChannel0=1 module parameter, or nvidia-modprobe -i 0).
  2. Expose /dev/nvidia-caps-imex-channels to the job container.
  3. test_second_gpu_and_wrong_owner also needs 2 GPUs, so do the same on a 2-GPU runner (H100 x2 or L4 x2).

First, confirm which GPU classes can allocate single-node fabric memory once a channel exists, so the change goes to runners where the tests will actually pass.

Done when

The 16 cases pass on at least one scheduled Linux row, and their "not currently run in any CI job" markers are removed.

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
    CI/CD
    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

CI/CDcuda.corenvidia-runnerstest

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions