@@ -116,6 +116,10 @@ cdef extern from "cuda.h":
116
116
pass
117
117
ctypedef CUasyncCallbackEntry_st* CUasyncCallbackHandle
118
118
119
+ cdef struct CUgreenCtx_st:
120
+ pass
121
+ ctypedef CUgreenCtx_st* CUgreenCtx
122
+
119
123
cdef struct CUuuid_st:
120
124
char bytes[16]
121
125
@@ -359,7 +363,20 @@ cdef extern from "cuda.h":
359
363
CU_AD_FORMAT_BC6H_SF16 = 156
360
364
CU_AD_FORMAT_BC7_UNORM = 157
361
365
CU_AD_FORMAT_BC7_UNORM_SRGB = 158
366
+ CU_AD_FORMAT_P010 = 159
367
+ CU_AD_FORMAT_P016 = 161
368
+ CU_AD_FORMAT_NV16 = 162
369
+ CU_AD_FORMAT_P210 = 163
370
+ CU_AD_FORMAT_P216 = 164
371
+ CU_AD_FORMAT_YUY2 = 165
372
+ CU_AD_FORMAT_Y210 = 166
373
+ CU_AD_FORMAT_Y216 = 167
374
+ CU_AD_FORMAT_AYUV = 168
375
+ CU_AD_FORMAT_Y410 = 169
362
376
CU_AD_FORMAT_NV12 = 176
377
+ CU_AD_FORMAT_Y416 = 177
378
+ CU_AD_FORMAT_Y444_PLANAR8 = 178
379
+ CU_AD_FORMAT_Y444_PLANAR10 = 179
363
380
CU_AD_FORMAT_UNORM_INT8X1 = 192
364
381
CU_AD_FORMAT_UNORM_INT8X2 = 193
365
382
CU_AD_FORMAT_UNORM_INT8X4 = 194
@@ -372,6 +389,7 @@ cdef extern from "cuda.h":
372
389
CU_AD_FORMAT_SNORM_INT16X1 = 201
373
390
CU_AD_FORMAT_SNORM_INT16X2 = 202
374
391
CU_AD_FORMAT_SNORM_INT16X4 = 203
392
+ CU_AD_FORMAT_MAX = 2147483647
375
393
376
394
ctypedef CUarray_format_enum CUarray_format
377
395
@@ -530,7 +548,8 @@ cdef extern from "cuda.h":
530
548
CU_DEVICE_ATTRIBUTE_MULTICAST_SUPPORTED = 132
531
549
CU_DEVICE_ATTRIBUTE_MPS_ENABLED = 133
532
550
CU_DEVICE_ATTRIBUTE_HOST_NUMA_ID = 134
533
- CU_DEVICE_ATTRIBUTE_MAX = 135
551
+ CU_DEVICE_ATTRIBUTE_D3D12_CIG_SUPPORTED = 135
552
+ CU_DEVICE_ATTRIBUTE_MAX = 136
534
553
535
554
ctypedef CUdevice_attribute_enum CUdevice_attribute
536
555
@@ -778,7 +797,10 @@ cdef extern from "cuda.h":
778
797
CU_LIMIT_DEV_RUNTIME_PENDING_LAUNCH_COUNT = 4
779
798
CU_LIMIT_MAX_L2_FETCH_GRANULARITY = 5
780
799
CU_LIMIT_PERSISTING_L2_CACHE_SIZE = 6
781
- CU_LIMIT_MAX = 7
800
+ CU_LIMIT_SHMEM_SIZE = 7
801
+ CU_LIMIT_CIG_ENABLED = 8
802
+ CU_LIMIT_CIG_SHMEM_FALLBACK_ENABLED = 9
803
+ CU_LIMIT_MAX = 10
782
804
783
805
ctypedef CUlimit_enum CUlimit
784
806
@@ -998,6 +1020,7 @@ cdef extern from "cuda.h":
998
1020
CU_LAUNCH_ATTRIBUTE_MEM_SYNC_DOMAIN = 10
999
1021
CU_LAUNCH_ATTRIBUTE_LAUNCH_COMPLETION_EVENT = 12
1000
1022
CU_LAUNCH_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE = 13
1023
+ CU_LAUNCH_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT = 14
1001
1024
1002
1025
ctypedef CUlaunchAttributeID_enum CUlaunchAttributeID
1003
1026
@@ -1033,6 +1056,7 @@ cdef extern from "cuda.h":
1033
1056
CUlaunchMemSyncDomainMap memSyncDomainMap
1034
1057
CUlaunchMemSyncDomain memSyncDomain
1035
1058
anon_struct4 deviceUpdatableKernelNode
1059
+ unsigned int sharedMemCarveout
1036
1060
1037
1061
ctypedef CUlaunchAttributeValue_union CUlaunchAttributeValue
1038
1062
@@ -1120,6 +1144,24 @@ cdef extern from "cuda.h":
1120
1144
1121
1145
ctypedef CUexecAffinityParam_v1 CUexecAffinityParam
1122
1146
1147
+ cdef enum CUcigDataType_enum:
1148
+ CIG_DATA_TYPE_D3D12_COMMAND_QUEUE = 1
1149
+
1150
+ ctypedef CUcigDataType_enum CUcigDataType
1151
+
1152
+ cdef struct CUctxCigParam_st:
1153
+ CUcigDataType sharedDataType
1154
+ void* sharedData
1155
+
1156
+ ctypedef CUctxCigParam_st CUctxCigParam
1157
+
1158
+ cdef struct CUctxCreateParams_st:
1159
+ CUexecAffinityParam* execAffinityParams
1160
+ int numExecAffinityParams
1161
+ CUctxCigParam* cigParams
1162
+
1163
+ ctypedef CUctxCreateParams_st CUctxCreateParams
1164
+
1123
1165
cdef enum CUlibraryOption_enum:
1124
1166
CU_LIBRARY_HOST_UNIVERSAL_FUNCTION_AND_DATA_TABLE = 0
1125
1167
CU_LIBRARY_BINARY_IS_PRESERVED = 1
@@ -2123,13 +2165,19 @@ cdef extern from "cuda.h":
2123
2165
CU_COREDUMP_ENABLE_USER_TRIGGER = 4
2124
2166
CU_COREDUMP_FILE = 5
2125
2167
CU_COREDUMP_PIPE = 6
2126
- CU_COREDUMP_MAX = 7
2168
+ CU_COREDUMP_GENERATION_FLAGS = 7
2169
+ CU_COREDUMP_MAX = 8
2127
2170
2128
2171
ctypedef CUcoredumpSettings_enum CUcoredumpSettings
2129
2172
2130
- cdef struct CUgreenCtx_st:
2131
- pass
2132
- ctypedef CUgreenCtx_st* CUgreenCtx
2173
+ cdef enum CUCoredumpGenerationFlags:
2174
+ CU_COREDUMP_DEFAULT_FLAGS = 0
2175
+ CU_COREDUMP_SKIP_NONRELOCATED_ELF_IMAGES = 1
2176
+ CU_COREDUMP_SKIP_GLOBAL_MEMORY = 2
2177
+ CU_COREDUMP_SKIP_SHARED_MEMORY = 4
2178
+ CU_COREDUMP_SKIP_LOCAL_MEMORY = 8
2179
+ CU_COREDUMP_LIGHTWEIGHT_FLAGS = 15
2180
+ CU_COREDUMP_SKIP_ABORT = 16
2133
2181
2134
2182
cdef struct CUdevResourceDesc_st:
2135
2183
pass
@@ -2138,6 +2186,10 @@ cdef extern from "cuda.h":
2138
2186
ctypedef enum CUgreenCtxCreate_flags:
2139
2187
CU_GREEN_CTX_DEFAULT_STREAM = 1
2140
2188
2189
+ ctypedef enum CUdevSmResourceSplit_flags:
2190
+ CU_DEV_SM_RESOURCE_SPLIT_IGNORE_SM_COSCHEDULING = 1
2191
+ CU_DEV_SM_RESOURCE_SPLIT_MAX_POTENTIAL_CLUSTER_SIZE = 2
2192
+
2141
2193
ctypedef enum CUdevResourceType:
2142
2194
CU_DEV_RESOURCE_TYPE_INVALID = 0
2143
2195
CU_DEV_RESOURCE_TYPE_SM = 1
@@ -2504,6 +2556,11 @@ cdef CUresult cuCtxCreate(CUcontext* pctx, unsigned int flags, CUdevice dev) exc
2504
2556
cdef CUresult cuCtxCreate_v3(CUcontext* pctx, CUexecAffinityParam* paramsArray, int numParams, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
2505
2557
{{endif}}
2506
2558
2559
+ {{if 'cuCtxCreate_v4' in found_functions}}
2560
+
2561
+ cdef CUresult cuCtxCreate_v4(CUcontext* pctx, CUctxCreateParams* ctxCreateParams, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil
2562
+ {{endif}}
2563
+
2507
2564
{{if 'cuCtxDestroy_v2' in found_functions}}
2508
2565
2509
2566
cdef CUresult cuCtxDestroy(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil
@@ -2594,6 +2651,16 @@ cdef CUresult cuCtxResetPersistingL2Cache() except ?CUDA_ERROR_NOT_FOUND nogil
2594
2651
cdef CUresult cuCtxGetExecAffinity(CUexecAffinityParam* pExecAffinity, CUexecAffinityType typename) except ?CUDA_ERROR_NOT_FOUND nogil
2595
2652
{{endif}}
2596
2653
2654
+ {{if 'cuCtxRecordEvent' in found_functions}}
2655
+
2656
+ cdef CUresult cuCtxRecordEvent(CUcontext hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil
2657
+ {{endif}}
2658
+
2659
+ {{if 'cuCtxWaitEvent' in found_functions}}
2660
+
2661
+ cdef CUresult cuCtxWaitEvent(CUcontext hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil
2662
+ {{endif}}
2663
+
2597
2664
{{if 'cuCtxAttach' in found_functions}}
2598
2665
2599
2666
cdef CUresult cuCtxAttach(CUcontext* pctx, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
@@ -2739,6 +2806,11 @@ cdef CUresult cuLibraryGetModule(CUmodule* pMod, CUlibrary library) except ?CUDA
2739
2806
cdef CUresult cuKernelGetFunction(CUfunction* pFunc, CUkernel kernel) except ?CUDA_ERROR_NOT_FOUND nogil
2740
2807
{{endif}}
2741
2808
2809
+ {{if 'cuKernelGetLibrary' in found_functions}}
2810
+
2811
+ cdef CUresult cuKernelGetLibrary(CUlibrary* pLib, CUkernel kernel) except ?CUDA_ERROR_NOT_FOUND nogil
2812
+ {{endif}}
2813
+
2742
2814
{{if 'cuLibraryGetGlobal' in found_functions}}
2743
2815
2744
2816
cdef CUresult cuLibraryGetGlobal(CUdeviceptr* dptr, size_t* numbytes, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil
@@ -3384,6 +3456,11 @@ cdef CUresult cuStreamGetId(CUstream hStream, unsigned long long* streamId) exce
3384
3456
cdef CUresult cuStreamGetCtx(CUstream hStream, CUcontext* pctx) except ?CUDA_ERROR_NOT_FOUND nogil
3385
3457
{{endif}}
3386
3458
3459
+ {{if 'cuStreamGetCtx_v2' in found_functions}}
3460
+
3461
+ cdef CUresult cuStreamGetCtx_v2(CUstream hStream, CUcontext* pCtx, CUgreenCtx* pGreenCtx) except ?CUDA_ERROR_NOT_FOUND nogil
3462
+ {{endif}}
3463
+
3387
3464
{{if 'cuStreamWaitEvent' in found_functions}}
3388
3465
3389
3466
cdef CUresult cuStreamWaitEvent(CUstream hStream, CUevent hEvent, unsigned int Flags) except ?CUDA_ERROR_NOT_FOUND nogil
@@ -4509,6 +4586,11 @@ cdef CUresult cuGreenCtxWaitEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_
4509
4586
cdef CUresult cuStreamGetGreenCtx(CUstream hStream, CUgreenCtx* phCtx) except ?CUDA_ERROR_NOT_FOUND nogil
4510
4587
{{endif}}
4511
4588
4589
+ {{if 'cuGreenCtxStreamCreate' in found_functions}}
4590
+
4591
+ cdef CUresult cuGreenCtxStreamCreate(CUstream* phStream, CUgreenCtx greenCtx, unsigned int flags, int priority) except ?CUDA_ERROR_NOT_FOUND nogil
4592
+ {{endif}}
4593
+
4512
4594
{{if 'cuProfilerStart' in found_functions}}
4513
4595
4514
4596
cdef CUresult cuProfilerStart() except ?CUDA_ERROR_NOT_FOUND nogil
@@ -4614,7 +4696,7 @@ cdef CUresult cuGraphicsVDPAURegisterVideoSurface(CUgraphicsResource* pCudaResou
4614
4696
cdef CUresult cuGraphicsVDPAURegisterOutputSurface(CUgraphicsResource* pCudaResource, VdpOutputSurface vdpSurface, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
4615
4697
{{endif}}
4616
4698
4617
- cdef enum: CUDA_VERSION = 12040
4699
+ cdef enum: CUDA_VERSION = 12050
4618
4700
4619
4701
cdef enum: CU_IPC_HANDLE_SIZE = 64
4620
4702
@@ -4648,6 +4730,8 @@ cdef enum: CU_KERNEL_NODE_ATTRIBUTE_MEM_SYNC_DOMAIN = 10
4648
4730
4649
4731
cdef enum: CU_KERNEL_NODE_ATTRIBUTE_DEVICE_UPDATABLE_KERNEL_NODE = 13
4650
4732
4733
+ cdef enum: CU_KERNEL_NODE_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT = 14
4734
+
4651
4735
cdef enum: CU_STREAM_ATTRIBUTE_ACCESS_POLICY_WINDOW = 1
4652
4736
4653
4737
cdef enum: CU_STREAM_ATTRIBUTE_SYNCHRONIZATION_POLICY = 3
@@ -4710,6 +4794,8 @@ cdef enum: CUDA_ARRAY3D_SPARSE = 64
4710
4794
4711
4795
cdef enum: CUDA_ARRAY3D_DEFERRED_MAPPING = 128
4712
4796
4797
+ cdef enum: CUDA_ARRAY3D_VIDEO_ENCODE_DECODE = 256
4798
+
4713
4799
cdef enum: CU_TRSA_OVERRIDE_FORMAT = 1
4714
4800
4715
4801
cdef enum: CU_TRSF_READ_AS_INTEGER = 1
0 commit comments