Skip to content

Fix NVML CUDA device-order test early return - #2768

Merged
rwgk merged 1 commit into
NVIDIA:mainfrom
rwgk:fix-nvml-device-order-early-return
Sep 4, 2026
Merged

Fix NVML CUDA device-order test early return#2768
rwgk merged 1 commit into
NVIDIA:mainfrom
rwgk:fix-nvml-device-order-early-return

Conversation

@rwgk

@rwgk rwgk commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Description

Follow-up to #2742.

Remove an accidentally retained return from test_cuda_device_order(). It currently exits after the first device-kind check on every supported system, so it never checks Thor and never compares the CUDA and NVML device lists.

Checklist

  • New or existing tests cover these changes.
  • The documentation is up to date with these changes. No documentation changes are needed.

Remove the return accidentally retained when the Tegra skip check was converted to a loop. Supported systems now reach the CUDA/NVML device comparison, and the loop can check both Orin and Thor.
@rwgk rwgk added this to the cuda.bindings 13.4.0 & 12.9.8 milestone Sep 4, 2026
@rwgk rwgk added bug Something isn't working cuda.bindings Everything related to the cuda.bindings module labels Sep 4, 2026
@copy-pr-bot

copy-pr-bot Bot commented Sep 4, 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.

@rwgk rwgk self-assigned this Sep 4, 2026
@rwgk

rwgk commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test

@rwgk
rwgk marked this pull request as ready for review September 4, 2026 19:35
@rwgk
rwgk requested a review from mdboom September 4, 2026 19:35
@rwgk
rwgk enabled auto-merge (squash) September 4, 2026 19:42
@github-actions

This comment has been minimized.

@rwgk
rwgk merged commit 978cdce into NVIDIA:main Sep 4, 2026
117 checks passed

@sylvesterkaczmarek sylvesterkaczmarek left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is a real test-control-flow bug: the unconditional return exits after the first Orin check even on ordinary systems, so neither Thor detection nor the CUDA/NVML ordering assertion runs. Removing it restores the intended skip-only semantics for special device naming without changing production code. Tiny patch, but the effect is meaningful because the main assertion was effectively disabled.

@github-actions

github-actions Bot commented Sep 4, 2026

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

@rwgk
rwgk deleted the fix-nvml-device-order-early-return branch September 4, 2026 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cuda.bindings Everything related to the cuda.bindings module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants