Skip to content

ci: [experiment] probe host-located graph allocations across CI drivers (#3588) - #3690

Closed
mdboom wants to merge 1 commit into
NVIDIA:mainfrom
mdboom:probe-graph-host-alloc
Closed

mdboom wants to merge 1 commit into
NVIDIA:mainfrom
mdboom:probe-graph-host-alloc

Conversation

@mdboom

@mdboom mdboom commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Experiment, not meant to merge. Part of #3588 and #2077; informs #3662.

Summary

Question: does any driver or platform we can reach accept a host-located allocation inside a CUDA graph? #3662 assumes drivers after 13.4 will, but @rluo8 reports a 13.5 driver also returns CUDA_ERROR_NOT_SUPPORTED, and neither the driver API docs (12.9 to 13.6 headers) nor the Programming Guide's graph memory nodes section mention a host location ("poolProps.location ... specifies the resident device").

This PR runs a pure-cuda.bindings probe on every CI row:

 ci/tools/
+└── probe_graph_host_alloc.py      # the probe (no cuda.core involved)
 .github/workflows/
 ├── test-wheel-linux.yml
+│     after "Run cuda.core tests": Probe host-located graph allocations (continue-on-error)
 └── test-wheel-windows.yml
+      after "Run cuda.core tests": Probe host-located graph allocations (continue-on-error)
 ci/test-matrix.yml
-  rtxpro6000 / l4 custom-driver rows: DRIVER 610.43.02
+  rtxpro6000 / l4 custom-driver rows: DRIVER 620.85.02 (newest public Linux driver)
+  arm64 gh200 and gb300 rows added to the PR matrix (normally nightly-only; coherent host memory)

The probe tries every combination of:

  • API path: cuGraphAddMemAllocNode (v1 params), cuGraphAddNode(MEM_ALLOC) (v2 params), and stream-captured cuMemAllocFromPoolAsync from an explicit pool and from cuMemGetDefaultMemPool;
  • allocation type: PINNED, MANAGED;
  • location: DEVICE, HOST id 0, HOST id -1, HOST_NUMA 0, HOST_NUMA_CURRENT;
  • access descriptors: none, or device read/write.

Baselines per location: cuMemPoolCreate, plus an eager (non-graph) allocation from that pool. Successful graph allocations are also instantiated and launched. It also prints the relevant device attributes (HOST_MEMORY_POOLS_SUPPORTED, HOST_NUMA_MEMORY_POOLS_SUPPORTED, PAGEABLE_MEMORY_ACCESS, TCC_DRIVER, ...).

The 620.85.02 x86_64 installer SHA-256 was computed with curl -fsSL https://us.download.nvidia.com/XFree86/Linux-x86_64/620.85.02/NVIDIA-Linux-x86_64-620.85.02.run | sha256sum (549,850,362 bytes); reviewers should recompute. There is no aarch64 620.85.02 installer (404), so arm rows stay on the runner's driver.

Evidence

Locally (driver 615.71.09 / CUDA 13.4; RTX 5070 and RTX A400; both cu13 and cu12 bindings):

DEVICE location any host location
pool create + eager allocation SUCCESS SUCCESS (HOST_NUMA_CURRENT: MANAGED only)
graph alloc node, v1 or v2 API SUCCESS, launches NOT_SUPPORTED (INVALID_VALUE for PINNED HOST_NUMA_CURRENT)
stream-captured allocation SUCCESS, launches NOT_SUPPORTED

So host pools work, but no graph path accepts them, and the host-pool device attributes don't predict graph support.

What CI should answer: the same table on 620.85.02 (rtxpro6000, l4), on GH200 and GB300, on WSL, and on Windows TCC/MCDM/WDDM.

Reading the results: CI has to be triggered by hand on this draft. Once the run finishes:

RUN=<CI run id>
gh api --paginate "repos/NVIDIA/cuda-python/actions/runs/$RUN/jobs?per_page=100" \
  --jq '.jobs[] | "\(.id)\t\(.name)"' > jobs.tsv
while IFS=$'\t' read -r id name; do
  log=$(gh api "repos/NVIDIA/cuda-python/actions/jobs/$id/logs")
  echo "== $name"
  grep -q "PROBE device=" <<<"$log" || continue
  grep -E "PROBE device=" <<<"$log" | sed 's/.*PROBE //'
  # any host-located graph allocation that succeeded:
  grep -E "RESULT (cuGraphAdd|captured).*HOST.*CUDA_SUCCESS" <<<"$log" | sed 's/.*RESULT //'
done < jobs.tsv

An empty second grep on every job means no reachable driver/platform supports host-located graph allocations. Any line it prints is the configuration where it works.

Merge Danger

Door: two-way. Do not merge; close after recording results on #3588 and #3662.

Blast Radius: CI-only, this PR's run. The custom-driver rows install 620.85.02 instead of 610.43.02, and two extra arm64 rows run.

Reviewers: please feel free to push commits directly to this PR to improve it.

🤖 Generated with Claude Code

Adds a temporary probe step on every Linux and Windows test row that
reports which host-located graph allocations the driver accepts, moves
the custom-driver rows to 620.85.02, and adds GH200/GB300 rows to the
PR matrix. Not meant to merge; see NVIDIA#3588.

The 620.85.02 x86_64 installer SHA-256 was computed locally with
`curl -fsSL <installer-url> | sha256sum`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mdboom mdboom added CI/CD CI/CD infrastructure cuda.core Everything related to the cuda.core module test Improvements or additions to tests labels Dec 2, 2026
@mdboom mdboom self-assigned this Dec 2, 2026
@mdboom mdboom added this to the CI milestone Dec 2, 2026
@mdboom

mdboom commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test

@copy-pr-bot

copy-pr-bot Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

mdboom added a commit to mdboom/cuda-python that referenced this pull request Dec 3, 2026
…the round trip

The NVIDIA#3690 probe found no driver or platform that accepts a host-located
graph allocation: CUDA 13.0 and 13.2 drivers on every CI row (Linux,
Windows TCC/MCDM/WDDM, WSL; V100 through GB300), 13.4 locally, and 13.5
(620.70.10) on every Linux row of NVIDIA#3691. Graph memory nodes are documented
only for device-resident memory.

So the rejection test no longer depends on a driver-version threshold, and
the round-trip test, which no configuration ever ran, is removed. The
rejection test's docstring says to replace it with a round trip if a
driver starts accepting host locations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mdboom

mdboom commented Dec 3, 2026

Copy link
Copy Markdown
Contributor Author

Experiment complete; results are summarized in #3662 (comment). No driver or platform accepted a host-located graph allocation, so #3662 now asserts NOT_SUPPORTED unconditionally. Closing without merging, as planned.

@mdboom mdboom closed this Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/CD CI/CD infrastructure cuda.core Everything related to the cuda.core module test Improvements or additions to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant