Skip to content

Commit 67be918

Browse files
authored
cuda.bindings: Update generated code (#1927)
1 parent c85391a commit 67be918

File tree

8 files changed

+399
-333
lines changed

8 files changed

+399
-333
lines changed

cuda_bindings/cuda/bindings/cufile.pxd

Lines changed: 2 additions & 2 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.dev1422+gf4812259e.d20260318. Do not modify it directly.
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.
66

77
from libc.stdint cimport intptr_t
88

@@ -80,6 +80,6 @@ cpdef stats_reset()
8080
cpdef get_stats_l1(intptr_t stats)
8181
cpdef get_stats_l2(intptr_t stats)
8282
cpdef get_stats_l3(intptr_t stats)
83-
cpdef size_t get_bar_size_in_kb(int gpu_ind_ex) except? 0
83+
cpdef size_t get_bar_size_in_kb(int gpu_index) except? 0
8484
cpdef set_parameter_posix_pool_slab_array(intptr_t size_values, intptr_t count_values, int len)
8585
cpdef get_parameter_posix_pool_slab_array(intptr_t size_values, intptr_t count_values, int len)

cuda_bindings/cuda/bindings/cufile.pyx

Lines changed: 3 additions & 22 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.dev1422+gf4812259e.d20260318. Do not modify it directly.
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.
66

77
cimport cython # NOQA
88
from libc cimport errno
@@ -75,7 +75,6 @@ _py_anon_pod1_dtype = _numpy.dtype((
7575
}
7676
))
7777

78-
7978
cdef class _py_anon_pod1:
8079
"""Empty-initialize an instance of `cuda_bindings_cufile__anon_pod1`.
8180
@@ -389,21 +388,17 @@ io_events_dtype = _get_io_events_dtype_offsets()
389388

390389
cdef class IOEvents:
391390
"""Empty-initialize an array of `CUfileIOEvents_t`.
392-
393391
The resulting object is of length `size` and of dtype `io_events_dtype`.
394392
If default-constructed, the instance represents a single struct.
395393
396394
Args:
397395
size (int): number of structs, default=1.
398396
399-
400397
.. seealso:: `CUfileIOEvents_t`
401398
"""
402399
cdef:
403400
readonly object _data
404401

405-
406-
407402
def __init__(self, size=1):
408403
arr = _numpy.empty(size, dtype=io_events_dtype)
409404
self._data = arr.view(_numpy.recarray)
@@ -728,21 +723,17 @@ per_gpu_stats_dtype = _get_per_gpu_stats_dtype_offsets()
728723

729724
cdef class PerGpuStats:
730725
"""Empty-initialize an array of `CUfilePerGpuStats_t`.
731-
732726
The resulting object is of length `size` and of dtype `per_gpu_stats_dtype`.
733727
If default-constructed, the instance represents a single struct.
734728
735729
Args:
736730
size (int): number of structs, default=1.
737731
738-
739732
.. seealso:: `CUfilePerGpuStats_t`
740733
"""
741734
cdef:
742735
readonly object _data
743736

744-
745-
746737
def __init__(self, size=1):
747738
arr = _numpy.empty(size, dtype=per_gpu_stats_dtype)
748739
self._data = arr.view(_numpy.recarray)
@@ -1192,21 +1183,17 @@ descr_dtype = _get_descr_dtype_offsets()
11921183

11931184
cdef class Descr:
11941185
"""Empty-initialize an array of `CUfileDescr_t`.
1195-
11961186
The resulting object is of length `size` and of dtype `descr_dtype`.
11971187
If default-constructed, the instance represents a single struct.
11981188
11991189
Args:
12001190
size (int): number of structs, default=1.
12011191
1202-
12031192
.. seealso:: `CUfileDescr_t`
12041193
"""
12051194
cdef:
12061195
readonly object _data
12071196

1208-
1209-
12101197
def __init__(self, size=1):
12111198
arr = _numpy.empty(size, dtype=descr_dtype)
12121199
self._data = arr.view(_numpy.recarray)
@@ -1349,7 +1336,6 @@ _py_anon_pod2_dtype = _numpy.dtype((
13491336
}
13501337
))
13511338

1352-
13531339
cdef class _py_anon_pod2:
13541340
"""Empty-initialize an instance of `cuda_bindings_cufile__anon_pod2`.
13551341
@@ -2144,21 +2130,17 @@ io_params_dtype = _get_io_params_dtype_offsets()
21442130

