Skip to content

Fix nvbug6563848: Make tests properly skip on unsupported devices. - #2742

Merged
mdboom merged 3 commits into
NVIDIA:mainfrom
mdboom:nvbug-6563848
Sep 1, 2026
Merged

Fix nvbug6563848: Make tests properly skip on unsupported devices.#2742
mdboom merged 3 commits into
NVIDIA:mainfrom
mdboom:nvbug-6563848

Conversation

@mdboom

@mdboom mdboom commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions github-actions Bot added the cuda.bindings Everything related to the cuda.bindings module label Aug 31, 2026
@mdboom mdboom self-assigned this Aug 31, 2026
@mdboom mdboom added this to the cuda.bindings 13.4.0 & 12.9.8 milestone Aug 31, 2026
@github-actions

This comment has been minimized.

@rwgk rwgk added the P0 High priority - Must do! label Aug 31, 2026
new_handle = nvml.device_get_handle_by_uuidv(nvml.UUIDType.ASCII, uuid.encode("ascii"))
assert new_handle == device
with subtests.test(device_index=nvml.device_get_index(device)):
uuid = nvml.device_get_uuid(device)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I asked codex to generate a fix for the one finding it had. The fix is here:

rwgk@c4519f2

The finding was:

  • Blocking: PR 2742 still leaves two Orin UUID failures unresolved. cuda_bindings/tests/nvml/test_device.py:69 passes a bare 36-character UUID to UUIDV, which requires 40 bytes and raises ValueError; unsupported_before catches neither that nor the observed NotFoundError. The legacy lookup in cuda_bindings/tests/nvml/test_pynvml.py:55 is unchanged and also returns NotFoundError on the target Orin.

Comment thread cuda_bindings/tests/nvml/test_cuda.py Outdated
@mdboom
mdboom requested a review from rwgk September 1, 2026 19:35
@mdboom
mdboom merged commit 392f4e9 into NVIDIA:main Sep 1, 2026
109 checks passed
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Doc Preview CI
Preview removed because the pull request was closed or merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cuda.bindings Everything related to the cuda.bindings module P0 High priority - Must do!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants