Skip to content

Commit 9b905cb

Browse files
committed
cybind refresh after merging 304 (no manual changes)
1 parent ffaab34 commit 9b905cb

4 files changed

Lines changed: 22 additions & 23 deletions

File tree

cuda_bindings/cuda/bindings/_internal/_fast_enum.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33

44

5-
# This code was automatically generated across versions from 12.9.1 to 13.1.1,
6-
# generator version 0.3.1.dev1322+g646ce84ec. 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.dev1322+g646ce84ec. Do not modify it directly.
76

87

98
"""

cuda_bindings/cuda/bindings/cufile.pyx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3049,25 +3049,25 @@ cpdef void batch_io_destroy(intptr_t batch_idp) except*:
30493049

30503050
cpdef read_async(intptr_t fh, intptr_t buf_ptr_base, intptr_t size_p, intptr_t file_offset_p, intptr_t buf_ptr_offset_p, intptr_t bytes_read_p, intptr_t stream):
30513051
with nogil:
3052-
__status__ = cuFileReadAsync(<Handle>fh, <void*>buf_ptr_base, <size_t*>size_p, <off_t*>file_offset_p, <off_t*>buf_ptr_offset_p, <ssize_t*>bytes_read_p, <void*>stream)
3052+
__status__ = cuFileReadAsync(<Handle>fh, <void*>buf_ptr_base, <size_t*>size_p, <off_t*>file_offset_p, <off_t*>buf_ptr_offset_p, <ssize_t*>bytes_read_p, <CUstream>stream)
30533053
check_status(__status__)
30543054

30553055

30563056
cpdef write_async(intptr_t fh, intptr_t buf_ptr_base, intptr_t size_p, intptr_t file_offset_p, intptr_t buf_ptr_offset_p, intptr_t bytes_written_p, intptr_t stream):
30573057
with nogil:
3058-
__status__ = cuFileWriteAsync(<Handle>fh, <void*>buf_ptr_base, <size_t*>size_p, <off_t*>file_offset_p, <off_t*>buf_ptr_offset_p, <ssize_t*>bytes_written_p, <void*>stream)
3058+
__status__ = cuFileWriteAsync(<Handle>fh, <void*>buf_ptr_base, <size_t*>size_p, <off_t*>file_offset_p, <off_t*>buf_ptr_offset_p, <ssize_t*>bytes_written_p, <CUstream>stream)
30593059
check_status(__status__)
30603060

30613061

30623062
cpdef stream_register(intptr_t stream, unsigned flags):
30633063
with nogil:
3064-
__status__ = cuFileStreamRegister(<void*>stream, flags)
3064+
__status__ = cuFileStreamRegister(<CUstream>stream, flags)
30653065
check_status(__status__)
30663066

30673067

30683068
cpdef stream_deregister(intptr_t stream):
30693069
with nogil:
3070-
__status__ = cuFileStreamDeregister(<void*>stream)
3070+
__status__ = cuFileStreamDeregister(<CUstream>stream)
30713071
check_status(__status__)
30723072

30733073

cuda_bindings/cuda/bindings/nvml.pxd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,6 @@ cpdef object device_get_grid_licensable_features_v4(intptr_t device)
342342
cpdef unsigned int get_vgpu_driver_capabilities(int capability) except? 0
343343
cpdef unsigned int device_get_vgpu_capabilities(intptr_t device, int capability) except? 0
344344
cpdef str vgpu_type_get_class(unsigned int vgpu_type_id)
345-
cpdef str vgpu_type_get_name(unsigned int vgpu_type_id)
346345
cpdef unsigned int vgpu_type_get_gpu_instance_profile_id(unsigned int vgpu_type_id) except? 0
347346
cpdef tuple vgpu_type_get_device_id(unsigned int vgpu_type_id)
348347
cpdef unsigned long long vgpu_type_get_framebuffer_size(unsigned int vgpu_type_id) except? 0

cuda_bindings/cuda/bindings/nvml.pyx

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24382,22 +24382,6 @@ cpdef str vgpu_type_get_class(unsigned int vgpu_type_id):
2438224382
return cpython.PyUnicode_FromString(vgpu_type_class)
2438324383

2438424384

24385-
cpdef str vgpu_type_get_name(unsigned int vgpu_type_id):
24386-
"""Retrieve the vGPU type name.
24387-
24388-
Args:
24389-
vgpu_type_id (unsigned int): Handle to vGPU type.
24390-
24391-
.. seealso:: `nvmlVgpuTypeGetName`
24392-
"""
24393-
cdef unsigned int size = 64
24394-
cdef char[64] vgpu_type_name
24395-
with nogil:
24396-
__status__ = nvmlVgpuTypeGetName(<nvmlVgpuTypeId_t>vgpu_type_id, vgpu_type_name, <unsigned int*>size)
24397-
check_status(__status__)
24398-
return cpython.PyUnicode_FromString(vgpu_type_name)
24399-
24400-
2440124385
cpdef unsigned int vgpu_type_get_gpu_instance_profile_id(unsigned int vgpu_type_id) except? 0:
2440224386
"""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.
2440324387

@@ -27421,3 +27405,20 @@ cpdef str device_get_current_clock_freqs(intptr_t device):
2742127405
__status__ = nvmlDeviceGetCurrentClockFreqs(<Device>device, current_clock_freqs)
2742227406
check_status(__status__)
2742327407
return cpython.PyUnicode_FromString(current_clock_freqs[0].str)
27408+
27409+
27410+
cpdef str vgpu_type_get_name(unsigned int vgpu_type_id):
27411+
"""Retrieve the vGPU type name.
27412+
27413+
Args:
27414+
vgpu_type_id (unsigned int): Handle to vGPU type.
27415+
27416+
.. seealso:: `nvmlVgpuTypeGetName`
27417+
"""
27418+
cdef unsigned int[1] size = [64]
27419+
cdef char[64] vgpu_type_name
27420+
with nogil:
27421+
__status__ = nvmlVgpuTypeGetName(<nvmlVgpuTypeId_t>vgpu_type_id, vgpu_type_name, <unsigned int*>size)
27422+
check_status(__status__)
27423+
return cpython.PyUnicode_FromStringAndSize(vgpu_type_name, size[0])
27424+

0 commit comments

Comments
 (0)