21452131
cdef class IOParams:
21462132
"""Empty-initialize an array of `CUfileIOParams_t`.
2147-
21482133
The resulting object is of length `size` and of dtype `io_params_dtype`.
21492134
If default-constructed, the instance represents a single struct.
21502135
21512136
Args:
21522137
size (int): number of structs, default=1.
21532138
2154-
21552139
.. seealso:: `CUfileIOParams_t`
21562140
"""
21572141
cdef:
21582142
readonly object _data
21592143

2160-
2161-
21622144
def __init__(self, size=1):
21632145
arr = _numpy.empty(size, dtype=io_params_dtype)
21642146
self._data = arr.view(_numpy.recarray)
@@ -2643,7 +2625,6 @@ cdef class StatsLevel3:
26432625
return obj
26442626

26452627

2646-
26472628
###############################################################################
26482629
# Enum
26492630
###############################################################################
@@ -3252,10 +3233,10 @@ cpdef get_stats_l3(intptr_t stats):
32523233
check_status(__status__)
32533234

32543235

3255-
cpdef size_t get_bar_size_in_kb(int gpu_ind_ex) except? 0:
3236+
cpdef size_t get_bar_size_in_kb(int gpu_index) except? 0:
32563237
cdef size_t bar_size
32573238
with nogil:
3258-
__status__ = cuFileGetBARSizeInKB(gpu_ind_ex, &bar_size)
3239+
__status__ = cuFileGetBARSizeInKB(gpu_index, &bar_size)
32593240
check_status(__status__)
32603241
return bar_size
32613242

cuda_bindings/cuda/bindings/cycufile.pxd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,11 @@ cdef extern from '<cufile.h>':
197197
cdef extern from '<cufile.h>':
198198
ctypedef void* CUfileHandle_t 'CUfileHandle_t'
199199

200+
200201
cdef extern from '<cufile.h>':
201202
ctypedef void* CUfileBatchHandle_t 'CUfileBatchHandle_t'
202203

204+
203205
cdef extern from '<cufile.h>':
204206
ctypedef struct CUfileError_t 'CUfileError_t':
205207
CUfileOpError err
@@ -367,7 +369,6 @@ cdef extern from '<cufile.h>':
367369
CUfilePerGpuStats_t per_gpu_stats[16]
368370

369371

