@@ -36,7 +36,7 @@ cdef bint __cuPythonInit = False
36
36
{{if 'nvrtcAddNameExpression' in found_functions}}cdef void *__nvrtcAddNameExpression = NULL{{endif}}
37
37
{{if 'nvrtcGetLoweredName' in found_functions}}cdef void *__nvrtcGetLoweredName = NULL{{endif}}
38
38
39
- cdef int cuPythonInit() nogil except -1:
39
+ cdef int cuPythonInit() except -1 nogil :
40
40
global __cuPythonInit
41
41
if __cuPythonInit:
42
42
return 0
@@ -301,7 +301,7 @@ cdef int cuPythonInit() nogil except -1:
301
301
302
302
{{if 'nvrtcGetErrorString' in found_functions}}
303
303
304
- cdef const char* _nvrtcGetErrorString(nvrtcResult result) nogil except ?NULL:
304
+ cdef const char* _nvrtcGetErrorString(nvrtcResult result) except ?NULL nogil :
305
305
global __nvrtcGetErrorString
306
306
cuPythonInit()
307
307
if __nvrtcGetErrorString == NULL:
@@ -313,7 +313,7 @@ cdef const char* _nvrtcGetErrorString(nvrtcResult result) nogil except ?NULL:
313
313
314
314
{{if 'nvrtcVersion' in found_functions}}
315
315
316
- cdef nvrtcResult _nvrtcVersion(int* major, int* minor) nogil except ?NVRTC_ERROR_INVALID_INPUT:
316
+ cdef nvrtcResult _nvrtcVersion(int* major, int* minor) except ?NVRTC_ERROR_INVALID_INPUT nogil :
317
317
global __nvrtcVersion
318
318
cuPythonInit()
319
319
if __nvrtcVersion == NULL:
@@ -325,7 +325,7 @@ cdef nvrtcResult _nvrtcVersion(int* major, int* minor) nogil except ?NVRTC_ERROR
325
325
326
326
{{if 'nvrtcGetNumSupportedArchs' in found_functions}}
327
327
328
- cdef nvrtcResult _nvrtcGetNumSupportedArchs(int* numArchs) nogil except ?NVRTC_ERROR_INVALID_INPUT:
328
+ cdef nvrtcResult _nvrtcGetNumSupportedArchs(int* numArchs) except ?NVRTC_ERROR_INVALID_INPUT nogil :
329
329
global __nvrtcGetNumSupportedArchs
330
330
cuPythonInit()
331
331
if __nvrtcGetNumSupportedArchs == NULL:
@@ -337,7 +337,7 @@ cdef nvrtcResult _nvrtcGetNumSupportedArchs(int* numArchs) nogil except ?NVRTC_E
337
337
338
338
{{if 'nvrtcGetSupportedArchs' in found_functions}}
339
339
340
- cdef nvrtcResult _nvrtcGetSupportedArchs(int* supportedArchs) nogil except ?NVRTC_ERROR_INVALID_INPUT:
340
+ cdef nvrtcResult _nvrtcGetSupportedArchs(int* supportedArchs) except ?NVRTC_ERROR_INVALID_INPUT nogil :
341
341
global __nvrtcGetSupportedArchs
342
342
cuPythonInit()
343
343
if __nvrtcGetSupportedArchs == NULL:
@@ -349,7 +349,7 @@ cdef nvrtcResult _nvrtcGetSupportedArchs(int* supportedArchs) nogil except ?NVRT
349
349
350
350
{{if 'nvrtcCreateProgram' in found_functions}}
351
351
352
- 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:
352
+ 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 :
353
353
global __nvrtcCreateProgram
354
354
cuPythonInit()
355
355
if __nvrtcCreateProgram == NULL:
@@ -361,7 +361,7 @@ cdef nvrtcResult _nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const
361
361
362
362
{{if 'nvrtcDestroyProgram' in found_functions}}
363
363
364
- cdef nvrtcResult _nvrtcDestroyProgram(nvrtcProgram* prog) nogil except ?NVRTC_ERROR_INVALID_INPUT:
364
+ cdef nvrtcResult _nvrtcDestroyProgram(nvrtcProgram* prog) except ?NVRTC_ERROR_INVALID_INPUT nogil :
365
365
global __nvrtcDestroyProgram
366
366
cuPythonInit()
367
367
if __nvrtcDestroyProgram == NULL:
@@ -373,7 +373,7 @@ cdef nvrtcResult _nvrtcDestroyProgram(nvrtcProgram* prog) nogil except ?NVRTC_ER
373
373
374
374
{{if 'nvrtcCompileProgram' in found_functions}}
375
375
376
- cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char** options) nogil except ?NVRTC_ERROR_INVALID_INPUT:
376
+ cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char** options) except ?NVRTC_ERROR_INVALID_INPUT nogil :
377
377
global __nvrtcCompileProgram
378
378
cuPythonInit()
379
379
if __nvrtcCompileProgram == NULL:
@@ -385,7 +385,7 @@ cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const c
385
385
386
386
{{if 'nvrtcGetPTXSize' in found_functions}}
387
387
388
- cdef nvrtcResult _nvrtcGetPTXSize(nvrtcProgram prog, size_t* ptxSizeRet) nogil except ?NVRTC_ERROR_INVALID_INPUT:
388
+ cdef nvrtcResult _nvrtcGetPTXSize(nvrtcProgram prog, size_t* ptxSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil :
389
389
global __nvrtcGetPTXSize
390
390
cuPythonInit()
391
391
if __nvrtcGetPTXSize == NULL:
@@ -397,7 +397,7 @@ cdef nvrtcResult _nvrtcGetPTXSize(nvrtcProgram prog, size_t* ptxSizeRet) nogil e
397
397
398
398
{{if 'nvrtcGetPTX' in found_functions}}
399
399
400
- cdef nvrtcResult _nvrtcGetPTX(nvrtcProgram prog, char* ptx) nogil except ?NVRTC_ERROR_INVALID_INPUT:
400
+ cdef nvrtcResult _nvrtcGetPTX(nvrtcProgram prog, char* ptx) except ?NVRTC_ERROR_INVALID_INPUT nogil :
401
401
global __nvrtcGetPTX
402
402
cuPythonInit()
403
403
if __nvrtcGetPTX == NULL:
@@ -409,7 +409,7 @@ cdef nvrtcResult _nvrtcGetPTX(nvrtcProgram prog, char* ptx) nogil except ?NVRTC_
409
409
410
410
{{if 'nvrtcGetCUBINSize' in found_functions}}
411
411
412
- cdef nvrtcResult _nvrtcGetCUBINSize(nvrtcProgram prog, size_t* cubinSizeRet) nogil except ?NVRTC_ERROR_INVALID_INPUT:
412
+ cdef nvrtcResult _nvrtcGetCUBINSize(nvrtcProgram prog, size_t* cubinSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil :
413
413
global __nvrtcGetCUBINSize
414
414
cuPythonInit()
415
415
if __nvrtcGetCUBINSize == NULL:
@@ -421,7 +421,7 @@ cdef nvrtcResult _nvrtcGetCUBINSize(nvrtcProgram prog, size_t* cubinSizeRet) nog
421
421
422
422
{{if 'nvrtcGetCUBIN' in found_functions}}
423
423
424
- cdef nvrtcResult _nvrtcGetCUBIN(nvrtcProgram prog, char* cubin) nogil except ?NVRTC_ERROR_INVALID_INPUT:
424
+ cdef nvrtcResult _nvrtcGetCUBIN(nvrtcProgram prog, char* cubin) except ?NVRTC_ERROR_INVALID_INPUT nogil :
425
425
global __nvrtcGetCUBIN
426
426
cuPythonInit()
427
427
if __nvrtcGetCUBIN == NULL:
@@ -433,7 +433,7 @@ cdef nvrtcResult _nvrtcGetCUBIN(nvrtcProgram prog, char* cubin) nogil except ?NV
433
433
434
434
{{if 'nvrtcGetNVVMSize' in found_functions}}
435
435
436
- cdef nvrtcResult _nvrtcGetNVVMSize(nvrtcProgram prog, size_t* nvvmSizeRet) nogil except ?NVRTC_ERROR_INVALID_INPUT:
436
+ cdef nvrtcResult _nvrtcGetNVVMSize(nvrtcProgram prog, size_t* nvvmSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil :
437
437
global __nvrtcGetNVVMSize
438
438
cuPythonInit()
439
439
if __nvrtcGetNVVMSize == NULL:
@@ -445,7 +445,7 @@ cdef nvrtcResult _nvrtcGetNVVMSize(nvrtcProgram prog, size_t* nvvmSizeRet) nogil
445
445
446
446
{{if 'nvrtcGetNVVM' in found_functions}}
447
447
448
- cdef nvrtcResult _nvrtcGetNVVM(nvrtcProgram prog, char* nvvm) nogil except ?NVRTC_ERROR_INVALID_INPUT:
448
+ cdef nvrtcResult _nvrtcGetNVVM(nvrtcProgram prog, char* nvvm) except ?NVRTC_ERROR_INVALID_INPUT nogil :
449
449
global __nvrtcGetNVVM
450
450
cuPythonInit()
451
451
if __nvrtcGetNVVM == NULL:
@@ -457,7 +457,7 @@ cdef nvrtcResult _nvrtcGetNVVM(nvrtcProgram prog, char* nvvm) nogil except ?NVRT
457
457
458
458
{{if 'nvrtcGetLTOIRSize' in found_functions}}
459
459
460
- cdef nvrtcResult _nvrtcGetLTOIRSize(nvrtcProgram prog, size_t* LTOIRSizeRet) nogil except ?NVRTC_ERROR_INVALID_INPUT:
460
+ cdef nvrtcResult _nvrtcGetLTOIRSize(nvrtcProgram prog, size_t* LTOIRSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil :
461
461
global __nvrtcGetLTOIRSize
462
462
cuPythonInit()
463
463
if __nvrtcGetLTOIRSize == NULL:
@@ -469,7 +469,7 @@ cdef nvrtcResult _nvrtcGetLTOIRSize(nvrtcProgram prog, size_t* LTOIRSizeRet) nog
469
469
470
470
{{if 'nvrtcGetLTOIR' in found_functions}}
471
471
472
- cdef nvrtcResult _nvrtcGetLTOIR(nvrtcProgram prog, char* LTOIR) nogil except ?NVRTC_ERROR_INVALID_INPUT:
472
+ cdef nvrtcResult _nvrtcGetLTOIR(nvrtcProgram prog, char* LTOIR) except ?NVRTC_ERROR_INVALID_INPUT nogil :
473
473
global __nvrtcGetLTOIR
474
474
cuPythonInit()
475
475
if __nvrtcGetLTOIR == NULL:
@@ -481,7 +481,7 @@ cdef nvrtcResult _nvrtcGetLTOIR(nvrtcProgram prog, char* LTOIR) nogil except ?NV
481
481
482
482
{{if 'nvrtcGetOptiXIRSize' in found_functions}}
483
483
484
- cdef nvrtcResult _nvrtcGetOptiXIRSize(nvrtcProgram prog, size_t* optixirSizeRet) nogil except ?NVRTC_ERROR_INVALID_INPUT:
484
+ cdef nvrtcResult _nvrtcGetOptiXIRSize(nvrtcProgram prog, size_t* optixirSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil :
485
485
global __nvrtcGetOptiXIRSize
486
486
cuPythonInit()
487
487
if __nvrtcGetOptiXIRSize == NULL:
@@ -493,7 +493,7 @@ cdef nvrtcResult _nvrtcGetOptiXIRSize(nvrtcProgram prog, size_t* optixirSizeRet)
493
493
494
494
{{if 'nvrtcGetOptiXIR' in found_functions}}
495
495
496
- cdef nvrtcResult _nvrtcGetOptiXIR(nvrtcProgram prog, char* optixir) nogil except ?NVRTC_ERROR_INVALID_INPUT:
496
+ cdef nvrtcResult _nvrtcGetOptiXIR(nvrtcProgram prog, char* optixir) except ?NVRTC_ERROR_INVALID_INPUT nogil :
497
497
global __nvrtcGetOptiXIR
498
498
cuPythonInit()
499
499
if __nvrtcGetOptiXIR == NULL:
@@ -505,7 +505,7 @@ cdef nvrtcResult _nvrtcGetOptiXIR(nvrtcProgram prog, char* optixir) nogil except
505
505
506
506
{{if 'nvrtcGetProgramLogSize' in found_functions}}
507
507
508
- cdef nvrtcResult _nvrtcGetProgramLogSize(nvrtcProgram prog, size_t* logSizeRet) nogil except ?NVRTC_ERROR_INVALID_INPUT:
508
+ cdef nvrtcResult _nvrtcGetProgramLogSize(nvrtcProgram prog, size_t* logSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil :
509
509
global __nvrtcGetProgramLogSize
510
510
cuPythonInit()
511
511
if __nvrtcGetProgramLogSize == NULL:
@@ -517,7 +517,7 @@ cdef nvrtcResult _nvrtcGetProgramLogSize(nvrtcProgram prog, size_t* logSizeRet)
517
517
518
518
{{if 'nvrtcGetProgramLog' in found_functions}}
519
519
520
- cdef nvrtcResult _nvrtcGetProgramLog(nvrtcProgram prog, char* log) nogil except ?NVRTC_ERROR_INVALID_INPUT:
520
+ cdef nvrtcResult _nvrtcGetProgramLog(nvrtcProgram prog, char* log) except ?NVRTC_ERROR_INVALID_INPUT nogil :
521
521
global __nvrtcGetProgramLog
522
522
cuPythonInit()
523
523
if __nvrtcGetProgramLog == NULL:
@@ -529,7 +529,7 @@ cdef nvrtcResult _nvrtcGetProgramLog(nvrtcProgram prog, char* log) nogil except
529
529
530
530
{{if 'nvrtcAddNameExpression' in found_functions}}
531
531
532
- cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* name_expression) nogil except ?NVRTC_ERROR_INVALID_INPUT:
532
+ cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* name_expression) except ?NVRTC_ERROR_INVALID_INPUT nogil :
533
533
global __nvrtcAddNameExpression
534
534
cuPythonInit()
535
535
if __nvrtcAddNameExpression == NULL:
@@ -541,7 +541,7 @@ cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* name_exp
541
541
542
542
{{if 'nvrtcGetLoweredName' in found_functions}}
543
543
544
- cdef nvrtcResult _nvrtcGetLoweredName(nvrtcProgram prog, const char* name_expression, const char** lowered_name) nogil except ?NVRTC_ERROR_INVALID_INPUT:
544
+ cdef nvrtcResult _nvrtcGetLoweredName(nvrtcProgram prog, const char* name_expression, const char** lowered_name) except ?NVRTC_ERROR_INVALID_INPUT nogil :
545
545
global __nvrtcGetLoweredName
546
546
cuPythonInit()
547
547
if __nvrtcGetLoweredName == NULL:
0 commit comments