|
1 | 1 | # SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. |
| 2 | +# |
2 | 3 | # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE |
| 4 | +# |
| 5 | +# This code was automatically generated with version 12.9.0, generator version 0.3.1.dev1603+gcfe73f973. Do not modify it directly. |
3 | 6 |
|
4 | | -# This code was automatically generated with version 12.9.0, generator version 49a8141. Do not modify it directly. |
5 | | -from cuda.bindings.cynvrtc cimport * |
| 7 | +from ..cynvrtc cimport * |
6 | 8 |
|
7 | | -{{if 'nvrtcGetErrorString' in found_functions}} |
| 9 | +############################################################################### |
| 10 | +# Wrapper functions |
| 11 | +############################################################################### |
8 | 12 |
|
9 | 13 | cdef const char* _nvrtcGetErrorString(nvrtcResult result) except ?NULL nogil |
10 | | -{{endif}} |
11 | | - |
12 | | -{{if 'nvrtcVersion' in found_functions}} |
13 | 14 |
|
14 | 15 | cdef nvrtcResult _nvrtcVersion(int* major, int* minor) except ?NVRTC_ERROR_INVALID_INPUT nogil |
15 | | -{{endif}} |
16 | | - |
17 | | -{{if 'nvrtcGetNumSupportedArchs' in found_functions}} |
18 | 16 |
|
19 | 17 | cdef nvrtcResult _nvrtcGetNumSupportedArchs(int* numArchs) except ?NVRTC_ERROR_INVALID_INPUT nogil |
20 | | -{{endif}} |
21 | | - |
22 | | -{{if 'nvrtcGetSupportedArchs' in found_functions}} |
23 | 18 |
|
24 | 19 | cdef nvrtcResult _nvrtcGetSupportedArchs(int* supportedArchs) except ?NVRTC_ERROR_INVALID_INPUT nogil |
25 | | -{{endif}} |
26 | | - |
27 | | -{{if 'nvrtcCreateProgram' in found_functions}} |
28 | 20 |
|
29 | 21 | 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 |
30 | | -{{endif}} |
31 | | - |
32 | | -{{if 'nvrtcDestroyProgram' in found_functions}} |
33 | 22 |
|
34 | 23 | cdef nvrtcResult _nvrtcDestroyProgram(nvrtcProgram* prog) except ?NVRTC_ERROR_INVALID_INPUT nogil |
35 | | -{{endif}} |
36 | | - |
37 | | -{{if 'nvrtcCompileProgram' in found_functions}} |
38 | 24 |
|
39 | 25 | cdef nvrtcResult _nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char** options) except ?NVRTC_ERROR_INVALID_INPUT nogil |
40 | | -{{endif}} |
41 | | - |
42 | | -{{if 'nvrtcGetPTXSize' in found_functions}} |
43 | 26 |
|
44 | 27 | cdef nvrtcResult _nvrtcGetPTXSize(nvrtcProgram prog, size_t* ptxSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil |
45 | | -{{endif}} |
46 | | - |
47 | | -{{if 'nvrtcGetPTX' in found_functions}} |
48 | 28 |
|
49 | 29 | cdef nvrtcResult _nvrtcGetPTX(nvrtcProgram prog, char* ptx) except ?NVRTC_ERROR_INVALID_INPUT nogil |
50 | | -{{endif}} |
51 | | - |
52 | | -{{if 'nvrtcGetCUBINSize' in found_functions}} |
53 | 30 |
|
54 | 31 | cdef nvrtcResult _nvrtcGetCUBINSize(nvrtcProgram prog, size_t* cubinSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil |
55 | | -{{endif}} |
56 | | - |
57 | | -{{if 'nvrtcGetCUBIN' in found_functions}} |
58 | 32 |
|
59 | 33 | cdef nvrtcResult _nvrtcGetCUBIN(nvrtcProgram prog, char* cubin) except ?NVRTC_ERROR_INVALID_INPUT nogil |
60 | | -{{endif}} |
61 | | - |
62 | | -{{if 'nvrtcGetNVVMSize' in found_functions}} |
63 | | - |
64 | | -cdef nvrtcResult _nvrtcGetNVVMSize(nvrtcProgram prog, size_t* nvvmSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil |
65 | | -{{endif}} |
66 | | - |
67 | | -{{if 'nvrtcGetNVVM' in found_functions}} |
68 | | - |
69 | | -cdef nvrtcResult _nvrtcGetNVVM(nvrtcProgram prog, char* nvvm) except ?NVRTC_ERROR_INVALID_INPUT nogil |
70 | | -{{endif}} |
71 | | - |
72 | | -{{if 'nvrtcGetLTOIRSize' in found_functions}} |
73 | 34 |
|
74 | 35 | cdef nvrtcResult _nvrtcGetLTOIRSize(nvrtcProgram prog, size_t* LTOIRSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil |
75 | | -{{endif}} |
76 | | - |
77 | | -{{if 'nvrtcGetLTOIR' in found_functions}} |
78 | 36 |
|
79 | 37 | cdef nvrtcResult _nvrtcGetLTOIR(nvrtcProgram prog, char* LTOIR) except ?NVRTC_ERROR_INVALID_INPUT nogil |
80 | | -{{endif}} |
81 | | - |
82 | | -{{if 'nvrtcGetOptiXIRSize' in found_functions}} |
83 | 38 |
|
84 | 39 | cdef nvrtcResult _nvrtcGetOptiXIRSize(nvrtcProgram prog, size_t* optixirSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil |
85 | | -{{endif}} |
86 | | - |
87 | | -{{if 'nvrtcGetOptiXIR' in found_functions}} |
88 | 40 |
|
89 | 41 | cdef nvrtcResult _nvrtcGetOptiXIR(nvrtcProgram prog, char* optixir) except ?NVRTC_ERROR_INVALID_INPUT nogil |
90 | | -{{endif}} |
91 | | - |
92 | | -{{if 'nvrtcGetProgramLogSize' in found_functions}} |
93 | 42 |
|
94 | 43 | cdef nvrtcResult _nvrtcGetProgramLogSize(nvrtcProgram prog, size_t* logSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil |
95 | | -{{endif}} |
96 | | - |
97 | | -{{if 'nvrtcGetProgramLog' in found_functions}} |
98 | 44 |
|
99 | 45 | cdef nvrtcResult _nvrtcGetProgramLog(nvrtcProgram prog, char* log) except ?NVRTC_ERROR_INVALID_INPUT nogil |
100 | | -{{endif}} |
101 | | - |
102 | | -{{if 'nvrtcAddNameExpression' in found_functions}} |
103 | 46 |
|
104 | 47 | cdef nvrtcResult _nvrtcAddNameExpression(nvrtcProgram prog, const char* name_expression) except ?NVRTC_ERROR_INVALID_INPUT nogil |
105 | | -{{endif}} |
106 | | - |
107 | | -{{if 'nvrtcGetLoweredName' in found_functions}} |
108 | 48 |
|
109 | 49 | cdef nvrtcResult _nvrtcGetLoweredName(nvrtcProgram prog, const char* name_expression, const char** lowered_name) except ?NVRTC_ERROR_INVALID_INPUT nogil |
110 | | -{{endif}} |
111 | | - |
112 | | -{{if 'nvrtcGetPCHHeapSize' in found_functions}} |
113 | 50 |
|
114 | 51 | cdef nvrtcResult _nvrtcGetPCHHeapSize(size_t* ret) except ?NVRTC_ERROR_INVALID_INPUT nogil |
115 | | -{{endif}} |
116 | | - |
117 | | -{{if 'nvrtcSetPCHHeapSize' in found_functions}} |
118 | 52 |
|
119 | 53 | cdef nvrtcResult _nvrtcSetPCHHeapSize(size_t size) except ?NVRTC_ERROR_INVALID_INPUT nogil |
120 | | -{{endif}} |
121 | | - |
122 | | -{{if 'nvrtcGetPCHCreateStatus' in found_functions}} |
123 | 54 |
|
124 | 55 | cdef nvrtcResult _nvrtcGetPCHCreateStatus(nvrtcProgram prog) except ?NVRTC_ERROR_INVALID_INPUT nogil |
125 | | -{{endif}} |
126 | | - |
127 | | -{{if 'nvrtcGetPCHHeapSizeRequired' in found_functions}} |
128 | 56 |
|
129 | 57 | cdef nvrtcResult _nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) except ?NVRTC_ERROR_INVALID_INPUT nogil |
130 | | -{{endif}} |
131 | | - |
132 | | -{{if 'nvrtcSetFlowCallback' in found_functions}} |
133 | 58 |
|
134 | 59 | cdef nvrtcResult _nvrtcSetFlowCallback(nvrtcProgram prog, void* callback, void* payload) except ?NVRTC_ERROR_INVALID_INPUT nogil |
135 | | -{{endif}} |
136 | | - |
0 commit comments