1
- # Copyright 2021-2023 NVIDIA Corporation. All rights reserved.
1
+ # Copyright 2021-2024 NVIDIA Corporation. All rights reserved.
2
2
#
3
3
# Please refer to the NVIDIA end user license agreement (EULA) associated
4
4
# with this source code for terms and conditions that govern your use of
@@ -217,16 +217,6 @@ cdef CUresult _cuCtxGetCacheConfig(CUfunc_cache* pconfig) except ?CUDA_ERROR_NOT
217
217
cdef CUresult _cuCtxSetCacheConfig(CUfunc_cache config) except ?CUDA_ERROR_NOT_FOUND nogil
218
218
{{endif}}
219
219
220
- {{if 'cuCtxGetSharedMemConfig' in found_functions}}
221
-
222
- cdef CUresult _cuCtxGetSharedMemConfig(CUsharedconfig* pConfig) except ?CUDA_ERROR_NOT_FOUND nogil
223
- {{endif}}
224
-
225
- {{if 'cuCtxSetSharedMemConfig' in found_functions}}
226
-
227
- cdef CUresult _cuCtxSetSharedMemConfig(CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil
228
- {{endif}}
229
-
230
220
{{if 'cuCtxGetApiVersion' in found_functions}}
231
221
232
222
cdef CUresult _cuCtxGetApiVersion(CUcontext ctx, unsigned int* version) except ?CUDA_ERROR_NOT_FOUND nogil
@@ -257,6 +247,16 @@ cdef CUresult _cuCtxAttach(CUcontext* pctx, unsigned int flags) except ?CUDA_ERR
257
247
cdef CUresult _cuCtxDetach(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil
258
248
{{endif}}
259
249
250
+ {{if 'cuCtxGetSharedMemConfig' in found_functions}}
251
+
252
+ cdef CUresult _cuCtxGetSharedMemConfig(CUsharedconfig* pConfig) except ?CUDA_ERROR_NOT_FOUND nogil
253
+ {{endif}}
254
+
255
+ {{if 'cuCtxSetSharedMemConfig' in found_functions}}
256
+
257
+ cdef CUresult _cuCtxSetSharedMemConfig(CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil
258
+ {{endif}}
259
+
260
260
{{if 'cuModuleLoad' in found_functions}}
261
261
262
262
cdef CUresult _cuModuleLoad(CUmodule* module, const char* fname) except ?CUDA_ERROR_NOT_FOUND nogil
@@ -292,6 +292,16 @@ cdef CUresult _cuModuleGetLoadingMode(CUmoduleLoadingMode* mode) except ?CUDA_ER
292
292
cdef CUresult _cuModuleGetFunction(CUfunction* hfunc, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil
293
293
{{endif}}
294
294
295
+ {{if 'cuModuleGetFunctionCount' in found_functions}}
296
+
297
+ cdef CUresult _cuModuleGetFunctionCount(unsigned int* count, CUmodule mod) except ?CUDA_ERROR_NOT_FOUND nogil
298
+ {{endif}}
299
+
300
+ {{if 'cuModuleEnumerateFunctions' in found_functions}}
301
+
302
+ cdef CUresult _cuModuleEnumerateFunctions(CUfunction* functions, unsigned int numFunctions, CUmodule mod) except ?CUDA_ERROR_NOT_FOUND nogil
303
+ {{endif}}
304
+
295
305
{{if 'cuModuleGetGlobal_v2' in found_functions}}
296
306
297
307
cdef CUresult _cuModuleGetGlobal_v2(CUdeviceptr* dptr, size_t* numbytes, CUmodule hmod, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil
@@ -352,6 +362,16 @@ cdef CUresult _cuLibraryUnload(CUlibrary library) except ?CUDA_ERROR_NOT_FOUND n
352
362
cdef CUresult _cuLibraryGetKernel(CUkernel* pKernel, CUlibrary library, const char* name) except ?CUDA_ERROR_NOT_FOUND nogil
353
363
{{endif}}
354
364
365
+ {{if 'cuLibraryGetKernelCount' in found_functions}}
366
+
367
+ cdef CUresult _cuLibraryGetKernelCount(unsigned int* count, CUlibrary lib) except ?CUDA_ERROR_NOT_FOUND nogil
368
+ {{endif}}
369
+
370
+ {{if 'cuLibraryEnumerateKernels' in found_functions}}
371
+
372
+ cdef CUresult _cuLibraryEnumerateKernels(CUkernel* kernels, unsigned int numKernels, CUlibrary lib) except ?CUDA_ERROR_NOT_FOUND nogil
373
+ {{endif}}
374
+
355
375
{{if 'cuLibraryGetModule' in found_functions}}
356
376
357
377
cdef CUresult _cuLibraryGetModule(CUmodule* pMod, CUlibrary library) except ?CUDA_ERROR_NOT_FOUND nogil
@@ -397,6 +417,11 @@ cdef CUresult _cuKernelSetCacheConfig(CUkernel kernel, CUfunc_cache config, CUde
397
417
cdef CUresult _cuKernelGetName(const char** name, CUkernel hfunc) except ?CUDA_ERROR_NOT_FOUND nogil
398
418
{{endif}}
399
419
420
+ {{if 'cuKernelGetParamInfo' in found_functions}}
421
+
422
+ cdef CUresult _cuKernelGetParamInfo(CUkernel kernel, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?CUDA_ERROR_NOT_FOUND nogil
423
+ {{endif}}
424
+
400
425
{{if 'cuMemGetInfo_v2' in found_functions}}
401
426
402
427
cdef CUresult _cuMemGetInfo_v2(size_t* free, size_t* total) except ?CUDA_ERROR_NOT_FOUND nogil
@@ -452,6 +477,16 @@ cdef CUresult _cuMemHostGetFlags(unsigned int* pFlags, void* p) except ?CUDA_ERR
452
477
cdef CUresult _cuMemAllocManaged(CUdeviceptr* dptr, size_t bytesize, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
453
478
{{endif}}
454
479
480
+ {{if 'cuDeviceRegisterAsyncNotification' in found_functions}}
481
+
482
+ cdef CUresult _cuDeviceRegisterAsyncNotification(CUdevice device, CUasyncCallback callbackFunc, void* userData, CUasyncCallbackHandle* callback) except ?CUDA_ERROR_NOT_FOUND nogil
483
+ {{endif}}
484
+
485
+ {{if 'cuDeviceUnregisterAsyncNotification' in found_functions}}
486
+
487
+ cdef CUresult _cuDeviceUnregisterAsyncNotification(CUdevice device, CUasyncCallbackHandle callback) except ?CUDA_ERROR_NOT_FOUND nogil
488
+ {{endif}}
489
+
455
490
{{if 'cuDeviceGetByPCIBusId' in found_functions}}
456
491
457
492
cdef CUresult _cuDeviceGetByPCIBusId(CUdevice* dev, const char* pciBusId) except ?CUDA_ERROR_NOT_FOUND nogil
@@ -1197,11 +1232,6 @@ cdef CUresult _cuFuncSetAttribute(CUfunction hfunc, CUfunction_attribute attrib,
1197
1232
cdef CUresult _cuFuncSetCacheConfig(CUfunction hfunc, CUfunc_cache config) except ?CUDA_ERROR_NOT_FOUND nogil
1198
1233
{{endif}}
1199
1234
1200
- {{if 'cuFuncSetSharedMemConfig' in found_functions}}
1201
-
1202
- cdef CUresult _cuFuncSetSharedMemConfig(CUfunction hfunc, CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil
1203
- {{endif}}
1204
-
1205
1235
{{if 'cuFuncGetModule' in found_functions}}
1206
1236
1207
1237
cdef CUresult _cuFuncGetModule(CUmodule* hmod, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil
@@ -1212,6 +1242,21 @@ cdef CUresult _cuFuncGetModule(CUmodule* hmod, CUfunction hfunc) except ?CUDA_ER
1212
1242
cdef CUresult _cuFuncGetName(const char** name, CUfunction hfunc) except ?CUDA_ERROR_NOT_FOUND nogil
1213
1243
{{endif}}
1214
1244
1245
+ {{if 'cuFuncGetParamInfo' in found_functions}}
1246
+
1247
+ cdef CUresult _cuFuncGetParamInfo(CUfunction func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?CUDA_ERROR_NOT_FOUND nogil
1248
+ {{endif}}
1249
+
1250
+ {{if 'cuFuncIsLoaded' in found_functions}}
1251
+
1252
+ cdef CUresult _cuFuncIsLoaded(CUfunctionLoadingState* state, CUfunction function) except ?CUDA_ERROR_NOT_FOUND nogil
1253
+ {{endif}}
1254
+
1255
+ {{if 'cuFuncLoad' in found_functions}}
1256
+
1257
+ cdef CUresult _cuFuncLoad(CUfunction function) except ?CUDA_ERROR_NOT_FOUND nogil
1258
+ {{endif}}
1259
+
1215
1260
{{if 'cuLaunchKernel' in found_functions}}
1216
1261
1217
1262
cdef CUresult _cuLaunchKernel(CUfunction f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, CUstream hStream, void** kernelParams, void** extra) except ?CUDA_ERROR_NOT_FOUND nogil
@@ -1287,6 +1332,11 @@ cdef CUresult _cuLaunchGridAsync(CUfunction f, int grid_width, int grid_height,
1287
1332
cdef CUresult _cuParamSetTexRef(CUfunction hfunc, int texunit, CUtexref hTexRef) except ?CUDA_ERROR_NOT_FOUND nogil
1288
1333
{{endif}}
1289
1334
1335
+ {{if 'cuFuncSetSharedMemConfig' in found_functions}}
1336
+
1337
+ cdef CUresult _cuFuncSetSharedMemConfig(CUfunction hfunc, CUsharedconfig config) except ?CUDA_ERROR_NOT_FOUND nogil
1338
+ {{endif}}
1339
+
1290
1340
{{if 'cuGraphCreate' in found_functions}}
1291
1341
1292
1342
cdef CUresult _cuGraphCreate(CUgraph* phGraph, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
@@ -2047,6 +2097,61 @@ cdef CUresult _cuCoredumpSetAttributeGlobal(CUcoredumpSettings attrib, void* val
2047
2097
cdef CUresult _cuGetExportTable(const void** ppExportTable, const CUuuid* pExportTableId) except ?CUDA_ERROR_NOT_FOUND nogil
2048
2098
{{endif}}
2049
2099
2100
+ {{if 'cuGreenCtxCreate' in found_functions}}
2101
+
2102
+ cdef CUresult _cuGreenCtxCreate(CUgreenCtx* phCtx, CUdevResourceDesc desc, CUdevice dev, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil
2103
+ {{endif}}
2104
+
2105
+ {{if 'cuGreenCtxDestroy' in found_functions}}
2106
+
2107
+ cdef CUresult _cuGreenCtxDestroy(CUgreenCtx hCtx) except ?CUDA_ERROR_NOT_FOUND nogil
2108
+ {{endif}}
2109
+
2110
+ {{if 'cuCtxFromGreenCtx' in found_functions}}
2111
+
2112
+ cdef CUresult _cuCtxFromGreenCtx(CUcontext* pContext, CUgreenCtx hCtx) except ?CUDA_ERROR_NOT_FOUND nogil
2113
+ {{endif}}
2114
+
2115
+ {{if 'cuDeviceGetDevResource' in found_functions}}
2116
+
2117
+ cdef CUresult _cuDeviceGetDevResource(CUdevice device, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil
2118
+ {{endif}}
2119
+
2120
+ {{if 'cuCtxGetDevResource' in found_functions}}
2121
+
2122
+ cdef CUresult _cuCtxGetDevResource(CUcontext hCtx, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil
2123
+ {{endif}}
2124
+
2125
+ {{if 'cuGreenCtxGetDevResource' in found_functions}}
2126
+
2127
+ cdef CUresult _cuGreenCtxGetDevResource(CUgreenCtx hCtx, CUdevResource* resource, CUdevResourceType typename) except ?CUDA_ERROR_NOT_FOUND nogil
2128
+ {{endif}}
2129
+
2130
+ {{if 'cuDevSmResourceSplitByCount' in found_functions}}
2131
+
2132
+ cdef CUresult _cuDevSmResourceSplitByCount(CUdevResource* result, unsigned int* nbGroups, const CUdevResource* input, CUdevResource* remaining, unsigned int useFlags, unsigned int minCount) except ?CUDA_ERROR_NOT_FOUND nogil
2133
+ {{endif}}
2134
+
2135
+ {{if 'cuDevResourceGenerateDesc' in found_functions}}
2136
+
2137
+ cdef CUresult _cuDevResourceGenerateDesc(CUdevResourceDesc* phDesc, CUdevResource* resources, unsigned int nbResources) except ?CUDA_ERROR_NOT_FOUND nogil
2138
+ {{endif}}
2139
+
2140
+ {{if 'cuGreenCtxRecordEvent' in found_functions}}
2141
+
2142
+ cdef CUresult _cuGreenCtxRecordEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil
2143
+ {{endif}}
2144
+
2145
+ {{if 'cuGreenCtxWaitEvent' in found_functions}}
2146
+
2147
+ cdef CUresult _cuGreenCtxWaitEvent(CUgreenCtx hCtx, CUevent hEvent) except ?CUDA_ERROR_NOT_FOUND nogil
2148
+ {{endif}}
2149
+
2150
+ {{if 'cuStreamGetGreenCtx' in found_functions}}
2151
+
2152
+ cdef CUresult _cuStreamGetGreenCtx(CUstream hStream, CUgreenCtx* phCtx) except ?CUDA_ERROR_NOT_FOUND nogil
2153
+ {{endif}}
2154
+
2050
2155
{{if 'cuProfilerStart' in found_functions}}
2051
2156
2052
2157
cdef CUresult _cuProfilerStart() except ?CUDA_ERROR_NOT_FOUND nogil
0 commit comments