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
docs(cuda_bindings_12): add missing NVML API reference to CUDA 12 documentation - #3545
The CUDA 12.9.11 documentation release notes describe NVML additions and changes (such as device_get_gpu_uptime_v1, NvlinkFirmwareInfo.firmware_version, and exception compatibility aliases), but the CUDA 12 API reference omitted the module/nvml documentation entry point.
This PR restores the NVML API reference to the CUDA 12 documentation:
Added cuda_bindings_12/docs/source/module/nvml.rst matching the cuda.bindings.nvml API surface.
Added module/nvml to the toctree in cuda_bindings_12/docs/source/api.rst between module/cufile and module/utils.
Users will now be able to navigate to, search for, and cross-reference NVML classes, functions, enums, and types in the CUDA 12 documentation.
…umentation
The CUDA 12.9.11 documentation notes advertise NVML additions and changes,
but the CUDA 12 API reference omitted the NVML module.
Add module/nvml.rst to cuda_bindings_12/docs/source/module/ and reference it in
cuda_bindings_12/docs/source/api.rst, restoring navigation, search, and
generated detail pages for cuda.bindings.nvml in the CUDA 12 documentation.
ClosesNVIDIA#3517
Signed-off-by: Utkarsh Patwa <utkarshpatwa393@gmail.com>
This adds the CUDA 12 NVML reference page. A few public APIs, including one graphics-process function and the renamed timeout and memory exceptions, are missing from the generated reference. Add them before merging; no runtime behavior is affected.
Architecture risk: Low · up to 4ee41
The change affects 1 system.
Changed systems:cuda_bindings_12
Architecture concerns
No architecture-level concerns identified.
Review details
Systems and components
observed — cuda_bindings_12 (service) was modified; 2 changed files map to changed impact.
Before / after behavior
observed — Modified behavior in cuda_bindings_12/docs/source/api.rst: Adds module/nvml to the API reference toctree.
observed — Modified behavior in cuda_bindings_12/docs/source/module/nvml.rst: Adds the NVML module description and an autosummary index of its functions.
observed — Modified behavior in cuda_bindings_12/docs/source/module/nvml.rst: Adds an autosummary index of NVML enums.
observed — Modified behavior in cuda_bindings_12/docs/source/module/nvml.rst: Adds an autosummary index of NVML types.
Finishing Touches
Fix failing CI checks
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Reviewing files that changed from the base of the PR and between e195f81 and 4ee41be.
Files selected for processing: 2
cuda_bindings_12/docs/source/api.rst
cuda_bindings_12/docs/source/module/nvml.rst
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
important: Add the graphics-process function.
The CUDA 12 bindings export device_get_graphics_running_processes_v3, but this list omits it. Its reference page and inventory entry are therefore missing. Add it to the functions autosummary. (raw.githubusercontent.com)
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
important: Index the renamed exception classes.
The bindings raise NvmlTimeoutError and NvmlMemoryError. These entries name only their compatibility aliases, so the renamed classes lack their own reference and inventory entries. Add the renamed names to the exceptions autosummary. (raw.githubusercontent.com)
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 module
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.
Resolves #3517.
Description
The CUDA 12.9.11 documentation release notes describe NVML additions and changes (such as
device_get_gpu_uptime_v1,NvlinkFirmwareInfo.firmware_version, and exception compatibility aliases), but the CUDA 12 API reference omitted themodule/nvmldocumentation entry point.This PR restores the NVML API reference to the CUDA 12 documentation:
cuda_bindings_12/docs/source/module/nvml.rstmatching thecuda.bindings.nvmlAPI surface.module/nvmlto thetoctreeincuda_bindings_12/docs/source/api.rstbetweenmodule/cufileandmodule/utils.Users will now be able to navigate to, search for, and cross-reference NVML classes, functions, enums, and types in the CUDA 12 documentation.
Closes #3517