Skip to content

Commit 2d7c8dd

Browse files
committed
Make const match
1 parent be5d972 commit 2d7c8dd

5 files changed

Lines changed: 58 additions & 57 deletions

File tree

cuda_bindings/cuda/bindings/_internal/nvrtc.pxd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ cdef const char* _nvrtcGetErrorString(nvrtcResult result) except?NULL nogil
1515
cdef nvrtcResult _nvrtcVersion(int* major, int* minor) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
1616
cdef nvrtcResult _nvrtcGetNumSupportedArchs(int* numArchs) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
1717
cdef nvrtcResult _nvrtcGetSupportedArchs(int* supportedArchs) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
18-
cdef nvrtcResult _nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char* const* headers, const char* const* includeNames) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
18+
cdef nvrtcResult _nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char** headers, const char** includeNames) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
1919
cdef nvrtcResult _nvrtcDestroyProgram(nvrtcProgram* prog) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
20-
cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char* const* options) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
20+
cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char** options) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
2121
cdef nvrtcResult _nvrtcGetPTXSize(nvrtcProgram prog, size_t* ptxSizeRet) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
2222
cdef nvrtcResult _nvrtcGetPTX(nvrtcProgram prog, char* ptx) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
2323
cdef nvrtcResult _nvrtcGetCUBINSize(nvrtcProgram prog, size_t* cubinSizeRet) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
@@ -28,12 +28,12 @@ cdef nvrtcResult _nvrtcGetOptiXIRSize(nvrtcProgram prog, size_t* optixirSizeRet)
2828
cdef nvrtcResult _nvrtcGetOptiXIR(nvrtcProgram prog, char* optixir) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
2929
cdef nvrtcResult _nvrtcGetProgramLogSize(nvrtcProgram prog, size_t* logSizeRet) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
3030
cdef nvrtcResult _nvrtcGetProgramLog(nvrtcProgram prog, char* log) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
31-
cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* const name_expression) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
32-
cdef nvrtcResult _nvrtcGetLoweredName(nvrtcProgram prog, const char* const name_expression, const char** lowered_name) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
31+
cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* name_expression) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
32+
cdef nvrtcResult _nvrtcGetLoweredName(nvrtcProgram prog, const char* name_expression, const char** lowered_name) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
3333
cdef nvrtcResult _nvrtcGetPCHHeapSize(size_t* ret) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
3434
cdef nvrtcResult _nvrtcSetPCHHeapSize(size_t size) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
3535
cdef nvrtcResult _nvrtcGetPCHCreateStatus(nvrtcProgram prog) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
3636
cdef nvrtcResult _nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
37-
cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void * callback, void* payload) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
37+
cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void * callback[], void* payload) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
3838
cdef nvrtcResult _nvrtcGetTileIRSize(nvrtcProgram prog, size_t* TileIRSizeRet) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
3939
cdef nvrtcResult _nvrtcGetTileIR(nvrtcProgram prog, char* TileIR) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil

cuda_bindings/cuda/bindings/_internal/nvrtc_linux.pyx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -439,13 +439,13 @@ cdef nvrtcResult _nvrtcGetSupportedArchs(int* supportedArchs) except?<nvrtcResul
439439
supportedArchs)
440440

441441

442-
cdef nvrtcResult _nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char* const* headers, const char* const* includeNames) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil:
442+
cdef nvrtcResult _nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char** headers, const char** includeNames) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil:
443443
global __nvrtcCreateProgram
444444
_check_or_init_nvrtc()
445445
if __nvrtcCreateProgram == NULL:
446446
with gil:
447447
raise FunctionNotFoundError("function nvrtcCreateProgram is not found")
448-
return (<nvrtcResult (*)(nvrtcProgram*, const char*, const char*, int, const char* const*, const char* const*) noexcept nogil>__nvrtcCreateProgram)(
448+
return (<nvrtcResult (*)(nvrtcProgram*, const char*, const char*, int, const char**, const char**) noexcept nogil>__nvrtcCreateProgram)(
449449
prog, src, name, numHeaders, headers, includeNames)
450450

451451

@@ -459,13 +459,13 @@ cdef nvrtcResult _nvrtcDestroyProgram(nvrtcProgram* prog) except?<nvrtcResult>_N
459459
prog)
460460

