Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cuda_bindings/cuda/bindings/nvml.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -27471,3 +27471,9 @@ cpdef str vgpu_type_get_name(unsigned int vgpu_type_id):
__status__ = nvmlVgpuTypeGetName(<nvmlVgpuTypeId_t>vgpu_type_id, vgpu_type_name, <unsigned int*>size)
check_status(__status__)
return cpython.PyUnicode_FromStringAndSize(vgpu_type_name, size[0])


# Cleanup some docstrings that don't parse as rst.
device_get_virtualization_mode.__doc__ = device_get_virtualization_mode.__doc__.replace("NVML_GPU_VIRTUALIZATION_?", "``NVML_GPU_VIRTUALIZATION_?``")
device_set_virtualization_mode.__doc__ = device_set_virtualization_mode.__doc__.replace("NVML_GPU_VIRTUALIZATION_?", "``NVML_GPU_VIRTUALIZATION_?``")
GpmMetricId.GPM_METRIC_DRAM_BW_UTIL.__doc__ = "Percentage of DRAM bw used vs theoretical maximum. ``0.0 - 100.0 *\u200d/``."
1 change: 1 addition & 0 deletions cuda_bindings/docs/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ CUDA Python API Reference
module/nvvm
module/nvfatbin
module/cufile
module/nvml
module/utils
2 changes: 1 addition & 1 deletion cuda_bindings/docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"sphinx.ext.napoleon",
"sphinx.ext.intersphinx",
"myst_nb",
"enum_tools.autoenum",
"sphinx_copybutton",
"release_toc",
"release_date",
"enum_documenter",
]

nb_execution_mode = "off"
Expand Down
Loading
Loading