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