461461

462-
cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char* const* options) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil:
462+
cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char** options) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil:
463463
global __nvrtcCompileProgram
464464
_check_or_init_nvrtc()
465465
if __nvrtcCompileProgram == NULL:
466466
with gil:
467467
raise FunctionNotFoundError("function nvrtcCompileProgram is not found")
468-
return (<nvrtcResult (*)(nvrtcProgram, int, const char* const*) noexcept nogil>__nvrtcCompileProgram)(
468+
return (<nvrtcResult (*)(nvrtcProgram, int, const char**) noexcept nogil>__nvrtcCompileProgram)(
469469
prog, numOptions, options)
470470

471471

@@ -569,23 +569,23 @@ cdef nvrtcResult _nvrtcGetProgramLog(nvrtcProgram prog, char* log) except?<nvrtc
569569
prog, log)
570570

571571

572-
cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* const name_expression) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil:
572+
cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* name_expression) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil:
573573
global __nvrtcAddNameExpression
574574
_check_or_init_nvrtc()
575575
if __nvrtcAddNameExpression == NULL:
576576
with gil:
577577
raise FunctionNotFoundError("function nvrtcAddNameExpression is not found")
578-
return (<nvrtcResult (*)(nvrtcProgram, const char* const) noexcept nogil>__nvrtcAddNameExpression)(
578+
return (<nvrtcResult (*)(nvrtcProgram, const char*) noexcept nogil>__nvrtcAddNameExpression)(
579579
prog, name_expression)
580580

581581

582-
cdef nvrtcResult _nvrtcGetLoweredName(nvrtcProgram prog, const char* const name_expression, const char** lowered_name) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil:
582+
cdef nvrtcResult _nvrtcGetLoweredName(nvrtcProgram prog, const char* name_expression, const char** lowered_name) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil:
583583
global __nvrtcGetLoweredName
584584
_check_or_init_nvrtc()
585585
if __nvrtcGetLoweredName == NULL:
586586
with gil:
587587
raise FunctionNotFoundError("function nvrtcGetLoweredName is not found")
588-
return (<nvrtcResult (*)(nvrtcProgram, const char* const, const char**) noexcept nogil>__nvrtcGetLoweredName)(
588+
return (<nvrtcResult (*)(nvrtcProgram, const char*, const char**) noexcept nogil>__nvrtcGetLoweredName)(
589589
prog, name_expression, lowered_name)
590590

591591

@@ -629,13 +629,13 @@ cdef nvrtcResult _nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) e
629629
prog, size)
630630

631631

632-
cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void * callback, void* payload) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil:
632+
cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void * callback[], void* payload) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil:
633633
global __nvrtcSetFlowCallback
634634
_check_or_init_nvrtc()
635635
if __nvrtcSetFlowCallback == NULL:
636636
with gil:
637637
raise FunctionNotFoundError("function nvrtcSetFlowCallback is not found")
638-
return (<nvrtcResult (*)(nvrtcProgram, void *, void*) noexcept nogil>__nvrtcSetFlowCallback)(
638+
return (<nvrtcResult (*)(nvrtcProgram, void **, void*) noexcept nogil>__nvrtcSetFlowCallback)(
639639
prog, callback, payload)
640640

641641

cuda_bindings/cuda/bindings/_internal/nvrtc_windows.pyx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -349,13 +349,13 @@ cdef nvrtcResult _nvrtcGetSupportedArchs(int* supportedArchs) except?<nvrtcResul
349349
supportedArchs)
350350

351351

