|
2 | 2 | # |
3 | 3 | # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE |
4 | 4 | # |
5 | | -# This code was automatically generated across versions from 12.9.1 to 13.1.1. Do not modify it directly. |
| 5 | +# This code was automatically generated across versions from 12.9.1 to 13.1.1, generator version 0.3.1.dev1283+gc7bc6fa75. Do not modify it directly. |
6 | 6 |
|
7 | 7 | cimport cython # NOQA |
8 | 8 |
|
@@ -23189,22 +23189,6 @@ cpdef str vgpu_type_get_class(unsigned int vgpu_type_id): |
23189 | 23189 | return cpython.PyUnicode_FromString(vgpu_type_class) |
23190 | 23190 |
|
23191 | 23191 |
|
23192 | | -cpdef str vgpu_type_get_name(unsigned int vgpu_type_id): |
23193 | | - """Retrieve the vGPU type name. |
23194 | | - |
23195 | | - Args: |
23196 | | - vgpu_type_id (unsigned int): Handle to vGPU type. |
23197 | | - |
23198 | | - .. seealso:: `nvmlVgpuTypeGetName` |
23199 | | - """ |
23200 | | - cdef unsigned int size = 64 |
23201 | | - cdef char[64] vgpu_type_name |
23202 | | - with nogil: |
23203 | | - __status__ = nvmlVgpuTypeGetName(<nvmlVgpuTypeId_t>vgpu_type_id, vgpu_type_name, <unsigned int*>size) |
23204 | | - check_status(__status__) |
23205 | | - return cpython.PyUnicode_FromString(vgpu_type_name) |
23206 | | - |
23207 | | - |
23208 | 23192 | cpdef unsigned int vgpu_type_get_gpu_instance_profile_id(unsigned int vgpu_type_id) except? 0: |
23209 | 23193 | """Retrieve the GPU Instance Profile ID for the given vGPU type ID. The API will return a valid GPU Instance Profile ID for the MIG capable vGPU types, else INVALID_GPU_INSTANCE_PROFILE_ID is returned. |
23210 | 23194 |
|
@@ -26228,3 +26212,19 @@ cpdef str device_get_current_clock_freqs(intptr_t device): |
26228 | 26212 | __status__ = nvmlDeviceGetCurrentClockFreqs(<Device>device, current_clock_freqs) |
26229 | 26213 | check_status(__status__) |
26230 | 26214 | return cpython.PyUnicode_FromString(current_clock_freqs[0].str) |
| 26215 | + |
| 26216 | + |
| 26217 | +cpdef str vgpu_type_get_name(unsigned int vgpu_type_id): |
| 26218 | + """Retrieve the vGPU type name. |
| 26219 | + |
| 26220 | + Args: |
| 26221 | + vgpu_type_id (unsigned int): Handle to vGPU type. |
| 26222 | + |
| 26223 | + .. seealso:: `nvmlVgpuTypeGetName` |
| 26224 | + """ |
| 26225 | + cdef unsigned int[1] size = [64] |
| 26226 | + cdef char[64] vgpu_type_name |
| 26227 | + with nogil: |
| 26228 | + __status__ = nvmlVgpuTypeGetName(<nvmlVgpuTypeId_t>vgpu_type_id, vgpu_type_name, <unsigned int*>size) |
| 26229 | + check_status(__status__) |
| 26230 | + return cpython.PyUnicode_FromString(vgpu_type_name) |
0 commit comments