Skip to content

Commit d560fdb

Browse files
committed
Catch up with recent cybind changes
1 parent 75e6960 commit d560fdb

16 files changed

Lines changed: 609 additions & 532 deletions

File tree

cuda_bindings/cuda/bindings/_internal/nvjitlink.pxd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
44
#
5-
# This code was automatically generated across versions from 12.0.1 to 13.2.0, generator version 0.3.1.dev1422+gf4812259e.d20260318. Do not modify it directly.
5+
# This code was automatically generated across versions from 12.0.1 to 13.3.0, generator version 0.3.1.dev1752+g89e531539. Do not modify it directly.
66

77
from ..cynvjitlink cimport *
88

@@ -25,3 +25,5 @@ cdef nvJitLinkResult _nvJitLinkGetErrorLog(nvJitLinkHandle handle, char* log) ex
2525
cdef nvJitLinkResult _nvJitLinkGetInfoLogSize(nvJitLinkHandle handle, size_t* size) except?_NVJITLINKRESULT_INTERNAL_LOADING_ERROR nogil
2626
cdef nvJitLinkResult _nvJitLinkGetInfoLog(nvJitLinkHandle handle, char* log) except?_NVJITLINKRESULT_INTERNAL_LOADING_ERROR nogil
2727
cdef nvJitLinkResult _nvJitLinkVersion(unsigned int* major, unsigned int* minor) except?_NVJITLINKRESULT_INTERNAL_LOADING_ERROR nogil
28+
cdef nvJitLinkResult _nvJitLinkGetLinkedLTOIRSize(nvJitLinkHandle handle, size_t* size) except?_NVJITLINKRESULT_INTERNAL_LOADING_ERROR nogil
29+
cdef nvJitLinkResult _nvJitLinkGetLinkedLTOIR(nvJitLinkHandle handle, void* ltoir) except?_NVJITLINKRESULT_INTERNAL_LOADING_ERROR nogil

cuda_bindings/cuda/bindings/cudla.pyx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2024-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33

4-
# This code was automatically generated across versions from 1.5.0 to 13.3.0, generator version 0.3.1.dev1719+g565f73f4e. Do not modify it directly.
4+
# This code was automatically generated across versions from 1.5.0 to 13.3.0, generator version 0.3.1.dev1752+g89e531539. Do not modify it directly.
55