352-
cdef nvrtcResult _nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char* const* headers, const char* const* includeNames) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil:
352+
cdef nvrtcResult _nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char** headers, const char** includeNames) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil:
353353
global __nvrtcCreateProgram
354354
_check_or_init_nvrtc()
355355
if __nvrtcCreateProgram == NULL:
356356
with gil:
357357
raise FunctionNotFoundError("function nvrtcCreateProgram is not found")
358-
return (<nvrtcResult (*)(nvrtcProgram*, const char*, const char*, int, const char* const*, const char* const*) noexcept nogil>__nvrtcCreateProgram)(
358+
return (<nvrtcResult (*)(nvrtcProgram*, const char*, const char*, int, const char**, const char**) noexcept nogil>__nvrtcCreateProgram)(
359359
prog, src, name, numHeaders, headers, includeNames)
360360

361361

@@ -369,13 +369,13 @@ cdef nvrtcResult _nvrtcDestroyProgram(nvrtcProgram* prog) except?<nvrtcResult>_N
369369
prog)
370370

371371

372-
cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char* const* options) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil:
372+
cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char** options) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil:
373373
global __nvrtcCompileProgram
374374
_check_or_init_nvrtc()
375375
if __nvrtcCompileProgram == NULL:
376376
with gil:
377377
raise FunctionNotFoundError("function nvrtcCompileProgram is not found")
378-
return (<nvrtcResult (*)(nvrtcProgram, int, const char* const*) noexcept nogil>__nvrtcCompileProgram)(
378+
return (<nvrtcResult (*)(nvrtcProgram, int, const char**) noexcept nogil>__nvrtcCompileProgram)(
379379
prog, numOptions, options)
380380

381381

@@ -479,23 +479,23 @@ cdef nvrtcResult _nvrtcGetProgramLog(nvrtcProgram prog, char* log) except?<nvrtc
479479
prog, log)
480480

481481

482-
cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* const name_expression) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil:
482+
cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* name_expression) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil:
483483
global __nvrtcAddNameExpression
484484
_check_or_init_nvrtc()
485485
if __nvrtcAddNameExpression == NULL:
486486
with gil:
487487
raise FunctionNotFoundError("function nvrtcAddNameExpression is not found")
488-
return (<nvrtcResult (*)(nvrtcProgram, const char* const) noexcept nogil>__nvrtcAddNameExpression)(
488+
return (<nvrtcResult (*)(nvrtcProgram, const char*) noexcept nogil>__nvrtcAddNameExpression)(
489489
prog, name_expression)
490490

491491

492-
cdef nvrtcResult _nvrtcGetLoweredName(nvrtcProgram prog, const char* const name_expression, const char** lowered_name) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil:
492+
cdef nvrtcResult _nvrtcGetLoweredName(nvrtcProgram prog, const char* name_expression, const char** lowered_name) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil:
493493
global __nvrtcGetLoweredName
494494
_check_or_init_nvrtc()
495495
if __nvrtcGetLoweredName == NULL:
496496
with gil:
497497
raise FunctionNotFoundError("function nvrtcGetLoweredName is not found")
498-
return (<nvrtcResult (*)(nvrtcProgram, const char* const, const char**) noexcept nogil>__nvrtcGetLoweredName)(
498+
return (<nvrtcResult (*)(nvrtcProgram, const char*, const char**) noexcept nogil>__nvrtcGetLoweredName)(
499499
prog, name_expression, lowered_name)
500500

501501

@@ -539,13 +539,13 @@ cdef nvrtcResult _nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) e
539539
prog, size)
540540

541541

