Coverage for cuda / bindings / cynvrtc.pyx: 84%
49 statements
« prev ^ index » next coverage.py v7.13.0, created at 2025-12-10 01:19 +0000
« prev ^ index » next coverage.py v7.13.0, created at 2025-12-10 01:19 +0000
1# SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
4# This code was automatically generated with version 13.1.0. Do not modify it directly.
5cimport cuda.bindings._bindings.cynvrtc as cynvrtc
7cdef const char* nvrtcGetErrorString(nvrtcResult result) except ?NULL nogil:
8 return cynvrtc._nvrtcGetErrorString(result)
10cdef nvrtcResult nvrtcVersion(int* major, int* minor) except ?NVRTC_ERROR_INVALID_INPUT nogil:
11 return cynvrtc._nvrtcVersion(major, minor)
13cdef nvrtcResult nvrtcGetNumSupportedArchs(int* numArchs) except ?NVRTC_ERROR_INVALID_INPUT nogil:
14 return cynvrtc._nvrtcGetNumSupportedArchs(numArchs)
16cdef nvrtcResult nvrtcGetSupportedArchs(int* supportedArchs) except ?NVRTC_ERROR_INVALID_INPUT nogil:
17 return cynvrtc._nvrtcGetSupportedArchs(supportedArchs)
19cdef nvrtcResult nvrtcCreateProgram(nvrtcProgram* prog, const char* src, const char* name, int numHeaders, const char** headers, const char** includeNames) except ?NVRTC_ERROR_INVALID_INPUT nogil:
20 return cynvrtc._nvrtcCreateProgram(prog, src, name, numHeaders, headers, includeNames)
22cdef nvrtcResult nvrtcDestroyProgram(nvrtcProgram* prog) except ?NVRTC_ERROR_INVALID_INPUT nogil:
23 return cynvrtc._nvrtcDestroyProgram(prog)
25cdef nvrtcResult nvrtcCompileProgram(nvrtcProgram prog, int numOptions, const char** options) except ?NVRTC_ERROR_INVALID_INPUT nogil:
26 return cynvrtc._nvrtcCompileProgram(prog, numOptions, options)
28cdef nvrtcResult nvrtcGetPTXSize(nvrtcProgram prog, size_t* ptxSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil:
29 return cynvrtc._nvrtcGetPTXSize(prog, ptxSizeRet)
31cdef nvrtcResult nvrtcGetPTX(nvrtcProgram prog, char* ptx) except ?NVRTC_ERROR_INVALID_INPUT nogil:
32 return cynvrtc._nvrtcGetPTX(prog, ptx)
34cdef nvrtcResult nvrtcGetCUBINSize(nvrtcProgram prog, size_t* cubinSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil:
35 return cynvrtc._nvrtcGetCUBINSize(prog, cubinSizeRet)
37cdef nvrtcResult nvrtcGetCUBIN(nvrtcProgram prog, char* cubin) except ?NVRTC_ERROR_INVALID_INPUT nogil:
38 return cynvrtc._nvrtcGetCUBIN(prog, cubin)
40cdef nvrtcResult nvrtcGetLTOIRSize(nvrtcProgram prog, size_t* LTOIRSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil:
41 return cynvrtc._nvrtcGetLTOIRSize(prog, LTOIRSizeRet)
43cdef nvrtcResult nvrtcGetLTOIR(nvrtcProgram prog, char* LTOIR) except ?NVRTC_ERROR_INVALID_INPUT nogil:
44 return cynvrtc._nvrtcGetLTOIR(prog, LTOIR)
46cdef nvrtcResult nvrtcGetOptiXIRSize(nvrtcProgram prog, size_t* optixirSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil:
47 return cynvrtc._nvrtcGetOptiXIRSize(prog, optixirSizeRet)
49cdef nvrtcResult nvrtcGetOptiXIR(nvrtcProgram prog, char* optixir) except ?NVRTC_ERROR_INVALID_INPUT nogil:
50 return cynvrtc._nvrtcGetOptiXIR(prog, optixir)
52cdef nvrtcResult nvrtcGetProgramLogSize(nvrtcProgram prog, size_t* logSizeRet) except ?NVRTC_ERROR_INVALID_INPUT nogil:
53 return cynvrtc._nvrtcGetProgramLogSize(prog, logSizeRet)
55cdef nvrtcResult nvrtcGetProgramLog(nvrtcProgram prog, char* log) except ?NVRTC_ERROR_INVALID_INPUT nogil:
56 return cynvrtc._nvrtcGetProgramLog(prog, log)
58cdef nvrtcResult nvrtcAddNameExpression(nvrtcProgram prog, const char* name_expression) except ?NVRTC_ERROR_INVALID_INPUT nogil:
59 return cynvrtc._nvrtcAddNameExpression(prog, name_expression)
61cdef nvrtcResult nvrtcGetLoweredName(nvrtcProgram prog, const char* name_expression, const char** lowered_name) except ?NVRTC_ERROR_INVALID_INPUT nogil:
62 return cynvrtc._nvrtcGetLoweredName(prog, name_expression, lowered_name)
64cdef nvrtcResult nvrtcGetPCHHeapSize(size_t* ret) except ?NVRTC_ERROR_INVALID_INPUT nogil:
65 return cynvrtc._nvrtcGetPCHHeapSize(ret)
67cdef nvrtcResult nvrtcSetPCHHeapSize(size_t size) except ?NVRTC_ERROR_INVALID_INPUT nogil:
68 return cynvrtc._nvrtcSetPCHHeapSize(size)
70cdef nvrtcResult nvrtcGetPCHCreateStatus(nvrtcProgram prog) except ?NVRTC_ERROR_INVALID_INPUT nogil:
71 return cynvrtc._nvrtcGetPCHCreateStatus(prog)
73cdef nvrtcResult nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog, size_t* size) except ?NVRTC_ERROR_INVALID_INPUT nogil:
74 return cynvrtc._nvrtcGetPCHHeapSizeRequired(prog, size)
76cdef nvrtcResult nvrtcSetFlowCallback(nvrtcProgram prog, void* callback, void* payload) except ?NVRTC_ERROR_INVALID_INPUT nogil:
77 return cynvrtc._nvrtcSetFlowCallback(prog, callback, payload)