370-
371372
cdef extern from *:
372373
"""
373374
// This is the missing piece we need to supply to help Cython & C++ compilers.

cuda_bindings/cuda/bindings/cynvml.pxd

Lines changed: 68 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.9.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.9.1 to 13.2.0, generator version 0.3.1.dev1568+g289771de9.d20260413. Do not modify it directly.
66

77
from libc.stdint cimport int64_t
88

@@ -817,12 +817,19 @@ ctypedef struct nvmlPlatformInfo_v2_t 'nvmlPlatformInfo_v2_t':
817817
unsigned char moduleId
818818

819819
ctypedef unsigned int nvmlDeviceArchitecture_t 'nvmlDeviceArchitecture_t'
820+
820821
ctypedef unsigned int nvmlBusType_t 'nvmlBusType_t'
822+
821823
ctypedef unsigned int nvmlFanControlPolicy_t 'nvmlFanControlPolicy_t'
824+
822825
ctypedef unsigned int nvmlPowerSource_t 'nvmlPowerSource_t'
826+
823827
ctypedef unsigned char nvmlPowerScopeType_t 'nvmlPowerScopeType_t'
828+
824829
ctypedef unsigned int nvmlVgpuTypeId_t 'nvmlVgpuTypeId_t'
830+
825831
ctypedef unsigned int nvmlVgpuInstance_t 'nvmlVgpuInstance_t'
832+
826833
ctypedef struct nvmlVgpuHeterogeneousMode_v1_t 'nvmlVgpuHeterogeneousMode_v1_t':
827834
unsigned int version
828835
unsigned int mode
@@ -862,11 +869,13 @@ ctypedef struct nvmlConfComputeGetKeyRotationThresholdInfo_v1_t 'nvmlConfCompute
862869
unsigned long long attackerAdvantage
863870

864871
ctypedef unsigned char nvmlGpuFabricState_t 'nvmlGpuFabricState_t'
872+
865873
ctypedef struct nvmlSystemDriverBranchInfo_v1_t 'nvmlSystemDriverBranchInfo_v1_t':
866874
unsigned int version
867875
char branch[80]
868876

869877
ctypedef unsigned int nvmlAffinityScope_t 'nvmlAffinityScope_t'
878+
870879
ctypedef struct nvmlTemperature_v1_t 'nvmlTemperature_v1_t':
871880
unsigned int version
872881
nvmlTemperatureSensors_t sensorType
@@ -915,12 +924,19 @@ ctypedef struct nvmlPdi_v1_t 'nvmlPdi_v1_t':
915924
unsigned long long value
916925

917926
ctypedef void* nvmlDevice_t 'nvmlDevice_t'
927+
918928
ctypedef void* nvmlGpuInstance_t 'nvmlGpuInstance_t'
929+
919930
ctypedef void* nvmlUnit_t 'nvmlUnit_t'
931+
920932
ctypedef void* nvmlEventSet_t 'nvmlEventSet_t'
933+
921934
ctypedef void* nvmlSystemEventSet_t 'nvmlSystemEventSet_t'
935+
922936
ctypedef void* nvmlComputeInstance_t 'nvmlComputeInstance_t'
937+
923938
ctypedef void* nvmlGpmSample_t 'nvmlGpmSample_t'
939+
924940
ctypedef struct nvmlPciInfo_t 'nvmlPciInfo_t':
925941
char busIdLegacy[16]
926942
unsigned int domain
@@ -1383,15 +1399,25 @@ ctypedef struct nvmlVgpuSchedulerState_v2_t 'nvmlVgpuSchedulerState_v2_t':
13831399
unsigned int frequency
13841400

13851401
ctypedef nvmlPciInfoExt_v1_t nvmlPciInfoExt_t 'nvmlPciInfoExt_t'
1402+
13861403
ctypedef nvmlCoolerInfo_v1_t nvmlCoolerInfo_t 'nvmlCoolerInfo_t'
1404+
13871405
ctypedef nvmlDramEncryptionInfo_v1_t nvmlDramEncryptionInfo_t 'nvmlDramEncryptionInfo_t'
1406+
13881407
ctypedef nvmlMarginTemperature_v1_t nvmlMarginTemperature_t 'nvmlMarginTemperature_t'
1408+
13891409
ctypedef nvmlClockOffset_v1_t nvmlClockOffset_t 'nvmlClockOffset_t'
1410+
13901411
ctypedef nvmlFanSpeedInfo_v1_t nvmlFanSpeedInfo_t 'nvmlFanSpeedInfo_t'
1412+
13911413
ctypedef nvmlDevicePerfModes_v1_t nvmlDevicePerfModes_t 'nvmlDevicePerfModes_t'
1414+
13921415
ctypedef nvmlDeviceCurrentClockFreqs_v1_t nvmlDeviceCurrentClockFreqs_t 'nvmlDeviceCurrentClockFreqs_t'
1416+
13931417
ctypedef nvmlEccSramErrorStatus_v1_t nvmlEccSramErrorStatus_t 'nvmlEccSramErrorStatus_t'
1418+
13941419
ctypedef nvmlPlatformInfo_v2_t nvmlPlatformInfo_t 'nvmlPlatformInfo_t'
1420+
13951421
ctypedef struct nvmlPowerValue_v2_t 'nvmlPowerValue_v2_t':
13961422
unsigned int version
13971423
nvmlPowerScopeType_t powerScope
@@ -1466,13 +1492,21 @@ ctypedef struct nvmlFBCSessionInfo_t 'nvmlFBCSessionInfo_t':
14661492
unsigned int averageLatency
14671493

14681494
ctypedef nvmlVgpuHeterogeneousMode_v1_t nvmlVgpuHeterogeneousMode_t 'nvmlVgpuHeterogeneousMode_t'
1495+
14691496
ctypedef nvmlVgpuPlacementId_v1_t nvmlVgpuPlacementId_t 'nvmlVgpuPlacementId_t'
1497+
14701498
ctypedef nvmlVgpuPlacementList_v2_t nvmlVgpuPlacementList_t 'nvmlVgpuPlacementList_t'
1499+
14711500
ctypedef nvmlVgpuTypeBar1Info_v1_t nvmlVgpuTypeBar1Info_t 'nvmlVgpuTypeBar1Info_t'
1501+
14721502
ctypedef nvmlVgpuRuntimeState_v1_t nvmlVgpuRuntimeState_t 'nvmlVgpuRuntimeState_t'
1503+
14731504
ctypedef nvmlSystemConfComputeSettings_v1_t nvmlSystemConfComputeSettings_t 'nvmlSystemConfComputeSettings_t'
1505+
14741506
ctypedef nvmlConfComputeSetKeyRotationThresholdInfo_v1_t nvmlConfComputeSetKeyRotationThresholdInfo_t 'nvmlConfComputeSetKeyRotationThresholdInfo_t'
1507+
14751508
ctypedef nvmlConfComputeGetKeyRotationThresholdInfo_v1_t nvmlConfComputeGetKeyRotationThresholdInfo_t 'nvmlConfComputeGetKeyRotationThresholdInfo_t'
1509+
14761510
ctypedef struct nvmlGpuFabricInfo_t 'nvmlGpuFabricInfo_t':
14771511
unsigned char clusterUuid[16]
14781512
nvmlReturn_t status
@@ -1497,16 +1531,27 @@ ctypedef struct nvmlGpuFabricInfo_v3_t 'nvmlGpuFabricInfo_v3_t':
14971531
unsigned char healthSummary
14981532

14991533
ctypedef nvmlSystemDriverBranchInfo_v1_t nvmlSystemDriverBranchInfo_t 'nvmlSystemDriverBranchInfo_t'
1534+
15001535
ctypedef nvmlTemperature_v1_t nvmlTemperature_t 'nvmlTemperature_t'
1536+
15011537
ctypedef nvmlNvlinkSupportedBwModes_v1_t nvmlNvlinkSupportedBwModes_t 'nvmlNvlinkSupportedBwModes_t'
1538+
15021539
ctypedef nvmlNvlinkGetBwMode_v1_t nvmlNvlinkGetBwMode_t 'nvmlNvlinkGetBwMode_t'
1540+
15031541
ctypedef nvmlNvlinkSetBwMode_v1_t nvmlNvlinkSetBwMode_t 'nvmlNvlinkSetBwMode_t'
1542+
15041543
ctypedef nvmlDeviceCapabilities_v1_t nvmlDeviceCapabilities_t 'nvmlDeviceCapabilities_t'
1544+
15051545
ctypedef nvmlPowerSmoothingProfile_v1_t nvmlPowerSmoothingProfile_t 'nvmlPowerSmoothingProfile_t'
1546+
15061547
ctypedef nvmlPowerSmoothingState_v1_t nvmlPowerSmoothingState_t 'nvmlPowerSmoothingState_t'
1548+
15071549
ctypedef nvmlDeviceAddressingMode_v1_t nvmlDeviceAddressingMode_t 'nvmlDeviceAddressingMode_t'
1550+
15081551
ctypedef nvmlRepairStatus_v1_t nvmlRepairStatus_t 'nvmlRepairStatus_t'
1552+
15091553
ctypedef nvmlPdi_v1_t nvmlPdi_t 'nvmlPdi_t'
1554+
15101555
ctypedef struct nvmlEventData_t 'nvmlEventData_t':
15111556
nvmlDevice_t device
15121557
unsigned long long eventType
@@ -1706,20 +1751,29 @@ ctypedef struct nvmlVgpuSchedulerLogInfo_v2_t 'nvmlVgpuSchedulerLogInfo_v2_t':
17061751
nvmlVgpuSchedulerLogEntry_v2_t logEntries[200]
17071752

17081753
ctypedef nvmlVgpuTypeIdInfo_v1_t nvmlVgpuTypeIdInfo_t 'nvmlVgpuTypeIdInfo_t'
1754+
17091755
ctypedef nvmlVgpuTypeMaxInstance_v1_t nvmlVgpuTypeMaxInstance_t 'nvmlVgpuTypeMaxInstance_t'
1756+
17101757
ctypedef nvmlVgpuCreatablePlacementInfo_v1_t nvmlVgpuCreatablePlacementInfo_t 'nvmlVgpuCreatablePlacementInfo_t'
1758+
17111759
ctypedef struct nvmlVgpuProcessesUtilizationInfo_v1_t 'nvmlVgpuProcessesUtilizationInfo_v1_t':
17121760
unsigned int version
17131761
unsigned int vgpuProcessCount
17141762
unsigned long long lastSeenTimeStamp
17151763
nvmlVgpuProcessUtilizationInfo_v1_t* vgpuProcUtilArray
17161764

17171765
ctypedef nvmlActiveVgpuInstanceInfo_v1_t nvmlActiveVgpuInstanceInfo_t 'nvmlActiveVgpuInstanceInfo_t'
1766+
17181767
ctypedef nvmlGpuFabricInfo_v3_t nvmlGpuFabricInfoV_t 'nvmlGpuFabricInfoV_t'
1768+
17191769
ctypedef nvmlSystemEventSetCreateRequest_v1_t nvmlSystemEventSetCreateRequest_t 'nvmlSystemEventSetCreateRequest_t'
1770+
17201771
ctypedef nvmlSystemEventSetFreeRequest_v1_t nvmlSystemEventSetFreeRequest_t 'nvmlSystemEventSetFreeRequest_t'
1772+
17211773
ctypedef nvmlSystemRegisterEventRequest_v1_t nvmlSystemRegisterEventRequest_t 'nvmlSystemRegisterEventRequest_t'
1774+
17221775
ctypedef nvmlProcessDetailList_v1_t nvmlProcessDetailList_t 'nvmlProcessDetailList_t'
1776+
17231777
ctypedef struct nvmlVgpuInstancesUtilizationInfo_v1_t 'nvmlVgpuInstancesUtilizationInfo_v1_t':
17241778
unsigned int version
17251779
nvmlValueType_t sampleValType
@@ -1733,7 +1787,9 @@ ctypedef struct nvmlPRMCounter_v1_t 'nvmlPRMCounter_v1_t':
17331787
nvmlPRMCounterValue_v1_t counterValue
17341788

17351789
ctypedef nvmlUUID_v1_t nvmlUUID_t 'nvmlUUID_t'
1790+
17361791
ctypedef nvmlProcessesUtilizationInfo_v1_t nvmlProcessesUtilizationInfo_t 'nvmlProcessesUtilizationInfo_t'
1792+
17371793
ctypedef struct nvmlVgpuSchedulerLog_t 'nvmlVgpuSchedulerLog_t':
17381794
unsigned int engineId
17391795
unsigned int schedulerPolicy
@@ -1781,6 +1837,7 @@ ctypedef struct nvmlGridLicensableFeatures_t 'nvmlGridLicensableFeatures_t':
17811837
nvmlGridLicensableFeature_t gridLicensableFeatures[3]
17821838

17831839
ctypedef nvmlSystemEventSetWaitRequest_v1_t nvmlSystemEventSetWaitRequest_t 'nvmlSystemEventSetWaitRequest_t'
1840+
17841841
ctypedef struct nvmlGpmMetricsGet_t 'nvmlGpmMetricsGet_t':
17851842
unsigned int version
17861843
unsigned int numMetrics
@@ -1789,29 +1846,39 @@ ctypedef struct nvmlGpmMetricsGet_t 'nvmlGpmMetricsGet_t':
17891846
nvmlGpmMetric_t metrics[333]
17901847

17911848
ctypedef nvmlWorkloadPowerProfileInfo_v1_t nvmlWorkloadPowerProfileInfo_t 'nvmlWorkloadPowerProfileInfo_t'
1849+
17921850
ctypedef nvmlWorkloadPowerProfileCurrentProfiles_v1_t nvmlWorkloadPowerProfileCurrentProfiles_t 'nvmlWorkloadPowerProfileCurrentProfiles_t'
1851+
17931852
ctypedef nvmlWorkloadPowerProfileRequestedProfiles_v1_t nvmlWorkloadPowerProfileRequestedProfiles_t 'nvmlWorkloadPowerProfileRequestedProfiles_t'
1853+
17941854
ctypedef nvmlEccSramUniqueUncorrectedErrorCounts_v1_t nvmlEccSramUniqueUncorrectedErrorCounts_t 'nvmlEccSramUniqueUncorrectedErrorCounts_t'
1855+
17951856
ctypedef struct nvmlNvLinkInfo_v2_t 'nvmlNvLinkInfo_v2_t':
17961857
unsigned int version
17971858
unsigned int isNvleEnabled
17981859
nvmlNvlinkFirmwareInfo_t firmwareInfo
17991860

18001861
ctypedef nvmlVgpuProcessesUtilizationInfo_v1_t nvmlVgpuProcessesUtilizationInfo_t 'nvmlVgpuProcessesUtilizationInfo_t'
1862+
18011863
ctypedef nvmlVgpuInstancesUtilizationInfo_v1_t nvmlVgpuInstancesUtilizationInfo_t 'nvmlVgpuInstancesUtilizationInfo_t'
1864+
18021865
ctypedef struct nvmlPRMCounterList_v1_t 'nvmlPRMCounterList_v1_t':
18031866
unsigned int numCounters
18041867
nvmlPRMCounter_v1_t* counters
18051868

18061869
ctypedef nvmlVgpuSchedulerStateInfo_v1_t nvmlVgpuSchedulerStateInfo_t 'nvmlVgpuSchedulerStateInfo_t'
1870+
18071871
ctypedef nvmlVgpuSchedulerLogInfo_v1_t nvmlVgpuSchedulerLogInfo_t 'nvmlVgpuSchedulerLogInfo_t'
1872+
18081873
ctypedef nvmlVgpuSchedulerState_v1_t nvmlVgpuSchedulerState_t 'nvmlVgpuSchedulerState_t'
1874+
18091875
ctypedef struct nvmlWorkloadPowerProfileProfilesInfo_v1_t 'nvmlWorkloadPowerProfileProfilesInfo_v1_t':
18101876
unsigned int version
18111877
nvmlMask255_t perfProfilesMask
18121878
nvmlWorkloadPowerProfileInfo_t perfProfile[255]
18131879

18141880
ctypedef nvmlNvLinkInfo_v2_t nvmlNvLinkInfo_t 'nvmlNvLinkInfo_t'
1881+
18151882
ctypedef nvmlWorkloadPowerProfileProfilesInfo_v1_t nvmlWorkloadPowerProfileProfilesInfo_t 'nvmlWorkloadPowerProfileProfilesInfo_t'
18161883

18171884

0 commit comments

Comments
 (0)