542-
cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void * callback, void* payload) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil:
542+
cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void * callback[], void* payload) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil:
543543
global __nvrtcSetFlowCallback
544544
_check_or_init_nvrtc()
545545
if __nvrtcSetFlowCallback == NULL:
546546
with gil:
547547
raise FunctionNotFoundError("function nvrtcSetFlowCallback is not found")
548-
return (<nvrtcResult (*)(nvrtcProgram, void *, void*) noexcept nogil>__nvrtcSetFlowCallback)(
548+
return (<nvrtcResult (*)(nvrtcProgram, void **, void*) noexcept nogil>__nvrtcSetFlowCallback)(
549549
prog, callback, payload)
550550

551551

cuda_bindings/cuda/bindings/cynvrtc.pxd

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,33 @@ from libc.stdint cimport uint32_t, uint64_t
88

99

1010
# ENUMS
11-
cdef extern from '<nvrtc.h>':
12-
ctypedef enum nvrtcResult:
13-
NVRTC_SUCCESS
14-
NVRTC_ERROR_OUT_OF_MEMORY
15-
NVRTC_ERROR_PROGRAM_CREATION_FAILURE
16-
NVRTC_ERROR_INVALID_INPUT
17-
NVRTC_ERROR_INVALID_PROGRAM
18-
NVRTC_ERROR_INVALID_OPTION
19-
NVRTC_ERROR_COMPILATION
20-
NVRTC_ERROR_BUILTIN_OPERATION_FAILURE
21-
NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION
22-
NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION
23-
NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID
24-
NVRTC_ERROR_INTERNAL_ERROR
25-
NVRTC_ERROR_TIME_FILE_WRITE_FAILED
26-
NVRTC_ERROR_NO_PCH_CREATE_ATTEMPTED
27-
NVRTC_ERROR_PCH_CREATE_HEAP_EXHAUSTED
28-
NVRTC_ERROR_PCH_CREATE
29-
NVRTC_ERROR_CANCELLED
30-
NVRTC_ERROR_TIME_TRACE_FILE_WRITE_FAILED
11+
ctypedef enum nvrtcResult "nvrtcResult":
12+
NVRTC_SUCCESS "NVRTC_SUCCESS" = 0
13+
NVRTC_ERROR_OUT_OF_MEMORY "NVRTC_ERROR_OUT_OF_MEMORY" = 1
14+
NVRTC_ERROR_PROGRAM_CREATION_FAILURE "NVRTC_ERROR_PROGRAM_CREATION_FAILURE" = 2
15+
NVRTC_ERROR_INVALID_INPUT "NVRTC_ERROR_INVALID_INPUT" = 3
16+
NVRTC_ERROR_INVALID_PROGRAM "NVRTC_ERROR_INVALID_PROGRAM" = 4
17+
NVRTC_ERROR_INVALID_OPTION "NVRTC_ERROR_INVALID_OPTION" = 5
18+
NVRTC_ERROR_COMPILATION "NVRTC_ERROR_COMPILATION" = 6
19+
NVRTC_ERROR_BUILTIN_OPERATION_FAILURE "NVRTC_ERROR_BUILTIN_OPERATION_FAILURE" = 7
20+
NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION "NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION" = 8
21+
NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION "NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION" = 9
22+
NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID "NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID" = 10
23+
NVRTC_ERROR_INTERNAL_ERROR "NVRTC_ERROR_INTERNAL_ERROR" = 11
24+
NVRTC_ERROR_TIME_FILE_WRITE_FAILED "NVRTC_ERROR_TIME_FILE_WRITE_FAILED" = 12
25+
NVRTC_ERROR_NO_PCH_CREATE_ATTEMPTED "NVRTC_ERROR_NO_PCH_CREATE_ATTEMPTED" = 13
26+
NVRTC_ERROR_PCH_CREATE_HEAP_EXHAUSTED "NVRTC_ERROR_PCH_CREATE_HEAP_EXHAUSTED" = 14
27+
NVRTC_ERROR_PCH_CREATE "NVRTC_ERROR_PCH_CREATE" = 15
28+
NVRTC_ERROR_CANCELLED "NVRTC_ERROR_CANCELLED" = 16
29+
NVRTC_ERROR_TIME_TRACE_FILE_WRITE_FAILED "NVRTC_ERROR_TIME_TRACE_FILE_WRITE_FAILED" = 17
3130
cdef enum: _NVRTCRESULT_INTERNAL_LOADING_ERROR = -42
3231

3332

3433
# TYPES
35-
cdef extern from '<nvrtc.h>':
36-
ctypedef void* nvrtcProgram 'nvrtcProgram'
34+
cdef extern from 'nvrtc.h':
35+
ctypedef struct _nvrtcProgram:
36+
pass
37+
ctypedef _nvrtcProgram* nvrtcProgram 'nvrtcProgram'
3738

3839

3940

@@ -42,9 +43,9 @@ cdef const char* nvrtcGetErrorString(nvrtcResult result) except?NULL nogil
4243
cdef nvrtcResult nvrtcVersion(int* major, int* minor) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
4344
cdef nvrtcResult nvrtcGetNumSupportedArchs(int* numArchs) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
4445
cdef nvrtcResult nvrtcGetSupportedArchs(int* supportedArchs) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
45-
cdef nvrtcResult nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char* const* headers, const char* const* includeNames) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
46+
cdef nvrtcResult nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char** headers, const char** includeNames) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
4647
cdef nvrtcResult nvrtcDestroyProgram(nvrtcProgram* prog) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
47-
cdef nvrtcResult nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char* const* options) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
48+
cdef nvrtcResult nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char** options) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
4849
cdef nvrtcResult nvrtcGetPTXSize(nvrtcProgram prog, size_t* ptxSizeRet) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
4950
cdef nvrtcResult nvrtcGetPTX(nvrtcProgram prog, char* ptx) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
5051
cdef nvrtcResult nvrtcGetCUBINSize(nvrtcProgram prog, size_t* cubinSizeRet) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
@@ -55,12 +56,12 @@ cdef nvrtcResult nvrtcGetOptiXIRSize(nvrtcProgram prog, size_t* optixirSizeRet)
5556
cdef nvrtcResult nvrtcGetOptiXIR(nvrtcProgram prog, char* optixir) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
5657
cdef nvrtcResult nvrtcGetProgramLogSize(nvrtcProgram prog, size_t* logSizeRet) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
5758
cdef nvrtcResult nvrtcGetProgramLog(nvrtcProgram prog, char* log) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
58-
cdef nvrtcResult nvrtcAddNameExpression(nvrtcProgram prog, const char* const name_expression) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
59-
cdef nvrtcResult nvrtcGetLoweredName(nvrtcProgram prog, const char* const name_expression, const char** lowered_name) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
59+
cdef nvrtcResult nvrtcAddNameExpression(nvrtcProgram prog, const char* name_expression) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
60+
cdef nvrtcResult nvrtcGetLoweredName(nvrtcProgram prog, const char* name_expression, const char** lowered_name) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
6061
cdef nvrtcResult nvrtcGetPCHHeapSize(size_t* ret) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
6162
cdef nvrtcResult nvrtcSetPCHHeapSize(size_t size) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
6263
cdef nvrtcResult nvrtcGetPCHCreateStatus(nvrtcProgram prog) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
6364
cdef nvrtcResult nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
64-
cdef nvrtcResult nvrtcSetFlowCallback(nvrtcProgram prog, void * callback, void* payload) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
65+
cdef nvrtcResult nvrtcSetFlowCallback(nvrtcProgram prog, void * callback[], void* payload) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
6566
cdef nvrtcResult nvrtcGetTileIRSize(nvrtcProgram prog, size_t* TileIRSizeRet) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil
6667
cdef nvrtcResult nvrtcGetTileIR(nvrtcProgram prog, char* TileIR) except?<nvrtcResult>_NVRTCRESULT_INTERNAL_LOADING_ERROR nogil

0 commit comments

Comments
 (0)