Repository navigation
Conversation
… UUID query test_rotation_migrates_context and test_swap_identical_gpus skipped on every Linux multi-GPU runner with "migration is a no-op". The migrated target reported Device().uuid, which cuda.core caches per device ordinal, so it kept returning the pre-restore GPU whether or not the context moved. Query the UUID of the GPU behind the current context from the driver (cuCtxGetDevice + cuDeviceGetUuid) instead, and drop the no-op skips: a restore that succeeds with a mapping but leaves the context in place now fails the existing assertions. The precise skips (masked devices, fewer than 2 GPUs, no same-chip pair, CUDA_ERROR_INVALID_VALUE) stay. Remove the "not currently run in any CI job" comments. Closes NVIDIA#3586. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Summary
Change: Other Merge Risk:
|
jpascucci-nv
left a comment
There was a problem hiding this comment.
Sol 6.1 high found no actionable findings. Lgtm.
|
(We still need to wait for success in T4x2 and H100x2 migration tests. ) |
|
CI / nightly verificationPR CI (run 46490211814, head
The other 61 rows SKIP both tests, with the intended precise reasons ("GPU migration tests require at least 2 GPUs" / "No two GPUs of the same chip type found"). Nightly L4 x2 (linux-aarch64): not confirmed. I dispatched it as described ( PR CI run 46490211814 has no Other nightly jobs (numba-cuda, numba-cuda-mlir, cuda-core, some PyTorch) also failed in this dispatch. I haven't looked into those, and they don't involve the migration tests. The run was still in progress at the time of writing. Ways to get the L4 x2 evidence: (a) run the nightly against a CI run for this SHA that builds the bindings tests, or (b) confirm after merge from the first scheduled nightly. The PR description's nightly steps should probably be amended. |
…ightly check Throwaway commit for verifying NVIDIA#3586 in the nightly workflow; to be dropped before merge. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Closes #3586. Part of #2077.
Summary
TestCheckpointGpuMigration::test_rotation_migrates_contextand::test_swap_identical_gpusskipped on every Linux multi-GPU runner (T4 x2, H100 x2, L4 x2) with "Driver accepted GPU rotation/swap but migration is a no-op on this hardware/driver version".The cause is the test's observation, not the driver. The migrated target process reported
Device().uuid, and cuda.core cachesDevice.uuidper device ordinal on first access. Nothing refreshes it after a checkpoint restore, so the target reported the pre-restore GPU whether or not the context moved, and the test turned that into a skip.CUDA_VISIBLE_DEVICES, fewer than 2 GPUs, no two GPUs of the same chip, andCUDA_ERROR_INVALID_VALUE(NVBug 5437334).Possible follow-up (not changed here): in a process that is migrated by checkpoint/restore, cuda.core's cached
Device.uuidis stale. That is a library limitation, not only a test issue.Evidence
CI coverage: on
mainboth tests skip in every configuration; on the four Linux multi-GPU rows, with the "no-op" reason. After this change they should pass on:Other rows keep their precise skips (Windows: checkpoint is Linux-only; single-GPU rows: fewer than 2 GPUs).
Locally: the local GPUs are different chips (RTX 5070, RTX A400), so migration can't be exercised here: a cross-chip restore is rejected with
CUDA_ERROR_INVALID_VALUE, as expected. The fresh UUID query matchesDevice.uuidbefore migration, andtest_checkpoint.pypasses (29 passed; the 2 migration tests skip for "no same-chip pair").Confirming in CI: in this PR's CI run, the linux-64 T4 x2 and H100 x2 cuda.core jobs should report both tests PASSED. For example:
If they fail there instead, the restore really did leave the context in place, which is a driver issue to report under #3586.
For the nightly L4 x2 rows (needs write access to NVIDIA/cuda-python):
gh workflow run ci-nightly.yml --repo NVIDIA/cuda-python --ref pull-request/<PR number> -f run-id=<run-id>Merge Danger
Door: two-way. Test-only change.
Blast Radius: two tests in
cuda_core/tests/test_checkpoint.py. They can now fail on the multi-GPU rows where they used to skip, which is the point.Reviewers: please feel free to push commits directly to this PR to improve it.
🤖 Generated with Claude Code