FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix NVML tests for machines with more than one device by mdboom · Pull Request #1352 · NVIDIA/cuda-python · GitHub

Fix NVML tests for machines with more than one device - #1352

Merged
mdboom merged 1 commit into
NVIDIA:mainfrom
mdboom:fix-nvml-tests-multiple-devices
Dec 10, 2025
Merged

Fix NVML tests for machines with more than one device#1352
mdboom merged 1 commit into
NVIDIA:mainfrom
mdboom:fix-nvml-tests-multiple-devices

Conversation

mdboom commented Dec 10, 2025

Copy link
Copy Markdown
Contributor

Description

As @rwgk discovered, all of the tests using the for_all_devices fixture fail with fixture function has more than one 'yield'. I didn't realize that wasn't allowed. This changes the fixture to just yield the whole list of devices.

copy-pr-bot Bot commented Dec 10, 2025

Copy link
Copy Markdown
Contributor

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

Contributors can view more details about this message here.

mdboom requested a review from rwgk December 10, 2025 00:50

mdboom commented Dec 10, 2025

Copy link
Copy Markdown
Contributor Author

/ok to test

Copy link
Copy Markdown

rwgk left a comment

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM although I'd try to preserve the skip information. I think it's worth a small effort, so that we can reason about what we're actually testing. E.g. where you have the continue, maybe build a defaultdict(int) with the current skip messages as keys; when the end of a subtest is reached, check if the dict is empty, if not call pytest.skip with the key/counts in the message.

I'd try to give that as a prompt to Cursor. Good chance it'll "just do it".

mdboom force-pushed the fix-nvml-tests-multiple-devices branch from 7580dfa to 634abf3 Compare December 10, 2025 01:18

mdboom commented Dec 10, 2025

Copy link
Copy Markdown
Contributor Author

/ok to test

mdboom commented Dec 10, 2025

Copy link
Copy Markdown
Contributor Author

Good idea.

I'd try to give that as a prompt to Cursor. Good chance it'll "just do it".

I did one of these, and VSCode/Copilot was able to infer the rest.

mdboom enabled auto-merge (squash) December 10, 2025 01:24

rwgk left a comment

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

The TestIpcReexport.test_main segfault is interesting. @Andy-Jost for awareness:

https://github.com/NVIDIA/cuda-python/actions/runs/20083999706/job/57617779182?pr=1352

I expect a rerun will deflake that.

mdboom merged commit 4886636 into NVIDIA:main Dec 10, 2025
79 of 80 checks passed
github-actions Bot pushed a commit that referenced this pull request Dec 10, 2025
Removed preview folders for the following PRs:
- PR #1352
mdboom added a commit to mdboom/cuda-python that referenced this pull request Dec 10, 2025
mdboom added a commit that referenced this pull request Dec 11, 2025
* Add experimental NVML bindings to 12.9.x branch

* Add tests from main to 12.9.x branch

* Remove newer APIs

* Remove hand-written 13.0 bindings

* Queue up 'skip reasons' (#1352)

* Handle backport correctly

* Fix cimport

* More versioned struct fixes

* Fix test for 12.9

* Add 13.1 bindings
leofang added this to the cuda-python 13-next, 12-next milestone Dec 14, 2025
leofang added bug Something isn't working test Improvements or additions to tests cuda.bindings Everything related to the cuda.bindings module P0 High priority - Must do! labels Dec 14, 2025
leofang modified the milestones: cuda.bindings 13.1.2 & 12.9.6, cuda.bindings next Feb 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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 P0 High priority - Must do! test Improvements or additions to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL