Skip to content

docs(cuda_bindings_12): add missing NVML API reference to CUDA 12 documentation - #3545

Closed
utkarshpatwa393-sys wants to merge 1 commit into
NVIDIA:mainfrom
utkarshpatwa393-sys:docs/cuda-12-nvml-api-reference
Closed

utkarshpatwa393-sys wants to merge 1 commit into
NVIDIA:mainfrom
utkarshpatwa393-sys:docs/cuda-12-nvml-api-reference

Conversation

@utkarshpatwa393-sys

Copy link
Copy Markdown

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 the module/nvml documentation entry point.

This PR restores the NVML API reference to the CUDA 12 documentation:

  1. Added cuda_bindings_12/docs/source/module/nvml.rst matching the cuda.bindings.nvml API surface.
  2. 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.

Closes #3517

…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.

Closes NVIDIA#3517

Signed-off-by: Utkarsh Patwa <utkarshpatwa393@gmail.com>
@copy-pr-bot

copy-pr-bot Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions github-actions Bot added the cuda.bindings Everything related to the cuda.bindings module label Nov 24, 2026
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Explain Change →

Summary

Summary by CodeRabbit

  • Documentation
    • Added an API reference page for the NVML module, covering its functions, enums, types, and exceptions.
    • Included the NVML reference in the API documentation index.

The CUDA 12 API reference now links to an NVML module page. The page adds autosummary indexes for NVML functions, enums, types, and exceptions.

Changes: CUDA 12 NVML API documentation

Layer / File(s) Summary
NVML reference page and navigation
cuda_bindings_12/docs/source/api.rst, cuda_bindings_12/docs/source/module/nvml.rst
The API toctree includes module/nvml. The new page provides autosummary indexes for NVML functions, enums, types, and exceptions.

Linked issue assessment

Objective Addressed Explanation
Add a CUDA 12 NVML API reference, including navigation and generated detail pages for the package’s supported NVML surface [#3517] ✅

Possibly related issues

Suggested labels: documentation, cuda.bindings

Suggested reviewers: rwgk

Change: Other · Severity of issue fixed: Low

Merge Risk: Low · up to 4ee41

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

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 2

Review info

Run configuration

Commits

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.

device_get_gpu_max_pcie_link_generation
device_get_gpu_operation_mode
device_get_gpu_uptime_v1
device_get_grid_licensable_features_v4

Copy link
Copy Markdown

Choose a reason for hiding this comment

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)

InsufficientSizeError
InsufficientPowerError
DriverNotLoadedError
TimeoutError

Copy link
Copy Markdown

Choose a reason for hiding this comment

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)

Also applies to: 685-685

@mdboom

mdboom commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Closing as duplicate of #3527. Make sure you check for previous PRs solving a specific issue before creating a PR.

@mdboom mdboom closed this Nov 25, 2026
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOC]: Add missing CUDA 12 NVML API reference

2 participants