Skip to content

Commit 2ae98f9

Browse files
committed
Rebase to CTK 12.2
1 parent 7992853 commit 2ae98f9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+16445
-10428
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
CUDA Python is supported on all platforms that CUDA is supported. Specific dependencies are as follows:
88

99
* Driver: Linux (450.80.02 or later) Windows (456.38 or later)
10-
* CUDA Toolkit 12.0 to 12.1
10+
* CUDA Toolkit 12.0 to 12.2
1111
* Python 3.8 to 3.11
1212

1313
Only the NVRTC redistributable component is required from the CUDA Toolkit. [CUDA Toolkit Documentation](https://docs.nvidia.com/cuda/index.html) Installation Guides can be used for guidance. Note that the NVRTC component in the Toolkit can be obtained via PiPy, Conda or Local Installer.

cuda/_cuda/ccuda.pxd.in

Lines changed: 437 additions & 412 deletions
Large diffs are not rendered by default.

cuda/_cuda/ccuda.pyx.in

Lines changed: 570 additions & 415 deletions
Large diffs are not rendered by default.

cuda/_cuda/cnvrtc.pxd.in

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,106 +9,106 @@ from cuda.cnvrtc cimport *
99

1010
{{if 'nvrtcGetErrorString' in found_functions}}
1111

12-
cdef const char* _nvrtcGetErrorString(nvrtcResult result) nogil except ?NULL
12+
cdef const char* _nvrtcGetErrorString(nvrtcResult result) except ?NULL nogil
1313
{{endif}}
1414

1515
{{if 'nvrtcVersion' in found_functions}}
1616

17-
cdef nvrtcResult _nvrtcVersion(int* major, int* minor) nogil except ?NVRTC_ERROR_INVALID_INPUT
17+
cdef nvrtcResult _nvrtcVersion(int* major, int* minor) except ?NVRTC_ERROR_INVALID_INPUT nogil
1818
{{endif}}
1919

2020
{{if 'nvrtcGetNumSupportedArchs' in found_functions}}
2121

22-
cdef nvrtcResult _nvrtcGetNumSupportedArchs(int* numArchs) nogil except ?NVRTC_ERROR_INVALID_INPUT
22+
cdef nvrtcResult _nvrtcGetNumSupportedArchs(int* numArchs) except ?NVRTC_ERROR_INVALID_INPUT nogil
2323
{{endif}}
2424

2525
{{if 'nvrtcGetSupportedArchs' in found_functions}}
2626

27-
cdef nvrtcResult _nvrtcGetSupportedArchs(int* supportedArchs) nogil except ?NVRTC_ERROR_INVALID_INPUT
27+
cdef nvrtcResult _nvrtcGetSupportedArchs(int* supportedArchs) except ?NVRTC_ERROR_INVALID_INPUT nogil
2828
{{endif}}
2929

3030
{{if 'nvrtcCreateProgram' in found_functions}}
3131

32-
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
32+
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
3333
{{endif}}
3434

3535
{{if 'nvrtcDestroyProgram' in found_functions}}
3636

37-
cdef nvrtcResult _nvrtcDestroyProgram(nvrtcProgram* prog) nogil except ?NVRTC_ERROR_INVALID_INPUT
37+
cdef nvrtcResult _nvrtcDestroyProgram(nvrtcProgram* prog) except ?NVRTC_ERROR_INVALID_INPUT nogil
3838
{{endif}}
3939

4040
{{if 'nvrtcCompileProgram' in found_functions}}
4141

42-
cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char** options) nogil except ?NVRTC_ERROR_INVALID_INPUT
42+
cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char** options) except ?NVRTC_ERROR_INVALID_INPUT nogil
4343
{{endif}}
4444

4545
{{if 'nvrtcGetPTXSize' in found_functions}}
4646

