|
2 | 2 | # SPDX-License-Identifier: Apache-2.0 |
3 | 3 |
|
4 | 4 | # This code was automatically generated with version 13.3.0. Do not modify it directly. |
5 | | -# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=5d36f91a9f04660caaf0a8a7afa443d43899bc6eb70e61a26415485d9a39475a |
| 5 | +# CYTHON-BINDINGS-GENERATED-DO-NOT-MODIFY-THIS-FILE: format=1; content-sha256=9c30b7a3d79561c6721e7df7b758eaee6afdd2763d9692ff638815abb64417e0 |
6 | 6 | from typing import Any, Optional |
7 | 7 | import cython |
8 | 8 | import ctypes |
@@ -141,44 +141,48 @@ cdef class nvrtcProgram: |
141 | 141 | def getPtr(self): |
142 | 142 | return <void_ptr>self._pvt_ptr |
143 | 143 |
|
144 | | -cdef class anon_struct0: |
| 144 | +cdef class nvrtcBundledHeadersInfo: |
145 | 145 | """ |
| 146 | + Structure containing information about bundled headers. |
| 147 | +
|
146 | 148 | Attributes |
147 | 149 | ---------- |
148 | 150 |
|
149 | 151 | available : int |
150 | | -
|
| 152 | + Non-zero if bundled headers are available |
151 | 153 |
|
152 | 154 |
|
153 | 155 | compressedSize : size_t |
154 | | -
|
| 156 | + Size of compressed archive in bytes |
155 | 157 |
|
156 | 158 |
|
157 | 159 | uncompressedSize : size_t |
158 | | -
|
| 160 | + Estimated size when extracted in bytes |
159 | 161 |
|
160 | 162 |
|
161 | 163 | cudaVersionMajor : int |
162 | | -
|
| 164 | + CUDA major version of bundled headers |
163 | 165 |
|
164 | 166 |
|
165 | 167 | cudaVersionMinor : int |
166 | | -
|
| 168 | + CUDA minor version of bundled headers |
167 | 169 |
|
168 | 170 |
|
169 | 171 | numFiles : unsigned int |
170 | | -
|
| 172 | + Number of header files in the bundle |
171 | 173 |
|
172 | 174 |
|
173 | 175 | Methods |
174 | 176 | ------- |
175 | 177 | getPtr() |
176 | 178 | Get memory address of class instance |
177 | 179 | """ |
178 | | - def __cinit__(self, void_ptr _ptr): |
179 | | - self._pvt_ptr = <cynvrtc.nvrtcBundledHeadersInfo *>_ptr |
180 | | - |
181 | | - def __init__(self, void_ptr _ptr): |
| 180 | + def __cinit__(self, void_ptr _ptr = 0): |
| 181 | + if _ptr == 0: |
| 182 | + self._pvt_ptr = &self._pvt_val |
| 183 | + else: |
| 184 | + self._pvt_ptr = <cynvrtc.nvrtcBundledHeadersInfo *>_ptr |
| 185 | + def __init__(self, void_ptr _ptr = 0): |
182 | 186 | pass |
183 | 187 | def __dealloc__(self): |
184 | 188 | pass |
@@ -275,49 +279,6 @@ cdef class anon_struct0: |
275 | 279 | self._pvt_ptr[0].numFiles = numFiles |
276 | 280 |
|
277 | 281 |
|
278 | | -cdef class nvrtcBundledHeadersInfo(anon_struct0): |
279 | | - """ |
280 | | - Attributes |
281 | | - ---------- |
282 | | -
|
283 | | - available : int |
284 | | -
|
285 | | -
|
286 | | -
|
287 | | - compressedSize : size_t |
288 | | -
|
289 | | -
|
290 | | -
|
291 | | - uncompressedSize : size_t |
292 | | -
|
293 | | -
|
294 | | -
|
295 | | - cudaVersionMajor : int |
296 | | -
|
297 | | -
|
298 | | -
|
299 | | - cudaVersionMinor : int |
300 | | -
|
301 | | -
|
302 | | -
|
303 | | - numFiles : unsigned int |
304 | | -
|
305 | | -
|
306 | | -
|
307 | | - Methods |
308 | | - ------- |
309 | | - getPtr() |
310 | | - Get memory address of class instance |
311 | | - """ |
312 | | - def __cinit__(self, void_ptr _ptr = 0): |
313 | | - if _ptr == 0: |
314 | | - self._pvt_ptr = <cynvrtc.nvrtcBundledHeadersInfo *>&self._pvt_val |
315 | | - else: |
316 | | - self._pvt_ptr = <cynvrtc.nvrtcBundledHeadersInfo *>_ptr |
317 | | - |
318 | | - def __init__(self, void_ptr _ptr = 0): |
319 | | - pass |
320 | | - |
321 | 282 | @cython.embedsignature(True) |
322 | 283 | def nvrtcGetErrorString(result not None : nvrtcResult): |
323 | 284 | """ nvrtcGetErrorString is a helper function that returns a string describing the given :py:obj:`~.nvrtcResult` code, e.g., NVRTC_SUCCESS to `"NVRTC_SUCCESS"`. For unrecognized enumeration values, it returns `"NVRTC_ERROR unknown"`. |
|
0 commit comments