You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: remove tests for hardware no supported driver runs on; deprecate is_auto_boosted_clocks_enabled - #3655
Two tests exercised NVML features that exist only on hardware no supported driver runs on, so they skipped in every configuration. They are removed rather than kept as permanent skips, and the cuda.core API behind one of them is deprecated:
Only Kepler reports it; Kepler needs an R470 or older driver, which neither cuda-bindings 12.x nor 13.x supports
Decision on is_auto_boosted_clocks_enabled: deprecated, following the system.NvlinkInfo.max_links precedent (1.1.0). It raises NotSupportedError on every current GPU; the deprecation message points to set_application_clocks / reset_application_clocks, which control Auto Boost on Pascal and newer.
The generated cuda.bindings.nvml unit bindings are unchanged; they mirror nvml.h.
Other bindings root:cuda_bindings_12/tests/nvml/ has no unit test and nothing else uses the unit_handles fixture, so no matching change is needed there.
Evidence
CI coverage: on main, test_unit_get_devices_returns_array skips in all 30 CUDA 13 configurations ("No NVML units present on this system"), and test_auto_boosted_clocks_enabled skips in all 65 cuda.core configurations (not supported on L4, RTX 4090, H100, GH200, GB300, ...). After this change neither test exists.
Locally (cuda.core built from this branch): cuda_core/tests/system/ passes (87 passed, 29 skipped, 5 xfailed), cuda_bindings_13/tests/nvml passes (58 passed, 40 skipped), and with -W error the property raises the DeprecationWarning.
Confirming in CI: no job in this PR's CI run should report either test. For example:
gh run view <CI run id> --repo NVIDIA/cuda-python --log | grep -cE "test_unit_get_devices_returns_array|test_auto_boosted_clocks_enabled" # expect 0
Merge Danger
Door: two-way. The deprecation only adds a warning; the property behaves as before.
Blast Radius: callers of system.Device.is_auto_boosted_clocks_enabled now see a DeprecationWarning (and, as before, NotSupportedError on current GPUs).
Reviewers: please feel free to push commits directly to this PR to improve it.
…e is_auto_boosted_clocks_enabled
test_unit_get_devices_returns_array (cuda_bindings_13) needs NVML units,
which exist only on Tesla S-class chassis, and test_auto_boosted_clocks_enabled
(cuda_core) needs a GPU that reports auto boosted clocks, which only Kepler
does. No driver that cuda-bindings 12.x or 13.x supports runs on either, so
both tests skipped in every configuration. Delete them, along with the
unit_handles fixture. The generated NVML bindings are unchanged.
Deprecate cuda.core.system.Device.is_auto_boosted_clocks_enabled, which
raises NotSupportedError on every current GPU, following the
NvlinkInfo.max_links precedent.
ClosesNVIDIA#3577.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Accessing the automatic boost-clock status property now emits a deprecation warning. It may raise NotSupportedError on current GPUs; use the application-clock controls instead.
Documentation
Updated the 1.4.0 release notes with the deprecation details and alternatives.
The PR removes two tests for NVML features unavailable on supported hardware. It marks Device.is_auto_boosted_clocks_enabled as deprecated, emits a warning when accessed, and documents application-clock alternatives.
Changes: Unsupported NVML features
Layer / File(s)
Summary
Deprecate the auto-boost API cuda_core/cuda/core/system/_device.pyi, cuda_core/cuda/core/system/_device.pyx, cuda_core/docs/source/release/1.4.0-notes.rst
The property is marked deprecated in its documentation and emits a DeprecationWarning when accessed. The release notes identify application-clock methods as alternatives.
Remove tests for unsupported hardware features cuda_bindings_13/tests/nvml/test_unit.py, cuda_core/tests/system/test_system_device.py
The NVML unit-device test and the auto-boost clock test are removed.
Assessment against linked issues
Objective
Addressed
Explanation
[#3577] Remove the two tests for unsupported hardware features and record a decision on is_auto_boosted_clocks_enabled.
✅
Suggested reviewers:jpascucci-nv, juenglin
Change: Other
Merge Risk: Low · up to 747d8
The new deprecation warning for the auto-boost query recommends application-clock methods that do not exist on the device class. Fix the guidance in the warning, docstrings and release notes before merging. Nothing else in the change alters behavior.
Security architecture risk: Minimal · up to 747d8
The property remains available and uses the same read-only device query. Callers that treat deprecation warnings as errors can now fail before the query runs, but the change does not grant device access or modify clock settings.
Security review details
Trust Boundaries and Controls
inferred — The getter adds no caller-supplied arguments and still passes the existing Device handle to the same NVML read. The fixed warning does not select a different device, change the caller's authority, or invoke the clock-setting methods it names.
- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Reviewing files that changed from the base of the PR and between d7af1aa and 747d8f2.
Files selected for processing: 5
cuda_bindings_13/tests/nvml/test_unit.py
cuda_core/cuda/core/system/_device.pyi
cuda_core/cuda/core/system/_device.pyx
cuda_core/docs/source/release/1.4.0-notes.rst
cuda_core/tests/system/test_system_device.py
Files with no reviewable changes: 2
cuda_bindings_13/tests/nvml/test_unit.py
cuda_core/tests/system/test_system_device.py
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 5 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
important: Remove references to nonexistent application-clock methods
system.Device does not define set_application_clocks or reset_application_clocks. Following this guidance raises AttributeError. The same names appear in the deprecation warning, which users see at runtime, and in the property docstrings.
Update each site so it names only an existing API, or states that no replacement is available:
The reason will be displayed to describe this comment to others. Learn more.
I don't know what a fix to this looks like so I'm not going to post a PR: Sol 6.1 High raises two issues.
[P2] The migration guidance names nonexistent methods. The new warning recommends set_application_clocks and reset_application_clocks, but neither exists on system.Device. Following it raises AttributeError. Update the warning, docstrings, and release notes to identify an available API or state that there is no replacement.
[P2] The Kepler-only rationale overlooks Maxwell. The release note claims only Kepler implements Auto Boost. NVIDIA also documents it on Maxwell, which remains supported by CUDA 12 and R580. CI skips do not establish universal lack of support. Correct this claim and verify Maxwell before using it to justify deprecation.
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
cuda.bindingsEverything related to the cuda.bindings modulecuda.coreEverything related to the cuda.core moduletestImprovements or additions to tests
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3577. Part of #2077.
Summary
Two tests exercised NVML features that exist only on hardware no supported driver runs on, so they skipped in every configuration. They are removed rather than kept as permanent skips, and the cuda.core API behind one of them is deprecated:
test_unit_get_devices_returns_arraynvmlUnitGetDevicestest_auto_boosted_clocks_enablednvmlDeviceGetAutoBoostedClocksEnabledis_auto_boosted_clocks_enabled: deprecated, following thesystem.NvlinkInfo.max_linksprecedent (1.1.0). It raisesNotSupportedErroron every current GPU; the deprecation message points toset_application_clocks/reset_application_clocks, which control Auto Boost on Pascal and newer.cuda.bindings.nvmlunit bindings are unchanged; they mirrornvml.h.cuda_bindings_12/tests/nvml/has no unit test and nothing else uses theunit_handlesfixture, so no matching change is needed there.Evidence
CI coverage: on
main,test_unit_get_devices_returns_arrayskips in all 30 CUDA 13 configurations ("No NVML units present on this system"), andtest_auto_boosted_clocks_enabledskips in all 65 cuda.core configurations (not supported on L4, RTX 4090, H100, GH200, GB300, ...). After this change neither test exists.Locally (cuda.core built from this branch):
cuda_core/tests/system/passes (87 passed, 29 skipped, 5 xfailed),cuda_bindings_13/tests/nvmlpasses (58 passed, 40 skipped), and with-W errorthe property raises theDeprecationWarning.Confirming in CI: no job in this PR's CI run should report either test. For example:
Merge Danger
Door: two-way. The deprecation only adds a warning; the property behaves as before.
Blast Radius: callers of
system.Device.is_auto_boosted_clocks_enablednow see aDeprecationWarning(and, as before,NotSupportedErroron current GPUs).Reviewers: please feel free to push commits directly to this PR to improve it.
🤖 Generated with Claude Code