Skip to content

Commit a536e0b

Browse files
committed
Fix up some docstrings that don't parse as rst
1 parent 202dc42 commit a536e0b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cuda_bindings/cuda/bindings/nvml.pyx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27471,3 +27471,9 @@ cpdef str vgpu_type_get_name(unsigned int vgpu_type_id):
2747127471
__status__ = nvmlVgpuTypeGetName(<nvmlVgpuTypeId_t>vgpu_type_id, vgpu_type_name, <unsigned int*>size)
2747227472
check_status(__status__)
2747327473
return cpython.PyUnicode_FromStringAndSize(vgpu_type_name, size[0])
27474+
27475+
27476+
# Cleanup some docstrings that don't parse as rst.
27477+
device_get_virtualization_mode.__doc__ = device_get_virtualization_mode.__doc__.replace("NVML_GPU_VIRTUALIZATION_?", "``NVML_GPU_VIRTUALIZATION_?``")
27478+
device_set_virtualization_mode.__doc__ = device_set_virtualization_mode.__doc__.replace("NVML_GPU_VIRTUALIZATION_?", "``NVML_GPU_VIRTUALIZATION_?``")
27479+
GpmMetricId.GPM_METRIC_DRAM_BW_UTIL.__doc__ = "Percentage of DRAM bw used vs theoretical maximum. ``0.0 - 100.0 *\u200d/``."

0 commit comments

Comments
 (0)