cuda.bindings._v2.nvrtc.get_pch_create_status#
- cuda.bindings._v2.nvrtc.get_pch_create_status(intptr_t prog) int#
returns the PCH creation status.
NVRTC_SUCCESS indicates that the PCH was successfully created. NVRTC_ERROR_NO_PCH_CREATE_ATTEMPTED indicates that no PCH creation was attempted, either because PCH functionality was not requested during the preceding nvrtcCompileProgram call, or automatic PCH processing was requested, and compiler chose not to create a PCH file. NVRTC_ERROR_PCH_CREATE_HEAP_EXHAUSTED indicates that a PCH file could potentially have been created, but the compiler ran out space in the PCH heap. In this scenario, the
get_pch_heap_size_required()can be used to query the required heap size, the heap can be reallocated for this size withset_pch_heap_size()and PCH creation may be reattempted again invokingcompile_program()with a new NVRTC program instance. NVRTC_ERROR_PCH_CREATE indicates that an error condition prevented the PCH file from being created.- Parameters:
prog (intptr_t) – CUDA Runtime Compilation program.
See also
nvrtcGetPCHCreateStatus