66
cimport cython # NOQA
77
from libc.stdint cimport intptr_t, uintptr_t
@@ -67,7 +67,7 @@ cdef __getbuffer(object self, cpython.Py_buffer *buffer, void *ptr, int size, bi
6767
###############################################################################
6868

6969
cdef _get_external_memory_handle_desc_dtype_offsets():
70-
cdef cudlaExternalMemoryHandleDesc_t pod = cudlaExternalMemoryHandleDesc_t()
70+
cdef cudlaExternalMemoryHandleDesc_t pod
7171
return _numpy.dtype({
7272
'names': ['ext_buf_object', 'size_'],
7373
'formats': [_numpy.intp, _numpy.uint64],
@@ -210,7 +210,7 @@ cdef class ExternalMemoryHandleDesc:
210210

211211

212212
cdef _get_external_semaphore_handle_desc_dtype_offsets():
213-
cdef cudlaExternalSemaphoreHandleDesc_t pod = cudlaExternalSemaphoreHandleDesc_t()
213+
cdef cudlaExternalSemaphoreHandleDesc_t pod
214214
return _numpy.dtype({
215215
'names': ['ext_sync_object'],
216216
'formats': [_numpy.intp],
@@ -341,7 +341,7 @@ cdef class ExternalSemaphoreHandleDesc:
341341

342342

343343
cdef _get_module_tensor_descriptor_dtype_offsets():
344-
cdef cudlaModuleTensorDescriptor pod = cudlaModuleTensorDescriptor()
344+
cdef cudlaModuleTensorDescriptor pod
345345
return _numpy.dtype({
346346
'names': ['name', 'size_', 'n', 'c', 'h', 'w', 'data_format', 'data_type', 'data_category', 'pixel_format', 'pixel_mapping', 'stride'],
347347
'formats': [(_numpy.int8, 81), _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint8, _numpy.uint8, _numpy.uint8, _numpy.uint8, _numpy.uint8, (_numpy.uint32, 8)],
@@ -614,7 +614,7 @@ cdef class ModuleTensorDescriptor:
614614

615615

616616
cdef _get_fence_dtype_offsets():
617-
cdef CudlaFence pod = CudlaFence()
617+
cdef CudlaFence pod
618618
return _numpy.dtype({
619619
'names': ['fence', 'type'],
620620
'formats': [_numpy.intp, _numpy.int32],
@@ -1055,7 +1055,7 @@ cdef class ModuleAttribute:
10551055

10561056

10571057
cdef _get_wait_events_dtype_offsets():
1058-
cdef cudlaWaitEvents pod = cudlaWaitEvents()
1058+
cdef cudlaWaitEvents pod
10591059
return _numpy.dtype({
10601060
'names': ['pre_fences', 'num_events'],
10611061
'formats': [_numpy.intp, _numpy.uint32],
@@ -1195,7 +1195,7 @@ cdef class WaitEvents:
11951195

11961196

11971197
cdef _get_signal_events_dtype_offsets():
1198-
cdef cudlaSignalEvents pod = cudlaSignalEvents()
1198+
cdef cudlaSignalEvents pod
11991199
return _numpy.dtype({
12001200
'names': ['dev_ptrs', 'eof_fences', 'num_events'],
12011201
'formats': [_numpy.intp, _numpy.intp, _numpy.uint32],
@@ -1361,7 +1361,7 @@ cdef class SignalEvents:
13611361

13621362

13631363
cdef _get_task_dtype_offsets():
1364-
cdef cudlaTask pod = cudlaTask()
1364+
cdef cudlaTask pod
13651365
return _numpy.dtype({
13661366
'names': ['module_handle', 'output_tensor', 'num_output_tensors', 'num_input_tensors', 'input_tensor', 'wait_events', 'signal_events'],
13671367
'formats': [_numpy.intp, _numpy.intp, _numpy.uint32, _numpy.uint32, _numpy.intp, _numpy.intp, _numpy.intp],

cuda_bindings/cuda/bindings/cufile.pyx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
44
#
5-
# This code was automatically generated across versions from 12.9.1 to 13.2.0, generator version 0.3.1.dev1568+g289771de9.d20260413. Do not modify it directly.
5+
# This code was automatically generated across versions from 12.9.1 to 13.3.0, generator version 0.3.1.dev1752+g89e531539. Do not modify it directly.
66

77
cimport cython # NOQA
88
from libc cimport errno
@@ -205,7 +205,7 @@ cdef class _py_anon_pod1:
205205

206206

207207
cdef _get__py_anon_pod3_dtype_offsets():
208-
cdef cuda_bindings_cufile__anon_pod3 pod = cuda_bindings_cufile__anon_pod3()
208+
cdef cuda_bindings_cufile__anon_pod3 pod
209209
return _numpy.dtype({
210210
'names': ['dev_ptr_base', 'file_offset', 'dev_ptr_offset', 'size_'],
211211
'formats': [_numpy.intp, _numpy.int64, _numpy.int64, _numpy.uint64],
@@ -372,7 +372,7 @@ cdef class _py_anon_pod3:
372372

373373

374374
cdef _get_io_events_dtype_offsets():
375-
cdef CUfileIOEvents_t pod = CUfileIOEvents_t()
375+
cdef CUfileIOEvents_t pod
376376
return _numpy.dtype({
377377
'names': ['cookie', 'status', 'ret'],
378378
'formats': [_numpy.intp, _numpy.int32, _numpy.uint64],
@@ -537,7 +537,7 @@ cdef class IOEvents:
537537

538538

539539
cdef _get_op_counter_dtype_offsets():
540-
cdef CUfileOpCounter_t pod = CUfileOpCounter_t()
540+
cdef CUfileOpCounter_t pod
541541
return _numpy.dtype({
542542
'names': ['ok', 'err'],
543543
'formats': [_numpy.uint64, _numpy.uint64],
@@ -680,7 +680,7 @@ cdef class OpCounter:
680680

681681

682682
cdef _get_per_gpu_stats_dtype_offsets():
683-
cdef CUfilePerGpuStats_t pod = CUfilePerGpuStats_t()
683+
cdef CUfilePerGpuStats_t pod
684684
return _numpy.dtype({
685685
'names': ['uuid', 'read_bytes', 'read_bw_bytes_per_sec', 'read_utilization', 'read_duration_us', 'n_total_reads', 'n_p2p_reads', 'n_nvfs_reads', 'n_posix_reads', 'n_unaligned_reads', 'n_dr_reads', 'n_sparse_regions', 'n_inline_regions', 'n_reads_err', 'writes_bytes', 'write_bw_bytes_per_sec', 'write_utilization', 'write_duration_us', 'n_total_writes', 'n_p2p_writes', 'n_nvfs_writes', 'n_posix_writes', 'n_unaligned_writes', 'n_dr_writes', 'n_writes_err', 'n_mmap', 'n_mmap_ok', 'n_mmap_err', 'n_mmap_free', 'reg_bytes'],
686686
'formats': [(_numpy.int8, 16), _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64],
@@ -1167,7 +1167,7 @@ cdef class PerGpuStats:
11671167

11681168

11691169
cdef _get_descr_dtype_offsets():
1170-
cdef CUfileDescr_t pod = CUfileDescr_t()
1170+
cdef CUfileDescr_t pod
11711171
return _numpy.dtype({
11721172
'names': ['type', 'handle', 'fs_ops'],
11731173
'formats': [_numpy.int32, _py_anon_pod1_dtype, _numpy.intp],
@@ -1456,7 +1456,7 @@ cdef class _py_anon_pod2:
14561456

14571457

14581458
cdef _get_stats_level1_dtype_offsets():
1459-
cdef CUfileStatsLevel1_t pod = CUfileStatsLevel1_t()
1459+
cdef CUfileStatsLevel1_t pod
14601460
return _numpy.dtype({
14611461
'names': ['read_ops', 'write_ops', 'hdl_register_ops', 'hdl_deregister_ops', 'buf_register_ops', 'buf_deregister_ops', 'read_bytes', 'write_bytes', 'read_bw_bytes_per_sec', 'write_bw_bytes_per_sec', 'read_lat_avg_us', 'write_lat_avg_us', 'read_ops_per_sec', 'write_ops_per_sec', 'read_lat_sum_us', 'write_lat_sum_us', 'batch_submit_ops', 'batch_complete_ops', 'batch_setup_ops', 'batch_cancel_ops', 'batch_destroy_ops', 'batch_enqueued_ops', 'batch_posix_enqueued_ops', 'batch_processed_ops', 'batch_posix_processed_ops', 'batch_nvfs_submit_ops', 'batch_p2p_submit_ops', 'batch_aio_submit_ops', 'batch_iouring_submit_ops', 'batch_mixed_io_submit_ops', 'batch_total_submit_ops', 'batch_read_bytes', 'batch_write_bytes', 'batch_read_bw_bytes', 'batch_write_bw_bytes', 'batch_submit_lat_avg_us', 'batch_completion_lat_avg_us', 'batch_submit_ops_per_sec', 'batch_complete_ops_per_sec', 'batch_submit_lat_sum_us', 'batch_completion_lat_sum_us', 'last_batch_read_bytes', 'last_batch_write_bytes'],
14621462
'formats': [op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, op_counter_dtype, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64, _numpy.uint64],
@@ -2112,7 +2112,7 @@ cdef class StatsLevel1:
21122112

21132113

21142114
cdef _get_io_params_dtype_offsets():
2115-
cdef CUfileIOParams_t pod = CUfileIOParams_t()
2115+
cdef CUfileIOParams_t pod
21162116
return _numpy.dtype({
21172117
'names': ['mode', 'u', 'fh', 'opcode', 'cookie'],
21182118
'formats': [_numpy.int32, _py_anon_pod2_dtype, _numpy.intp, _numpy.int32, _numpy.intp],
@@ -2299,7 +2299,7 @@ cdef class IOParams:
22992299

23002300

23012301
cdef _get_stats_level2_dtype_offsets():
2302-
cdef CUfileStatsLevel2_t pod = CUfileStatsLevel2_t()
2302+
cdef CUfileStatsLevel2_t pod
23032303
return _numpy.dtype({
23042304
'names': ['basic', 'read_size_kb_hist', 'write_size_kb_hist'],
23052305
'formats': [stats_level1_dtype, (_numpy.uint64, 32), (_numpy.uint64, 32)],
@@ -2467,7 +2467,7 @@ cdef class StatsLevel2:
24672467

24682468

24692469
cdef _get_stats_level3_dtype_offsets():
2470-
cdef CUfileStatsLevel3_t pod = CUfileStatsLevel3_t()
2470+
cdef CUfileStatsLevel3_t pod
24712471
return _numpy.dtype({
24722472
'names': ['detailed', 'num_gpus', 'per_gpu_stats'],
24732473
'formats': [stats_level2_dtype, _numpy.uint32, (per_gpu_stats_dtype, 16)],
@@ -3198,7 +3198,7 @@ cpdef get_stats_l1(intptr_t stats):
31983198
"""Get Level 1 cuFile statistics.
31993199
32003200
Args:
3201-
stats (intptr_t): Pointer to CUfileStatsLevel1_t structure to be filled.
3201+
stats (intptr_t): Pointer to ``CUfileStatsLevel1_t`` structure to be filled.
32023202
32033203
.. seealso:: `cuFileGetStatsL1`
32043204
"""
@@ -3211,7 +3211,7 @@ cpdef get_stats_l2(intptr_t stats):
32113211
"""Get Level 2 cuFile statistics.
32123212
32133213
Args:
3214-
stats (intptr_t): Pointer to CUfileStatsLevel2_t structure to be filled.
3214+
stats (intptr_t): Pointer to ``CUfileStatsLevel2_t`` structure to be filled.
32153215
32163216
.. seealso:: `cuFileGetStatsL2`
32173217
"""
@@ -3224,7 +3224,7 @@ cpdef get_stats_l3(intptr_t stats):
32243224
"""Get Level 3 cuFile statistics.
32253225
32263226
Args:
3227-
stats (intptr_t): Pointer to CUfileStatsLevel3_t structure to be filled.
3227+
stats (intptr_t): Pointer to ``CUfileStatsLevel3_t`` structure to be filled.
32283228
32293229
.. seealso:: `cuFileGetStatsL3`
32303230
"""

0 commit comments

Comments
 (0)