@@ -32,7 +32,7 @@ cdef bint __cuPythonInit = False
32
32
{{if 'nvrtcAddNameExpression' in found_functions}}cdef void *__nvrtcAddNameExpression = NULL{{endif}}
33
33
{{if 'nvrtcGetLoweredName' in found_functions}}cdef void *__nvrtcGetLoweredName = NULL{{endif}}
34
34
35
- cdef int cuPythonInit() nogil except -1:
35
+ cdef int cuPythonInit() except -1 nogil :
36
36
global __cuPythonInit
37
37
if __cuPythonInit:
38
38
return 0
@@ -263,7 +263,7 @@ cdef int cuPythonInit() nogil except -1:
263
263
264
264
{{if 'nvrtcGetErrorString' in found_functions}}
265
265
266
- cdef const char* _nvrtcGetErrorString(nvrtcResult result) nogil except ?NULL:
266
+ cdef const char* _nvrtcGetErrorString(nvrtcResult result) except ?NULL nogil :
267
267
global __nvrtcGetErrorString
268
268
cuPythonInit()
269
269
if __nvrtcGetErrorString == NULL:
@@ -275,7 +275,7 @@ cdef const char* _nvrtcGetErrorString(nvrtcResult result) nogil except ?NULL:
275
275
276
276
{{if 'nvrtcVersion' in found_functions}}
277
277
278
- cdef nvrtcResult _nvrtcVersion(int* major, int* minor) nogil except ?NVRTC_ERROR_INVALID_INPUT:
278
+ cdef nvrtcResult _nvrtcVersion(int* major, int* minor) except ?NVRTC_ERROR_INVALID_INPUT nogil :
279
279
global __nvrtcVersion
280
280
cuPythonInit()
281
281
if __nvrtcVersion == NULL:
@@ -287,7 +287,7 @@ cdef nvrtcResult _nvrtcVersion(int* major, int* minor) nogil except ?NVRTC_ERROR
287
287
288
288
{{if 'nvrtcGetNumSupportedArchs' in found_functions}}
289
289
290
- cdef nvrtcResult _nvrtcGetNumSupportedArchs(int* numArchs) nogil except ?NVRTC_ERROR_INVALID_INPUT:
290
+ cdef nvrtcResult _nvrtcGetNumSupportedArchs(int* numArchs) except ?NVRTC_ERROR_INVALID_INPUT nogil :
291
291
global __nvrtcGetNumSupportedArchs
292
292
cuPythonInit()
293
293
if __nvrtcGetNumSupportedArchs == NULL:
@@ -299,7 +299,7 @@ cdef nvrtcResult _nvrtcGetNumSupportedArchs(int* numArchs) nogil except ?NVRTC_E
299
299
300
300
{{if 'nvrtcGetSupportedArchs' in found_functions}}
301
301
302
- cdef nvrtcResult _nvrtcGetSupportedArchs(int* supportedArchs) nogil except ?NVRTC_ERROR_INVALID_INPUT:
302
+ cdef nvrtcResult _nvrtcGetSupportedArchs(int* supportedArchs) except ?NVRTC_ERROR_INVALID_INPUT nogil :
303
303
global __nvrtcGetSupportedArchs
304
304
cuPythonInit()
305
305
if __nvrtcGetSupportedArchs == NULL:
@@ -311,7 +311,7 @@ cdef nvrtcResult _nvrtcGetSupportedArchs(int* supportedArchs) nogil except ?NVRT
311
311
312
312
{{if 'nvrtcCreateProgram' in found_functions}}
313
313
314
- cdef nvrtcResult _nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char** headers, const char** includeNames) nogil except ?NVRTC_ERROR_INVALID_INPUT:
314
+ cdef nvrtcResult _nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char** headers, const char** includeNames) except ?NVRTC_ERROR_INVALID_INPUT nogil :
315
315
global __nvrtcCreateProgram
316
316
cuPythonInit()
317
317
if __nvrtcCreateProgram == NULL:
@@ -323,7 +323,7 @@ cdef nvrtcResult _nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const
323
323
324
324
{{if 'nvrtcDestroyProgram' in found_functions}}
325
325
326
- cdef nvrtcResult _nvrtcDestroyProgram(nvrtcProgram* prog) nogil except ?NVRTC_ERROR_INVALID_INPUT:
326
+ cdef nvrtcResult _nvrtcDestroyProgram(nvrtcProgram* prog) except ?NVRTC_ERROR_INVALID_INPUT nogil :
327
327
global __nvrtcDestroyProgram
328
328
cuPythonInit()
329
329
if __nvrtcDestroyProgram == NULL:
@@ -335,7 +335,7 @@ cdef nvrtcResult _nvrtcDestroyProgram(nvrtcProgram* prog) nogil except ?NVRTC_ER
335
335
336
336
{{if 'nvrtcCompileProgram' in found_functions}}
337
337
338
- cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char** options) nogil except ?NVRTC_ERROR_INVALID_INPUT:
338
+ cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char** options) except ?NVRTC_ERROR_INVALID_INPUT nogil :
339
339
global __nvrtcCompileProgram
340
340
cuPythonInit()
341
341
if __nvrtcCompileProgram == NULL:
@@ -347,7 +347,7 @@ cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const c
347
347
348
348
{{if 'nvrtcGetPTXSize' in found_functions}}
349
349
350
- cdef nvrtcResult _nvrtcGetPTXSize(nvrtcProgram prog, size_t* ptxSizeRet) nogil except ?NVRTC_ERROR_INVALID_INPUT:
350
+ cdef nvrtcResult _nvrtcGetPTXSize(nvrtcProgram prog, size_t* ptxSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil :
351
351
global __nvrtcGetPTXSize
352
352
cuPythonInit()
353
353
if __nvrtcGetPTXSize == NULL:
@@ -359,7 +359,7 @@ cdef nvrtcResult _nvrtcGetPTXSize(nvrtcProgram prog, size_t* ptxSizeRet) nogil e
359
359
360
360
{{if 'nvrtcGetPTX' in found_functions}}
361
361
362
- cdef nvrtcResult _nvrtcGetPTX(nvrtcProgram prog, char* ptx) nogil except ?NVRTC_ERROR_INVALID_INPUT:
362
+ cdef nvrtcResult _nvrtcGetPTX(nvrtcProgram prog, char* ptx) except ?NVRTC_ERROR_INVALID_INPUT nogil :
363
363
global __nvrtcGetPTX
364
364
cuPythonInit()
365
365
if __nvrtcGetPTX == NULL:
@@ -371,7 +371,7 @@ cdef nvrtcResult _nvrtcGetPTX(nvrtcProgram prog, char* ptx) nogil except ?NVRTC_
371
371
372
372
{{if 'nvrtcGetCUBINSize' in found_functions}}
373
373
374
- cdef nvrtcResult _nvrtcGetCUBINSize(nvrtcProgram prog, size_t* cubinSizeRet) nogil except ?NVRTC_ERROR_INVALID_INPUT:
374
+ cdef nvrtcResult _nvrtcGetCUBINSize(nvrtcProgram prog, size_t* cubinSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil :
375
375
global __nvrtcGetCUBINSize
376
376
cuPythonInit()
377
377
if __nvrtcGetCUBINSize == NULL:
@@ -383,7 +383,7 @@ cdef nvrtcResult _nvrtcGetCUBINSize(nvrtcProgram prog, size_t* cubinSizeRet) nog
383
383
384
384
{{if 'nvrtcGetCUBIN' in found_functions}}
385
385
386
- cdef nvrtcResult _nvrtcGetCUBIN(nvrtcProgram prog, char* cubin) nogil except ?NVRTC_ERROR_INVALID_INPUT:
386
+ cdef nvrtcResult _nvrtcGetCUBIN(nvrtcProgram prog, char* cubin) except ?NVRTC_ERROR_INVALID_INPUT nogil :
387
387
global __nvrtcGetCUBIN
388
388
cuPythonInit()
389
389
if __nvrtcGetCUBIN == NULL:
@@ -395,7 +395,7 @@ cdef nvrtcResult _nvrtcGetCUBIN(nvrtcProgram prog, char* cubin) nogil except ?NV
395
395
396
396
{{if 'nvrtcGetNVVMSize' in found_functions}}
397
397
398
- cdef nvrtcResult _nvrtcGetNVVMSize(nvrtcProgram prog, size_t* nvvmSizeRet) nogil except ?NVRTC_ERROR_INVALID_INPUT:
398
+ cdef nvrtcResult _nvrtcGetNVVMSize(nvrtcProgram prog, size_t* nvvmSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil :
399
399
global __nvrtcGetNVVMSize
400
400
cuPythonInit()
401
401
if __nvrtcGetNVVMSize == NULL:
@@ -407,7 +407,7 @@ cdef nvrtcResult _nvrtcGetNVVMSize(nvrtcProgram prog, size_t* nvvmSizeRet) nogil
407
407
408
408
{{if 'nvrtcGetNVVM' in found_functions}}
409
409
410
- cdef nvrtcResult _nvrtcGetNVVM(nvrtcProgram prog, char* nvvm) nogil except ?NVRTC_ERROR_INVALID_INPUT:
410
+ cdef nvrtcResult _nvrtcGetNVVM(nvrtcProgram prog, char* nvvm) except ?NVRTC_ERROR_INVALID_INPUT nogil :
411
411
global __nvrtcGetNVVM
412
412
cuPythonInit()
413
413
if __nvrtcGetNVVM == NULL:
@@ -419,7 +419,7 @@ cdef nvrtcResult _nvrtcGetNVVM(nvrtcProgram prog, char* nvvm) nogil except ?NVRT
419
419
420
420
{{if 'nvrtcGetProgramLogSize' in found_functions}}
421
421
422
- cdef nvrtcResult _nvrtcGetProgramLogSize(nvrtcProgram prog, size_t* logSizeRet) nogil except ?NVRTC_ERROR_INVALID_INPUT:
422
+ cdef nvrtcResult _nvrtcGetProgramLogSize(nvrtcProgram prog, size_t* logSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil :
423
423
global __nvrtcGetProgramLogSize
424
424
cuPythonInit()
425
425
if __nvrtcGetProgramLogSize == NULL:
@@ -431,7 +431,7 @@ cdef nvrtcResult _nvrtcGetProgramLogSize(nvrtcProgram prog, size_t* logSizeRet)
431
431
432
432
{{if 'nvrtcGetProgramLog' in found_functions}}
433
433
434
- cdef nvrtcResult _nvrtcGetProgramLog(nvrtcProgram prog, char* log) nogil except ?NVRTC_ERROR_INVALID_INPUT:
434
+ cdef nvrtcResult _nvrtcGetProgramLog(nvrtcProgram prog, char* log) except ?NVRTC_ERROR_INVALID_INPUT nogil :
435
435
global __nvrtcGetProgramLog
436
436
cuPythonInit()
437
437
if __nvrtcGetProgramLog == NULL:
@@ -443,7 +443,7 @@ cdef nvrtcResult _nvrtcGetProgramLog(nvrtcProgram prog, char* log) nogil except
443
443
444
444
{{if 'nvrtcAddNameExpression' in found_functions}}
445
445
446
- cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* name_expression) nogil except ?NVRTC_ERROR_INVALID_INPUT:
446
+ cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* name_expression) except ?NVRTC_ERROR_INVALID_INPUT nogil :
447
447
global __nvrtcAddNameExpression
448
448
cuPythonInit()
449
449
if __nvrtcAddNameExpression == NULL:
@@ -455,7 +455,7 @@ cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* name_exp
455
455
456
456
{{if 'nvrtcGetLoweredName' in found_functions}}
457
457
458
- cdef nvrtcResult _nvrtcGetLoweredName(nvrtcProgram prog, const char* name_expression, const char** lowered_name) nogil except ?NVRTC_ERROR_INVALID_INPUT:
458
+ cdef nvrtcResult _nvrtcGetLoweredName(nvrtcProgram prog, const char* name_expression, const char** lowered_name) except ?NVRTC_ERROR_INVALID_INPUT nogil :
459
459
global __nvrtcGetLoweredName
460
460
cuPythonInit()
461
461
if __nvrtcGetLoweredName == NULL:
0 commit comments