47-
cdef nvrtcResult _nvrtcGetPTXSize(nvrtcProgram prog, size_t* ptxSizeRet) nogil except ?NVRTC_ERROR_INVALID_INPUT
47+
cdef nvrtcResult _nvrtcGetPTXSize(nvrtcProgram prog, size_t* ptxSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil
4848
{{endif}}
4949

5050
{{if 'nvrtcGetPTX' in found_functions}}
5151

52-
cdef nvrtcResult _nvrtcGetPTX(nvrtcProgram prog, char* ptx) nogil except ?NVRTC_ERROR_INVALID_INPUT
52+
cdef nvrtcResult _nvrtcGetPTX(nvrtcProgram prog, char* ptx) except ?NVRTC_ERROR_INVALID_INPUT nogil
5353
{{endif}}
5454

5555
{{if 'nvrtcGetCUBINSize' in found_functions}}
5656

57-
cdef nvrtcResult _nvrtcGetCUBINSize(nvrtcProgram prog, size_t* cubinSizeRet) nogil except ?NVRTC_ERROR_INVALID_INPUT
57+
cdef nvrtcResult _nvrtcGetCUBINSize(nvrtcProgram prog, size_t* cubinSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil
5858
{{endif}}
5959

6060
{{if 'nvrtcGetCUBIN' in found_functions}}
6161

62-
cdef nvrtcResult _nvrtcGetCUBIN(nvrtcProgram prog, char* cubin) nogil except ?NVRTC_ERROR_INVALID_INPUT
62+
cdef nvrtcResult _nvrtcGetCUBIN(nvrtcProgram prog, char* cubin) except ?NVRTC_ERROR_INVALID_INPUT nogil
6363
{{endif}}
6464

6565
{{if 'nvrtcGetNVVMSize' in found_functions}}
6666

67-
cdef nvrtcResult _nvrtcGetNVVMSize(nvrtcProgram prog, size_t* nvvmSizeRet) nogil except ?NVRTC_ERROR_INVALID_INPUT
67+
cdef nvrtcResult _nvrtcGetNVVMSize(nvrtcProgram prog, size_t* nvvmSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil
6868
{{endif}}
6969

7070
{{if 'nvrtcGetNVVM' in found_functions}}
7171

72-
cdef nvrtcResult _nvrtcGetNVVM(nvrtcProgram prog, char* nvvm) nogil except ?NVRTC_ERROR_INVALID_INPUT
72+
cdef nvrtcResult _nvrtcGetNVVM(nvrtcProgram prog, char* nvvm) except ?NVRTC_ERROR_INVALID_INPUT nogil
7373
{{endif}}
7474

7575
{{if 'nvrtcGetLTOIRSize' in found_functions}}
7676

77-
cdef nvrtcResult _nvrtcGetLTOIRSize(nvrtcProgram prog, size_t* LTOIRSizeRet) nogil except ?NVRTC_ERROR_INVALID_INPUT
77+
cdef nvrtcResult _nvrtcGetLTOIRSize(nvrtcProgram prog, size_t* LTOIRSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil
7878
{{endif}}
7979

8080
{{if 'nvrtcGetLTOIR' in found_functions}}
8181

82-
cdef nvrtcResult _nvrtcGetLTOIR(nvrtcProgram prog, char* LTOIR) nogil except ?NVRTC_ERROR_INVALID_INPUT
82+
cdef nvrtcResult _nvrtcGetLTOIR(nvrtcProgram prog, char* LTOIR) except ?NVRTC_ERROR_INVALID_INPUT nogil
8383
{{endif}}
8484

8585
{{if 'nvrtcGetOptiXIRSize' in found_functions}}
8686

87-
cdef nvrtcResult _nvrtcGetOptiXIRSize(nvrtcProgram prog, size_t* optixirSizeRet) nogil except ?NVRTC_ERROR_INVALID_INPUT
87+
cdef nvrtcResult _nvrtcGetOptiXIRSize(nvrtcProgram prog, size_t* optixirSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil
8888
{{endif}}
8989

9090
{{if 'nvrtcGetOptiXIR' in found_functions}}
9191

92-
cdef nvrtcResult _nvrtcGetOptiXIR(nvrtcProgram prog, char* optixir) nogil except ?NVRTC_ERROR_INVALID_INPUT
92+
cdef nvrtcResult _nvrtcGetOptiXIR(nvrtcProgram prog, char* optixir) except ?NVRTC_ERROR_INVALID_INPUT nogil
9393
{{endif}}
9494

9595
{{if 'nvrtcGetProgramLogSize' in found_functions}}
9696

97-
cdef nvrtcResult _nvrtcGetProgramLogSize(nvrtcProgram prog, size_t* logSizeRet) nogil except ?NVRTC_ERROR_INVALID_INPUT
97+
cdef nvrtcResult _nvrtcGetProgramLogSize(nvrtcProgram prog, size_t* logSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil
9898
{{endif}}
9999

100100
{{if 'nvrtcGetProgramLog' in found_functions}}
101101

102-
cdef nvrtcResult _nvrtcGetProgramLog(nvrtcProgram prog, char* log) nogil except ?NVRTC_ERROR_INVALID_INPUT
102+
cdef nvrtcResult _nvrtcGetProgramLog(nvrtcProgram prog, char* log) except ?NVRTC_ERROR_INVALID_INPUT nogil
103103
{{endif}}
104104

105105
{{if 'nvrtcAddNameExpression' in found_functions}}
106106

107-
cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* name_expression) nogil except ?NVRTC_ERROR_INVALID_INPUT
107+
cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* name_expression) except ?NVRTC_ERROR_INVALID_INPUT nogil
108108
{{endif}}
109109

110110
{{if 'nvrtcGetLoweredName' in found_functions}}
111111

112-
cdef nvrtcResult _nvrtcGetLoweredName(nvrtcProgram prog, const char* name_expression, const char** lowered_name) nogil except ?NVRTC_ERROR_INVALID_INPUT
112+
cdef nvrtcResult _nvrtcGetLoweredName(nvrtcProgram prog, const char* name_expression, const char** lowered_name) except ?NVRTC_ERROR_INVALID_INPUT nogil
113113
{{endif}}
114114

cuda/_cuda/cnvrtc.pyx.in

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)