@@ -36,7 +36,7 @@ cdef bint __cuPythonInit = False
3636{{if 'nvrtcAddNameExpression' in found_functions}}cdef void *__nvrtcAddNameExpression = NULL{{endif}}
3737{{if 'nvrtcGetLoweredName' in found_functions}}cdef void *__nvrtcGetLoweredName = NULL{{endif}}
3838
39- cdef int cuPythonInit() nogil except -1:
39+ cdef int cuPythonInit() except -1 nogil :
4040 global __cuPythonInit
4141 if __cuPythonInit:
4242 return 0
@@ -301,7 +301,7 @@ cdef int cuPythonInit() nogil except -1:
301301
302302{{if 'nvrtcGetErrorString' in found_functions}}
303303
304- cdef const char* _nvrtcGetErrorString(nvrtcResult result) nogil except ?NULL:
304+ cdef const char* _nvrtcGetErrorString(nvrtcResult result) except ?NULL nogil :
305305 global __nvrtcGetErrorString
306306 cuPythonInit()
307307 if __nvrtcGetErrorString == NULL:
@@ -313,7 +313,7 @@ cdef const char* _nvrtcGetErrorString(nvrtcResult result) nogil except ?NULL:
313313
314314{{if 'nvrtcVersion' in found_functions}}
315315
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 :
317317 global __nvrtcVersion
318318 cuPythonInit()
319319 if __nvrtcVersion == NULL:
@@ -325,7 +325,7 @@ cdef nvrtcResult _nvrtcVersion(int* major, int* minor) nogil except ?NVRTC_ERROR
325325
326326{{if 'nvrtcGetNumSupportedArchs' in found_functions}}
327327
328- cdef nvrtcResult _nvrtcGetNumSupportedArchs(int* numArchs) nogil except ?NVRTC_ERROR_INVALID_INPUT:
328+ cdef nvrtcResult _nvrtcGetNumSupportedArchs(int* numArchs) except ?NVRTC_ERROR_INVALID_INPUT nogil :
329329 global __nvrtcGetNumSupportedArchs
330330 cuPythonInit()
331331 if __nvrtcGetNumSupportedArchs == NULL:
@@ -337,7 +337,7 @@ cdef nvrtcResult _nvrtcGetNumSupportedArchs(int* numArchs) nogil except ?NVRTC_E
337337
338338{{if 'nvrtcGetSupportedArchs' in found_functions}}
339339
340- cdef nvrtcResult _nvrtcGetSupportedArchs(int* supportedArchs) nogil except ?NVRTC_ERROR_INVALID_INPUT:
340+ cdef nvrtcResult _nvrtcGetSupportedArchs(int* supportedArchs) except ?NVRTC_ERROR_INVALID_INPUT nogil :
341341 global __nvrtcGetSupportedArchs
342342 cuPythonInit()
343343 if __nvrtcGetSupportedArchs == NULL:
@@ -349,7 +349,7 @@ cdef nvrtcResult _nvrtcGetSupportedArchs(int* supportedArchs) nogil except ?NVRT
349349
350350{{if 'nvrtcCreateProgram' in found_functions}}
351351
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 :
353353 global __nvrtcCreateProgram
354354 cuPythonInit()
355355 if __nvrtcCreateProgram == NULL:
@@ -361,7 +361,7 @@ cdef nvrtcResult _nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const
361361
362362{{if 'nvrtcDestroyProgram' in found_functions}}
363363
364- cdef nvrtcResult _nvrtcDestroyProgram(nvrtcProgram* prog) nogil except ?NVRTC_ERROR_INVALID_INPUT:
364+ cdef nvrtcResult _nvrtcDestroyProgram(nvrtcProgram* prog) except ?NVRTC_ERROR_INVALID_INPUT nogil :
365365 global __nvrtcDestroyProgram
366366 cuPythonInit()
367367 if __nvrtcDestroyProgram == NULL:
@@ -373,7 +373,7 @@ cdef nvrtcResult _nvrtcDestroyProgram(nvrtcProgram* prog) nogil except ?NVRTC_ER
373373
374374{{if 'nvrtcCompileProgram' in found_functions}}
375375
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 :
377377 global __nvrtcCompileProgram
378378 cuPythonInit()
379379 if __nvrtcCompileProgram == NULL:
@@ -385,7 +385,7 @@ cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const c
385385
386386{{if 'nvrtcGetPTXSize' in found_functions}}
387387
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 :
389389 global __nvrtcGetPTXSize
390390 cuPythonInit()
391391 if __nvrtcGetPTXSize == NULL:
@@ -397,7 +397,7 @@ cdef nvrtcResult _nvrtcGetPTXSize(nvrtcProgram prog, size_t* ptxSizeRet) nogil e
397397
398398{{if 'nvrtcGetPTX' in found_functions}}
399399
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 :
401401 global __nvrtcGetPTX
402402 cuPythonInit()
403403 if __nvrtcGetPTX == NULL:
@@ -409,7 +409,7 @@ cdef nvrtcResult _nvrtcGetPTX(nvrtcProgram prog, char* ptx) nogil except ?NVRTC_
409409
410410{{if 'nvrtcGetCUBINSize' in found_functions}}
411411
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 :
413413 global __nvrtcGetCUBINSize
414414 cuPythonInit()
415415 if __nvrtcGetCUBINSize == NULL:
@@ -421,7 +421,7 @@ cdef nvrtcResult _nvrtcGetCUBINSize(nvrtcProgram prog, size_t* cubinSizeRet) nog
421421
422422{{if 'nvrtcGetCUBIN' in found_functions}}
423423
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 :
425425 global __nvrtcGetCUBIN
426426 cuPythonInit()
427427 if __nvrtcGetCUBIN == NULL:
@@ -433,7 +433,7 @@ cdef nvrtcResult _nvrtcGetCUBIN(nvrtcProgram prog, char* cubin) nogil except ?NV
433433
434434{{if 'nvrtcGetNVVMSize' in found_functions}}
435435
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 :
437437 global __nvrtcGetNVVMSize
438438 cuPythonInit()
439439 if __nvrtcGetNVVMSize == NULL:
@@ -445,7 +445,7 @@ cdef nvrtcResult _nvrtcGetNVVMSize(nvrtcProgram prog, size_t* nvvmSizeRet) nogil
445445
446446{{if 'nvrtcGetNVVM' in found_functions}}
447447
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 :
449449 global __nvrtcGetNVVM
450450 cuPythonInit()
451451 if __nvrtcGetNVVM == NULL:
@@ -457,7 +457,7 @@ cdef nvrtcResult _nvrtcGetNVVM(nvrtcProgram prog, char* nvvm) nogil except ?NVRT
457457
458458{{if 'nvrtcGetLTOIRSize' in found_functions}}
459459
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 :
461461 global __nvrtcGetLTOIRSize
462462 cuPythonInit()
463463 if __nvrtcGetLTOIRSize == NULL:
@@ -469,7 +469,7 @@ cdef nvrtcResult _nvrtcGetLTOIRSize(nvrtcProgram prog, size_t* LTOIRSizeRet) nog
469469
470470{{if 'nvrtcGetLTOIR' in found_functions}}
471471
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 :
473473 global __nvrtcGetLTOIR
474474 cuPythonInit()
475475 if __nvrtcGetLTOIR == NULL:
@@ -481,7 +481,7 @@ cdef nvrtcResult _nvrtcGetLTOIR(nvrtcProgram prog, char* LTOIR) nogil except ?NV
481481
482482{{if 'nvrtcGetOptiXIRSize' in found_functions}}
483483
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 :
485485 global __nvrtcGetOptiXIRSize
486486 cuPythonInit()
487487 if __nvrtcGetOptiXIRSize == NULL:
@@ -493,7 +493,7 @@ cdef nvrtcResult _nvrtcGetOptiXIRSize(nvrtcProgram prog, size_t* optixirSizeRet)
493493
494494{{if 'nvrtcGetOptiXIR' in found_functions}}
495495
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 :
497497 global __nvrtcGetOptiXIR
498498 cuPythonInit()
499499 if __nvrtcGetOptiXIR == NULL:
@@ -505,7 +505,7 @@ cdef nvrtcResult _nvrtcGetOptiXIR(nvrtcProgram prog, char* optixir) nogil except
505505
506506{{if 'nvrtcGetProgramLogSize' in found_functions}}
507507
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 :
509509 global __nvrtcGetProgramLogSize
510510 cuPythonInit()
511511 if __nvrtcGetProgramLogSize == NULL:
@@ -517,7 +517,7 @@ cdef nvrtcResult _nvrtcGetProgramLogSize(nvrtcProgram prog, size_t* logSizeRet)
517517
518518{{if 'nvrtcGetProgramLog' in found_functions}}
519519
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 :
521521 global __nvrtcGetProgramLog
522522 cuPythonInit()
523523 if __nvrtcGetProgramLog == NULL:
@@ -529,7 +529,7 @@ cdef nvrtcResult _nvrtcGetProgramLog(nvrtcProgram prog, char* log) nogil except
529529
530530{{if 'nvrtcAddNameExpression' in found_functions}}
531531
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 :
533533 global __nvrtcAddNameExpression
534534 cuPythonInit()
535535 if __nvrtcAddNameExpression == NULL:
@@ -541,7 +541,7 @@ cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* name_exp
541541
542542{{if 'nvrtcGetLoweredName' in found_functions}}
543543
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 :
545545 global __nvrtcGetLoweredName
546546 cuPythonInit()
547547 if __nvrtcGetLoweredName == NULL:
0 commit comments