Skip to content

NVRTC#

This page shows how SCALE's NVRTC corresponds to each version of NVRTC.

85% (11 of 13 declarations available)

3.1. Error Handling#

 enum nvrtcResult
     NVRTC_SUCCESS = 0
     NVRTC_ERROR_OUT_OF_MEMORY = 1
     NVRTC_ERROR_PROGRAM_CREATION_FAILURE = 2
     NVRTC_ERROR_INVALID_INPUT = 3
     NVRTC_ERROR_INVALID_PROGRAM = 4
     NVRTC_ERROR_INVALID_OPTION = 5
     NVRTC_ERROR_COMPILATION = 6
     NVRTC_ERROR_BUILTIN_OPERATION_FAILURE = 7
     NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION = 8
     NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION = 9
     NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID = 10
     NVRTC_ERROR_INTERNAL_ERROR = 11
 const char* nvrtcGetErrorString(nvrtcResult result)

3.2. General Information Query#

 nvrtcResult nvrtcVersion(int* major , int* minor)

3.3. Compilation#

 typedef _nvrtcProgram * nvrtcProgram
 nvrtcResult nvrtcAddNameExpression(nvrtcProgram prog , const char* name_expression)
-nvrtcResult nvrtcCompileProgram(nvrtcProgram prog , int numOptions , const char** options)
-nvrtcResult nvrtcCreateProgram(nvrtcProgram * prog , const char* src , const char* name , int numHeaders , const char** headers , const char** includeNames)
 nvrtcResult nvrtcDestroyProgram(nvrtcProgram * prog)
 nvrtcResult nvrtcGetLoweredName(nvrtcProgram prog , const char* name_expression , const char** lowered_name)
 nvrtcResult nvrtcGetPTX(nvrtcProgram prog , char* ptx)
 nvrtcResult nvrtcGetPTXSize(nvrtcProgram prog , size_t* ptxSizeRet)
 nvrtcResult nvrtcGetProgramLog(nvrtcProgram prog , char* log)
 nvrtcResult nvrtcGetProgramLogSize(nvrtcProgram prog , size_t* logSizeRet)

85% (11 of 13 declarations available)

3.1. Error Handling#

 enum nvrtcResult
     NVRTC_SUCCESS = 0
     NVRTC_ERROR_OUT_OF_MEMORY = 1
     NVRTC_ERROR_PROGRAM_CREATION_FAILURE = 2
     NVRTC_ERROR_INVALID_INPUT = 3
     NVRTC_ERROR_INVALID_PROGRAM = 4
     NVRTC_ERROR_INVALID_OPTION = 5
     NVRTC_ERROR_COMPILATION = 6
     NVRTC_ERROR_BUILTIN_OPERATION_FAILURE = 7
     NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION = 8
     NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION = 9
     NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID = 10
     NVRTC_ERROR_INTERNAL_ERROR = 11
 const char* nvrtcGetErrorString(nvrtcResult result)

3.2. General Information Query#

 nvrtcResult nvrtcVersion(int* major , int* minor)

3.3. Compilation#

 typedef _nvrtcProgram * nvrtcProgram
 nvrtcResult nvrtcAddNameExpression(nvrtcProgram prog , const char* name_expression)
-nvrtcResult nvrtcCompileProgram(nvrtcProgram prog , int numOptions , const char** options)
-nvrtcResult nvrtcCreateProgram(nvrtcProgram * prog , const char* src , const char* name , int numHeaders , const char** headers , const char** includeNames)
 nvrtcResult nvrtcDestroyProgram(nvrtcProgram * prog)
 nvrtcResult nvrtcGetLoweredName(nvrtcProgram prog , const char* name_expression , const char** lowered_name)
 nvrtcResult nvrtcGetPTX(nvrtcProgram prog , char* ptx)
 nvrtcResult nvrtcGetPTXSize(nvrtcProgram prog , size_t* ptxSizeRet)
 nvrtcResult nvrtcGetProgramLog(nvrtcProgram prog , char* log)
 nvrtcResult nvrtcGetProgramLogSize(nvrtcProgram prog , size_t* logSizeRet)

85% (11 of 13 declarations available)

3.1. Error Handling#

 enum nvrtcResult
     NVRTC_SUCCESS = 0
     NVRTC_ERROR_OUT_OF_MEMORY = 1
     NVRTC_ERROR_PROGRAM_CREATION_FAILURE = 2
     NVRTC_ERROR_INVALID_INPUT = 3
     NVRTC_ERROR_INVALID_PROGRAM = 4
     NVRTC_ERROR_INVALID_OPTION = 5
     NVRTC_ERROR_COMPILATION = 6
     NVRTC_ERROR_BUILTIN_OPERATION_FAILURE = 7
     NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION = 8
     NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION = 9
     NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID = 10
     NVRTC_ERROR_INTERNAL_ERROR = 11
 const char* nvrtcGetErrorString(nvrtcResult result)

3.2. General Information Query#

 nvrtcResult nvrtcVersion(int* major , int* minor)

3.3. Compilation#

 typedef _nvrtcProgram * nvrtcProgram
 nvrtcResult nvrtcAddNameExpression(nvrtcProgram prog , const char* name_expression)
-nvrtcResult nvrtcCompileProgram(nvrtcProgram prog , int numOptions , const char** options)
-nvrtcResult nvrtcCreateProgram(nvrtcProgram * prog , const char* src , const char* name , int numHeaders , const char** headers , const char** includeNames)
 nvrtcResult nvrtcDestroyProgram(nvrtcProgram * prog)
 nvrtcResult nvrtcGetLoweredName(nvrtcProgram prog , const char* name_expression , const char** lowered_name)
 nvrtcResult nvrtcGetPTX(nvrtcProgram prog , char* ptx)
 nvrtcResult nvrtcGetPTXSize(nvrtcProgram prog , size_t* ptxSizeRet)
 nvrtcResult nvrtcGetProgramLog(nvrtcProgram prog , char* log)
 nvrtcResult nvrtcGetProgramLogSize(nvrtcProgram prog , size_t* logSizeRet)

79% (15 of 19 declarations available)

3.1. Error Handling#

 enum nvrtcResult
     NVRTC_SUCCESS = 0
     NVRTC_ERROR_OUT_OF_MEMORY = 1
     NVRTC_ERROR_PROGRAM_CREATION_FAILURE = 2
     NVRTC_ERROR_INVALID_INPUT = 3
     NVRTC_ERROR_INVALID_PROGRAM = 4
     NVRTC_ERROR_INVALID_OPTION = 5
     NVRTC_ERROR_COMPILATION = 6
     NVRTC_ERROR_BUILTIN_OPERATION_FAILURE = 7
     NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION = 8
     NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION = 9
     NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID = 10
     NVRTC_ERROR_INTERNAL_ERROR = 11
 const char* nvrtcGetErrorString(nvrtcResult result)

3.2. General Information Query#

 nvrtcResult nvrtcGetNumSupportedArchs(int* numArchs)
 nvrtcResult nvrtcGetSupportedArchs(int* supportedArchs)
 nvrtcResult nvrtcVersion(int* major , int* minor)

3.3. Compilation#

 typedef _nvrtcProgram * nvrtcProgram
 nvrtcResult nvrtcAddNameExpression(nvrtcProgram prog , const char* name_expression)
-nvrtcResult nvrtcCompileProgram(nvrtcProgram prog , int numOptions , const char** options)
-nvrtcResult nvrtcCreateProgram(nvrtcProgram * prog , const char* src , const char* name , int numHeaders , const char** headers , const char** includeNames)
 nvrtcResult nvrtcDestroyProgram(nvrtcProgram * prog)
 nvrtcResult nvrtcGetCUBIN(nvrtcProgram prog , char* cubin)
 nvrtcResult nvrtcGetCUBINSize(nvrtcProgram prog , size_t* cubinSizeRet)
 nvrtcResult nvrtcGetLoweredName(nvrtcProgram prog , const char* name_expression , const char** lowered_name)
-nvrtcResult nvrtcGetNVVM(nvrtcProgram prog , char* nvvm)
-nvrtcResult nvrtcGetNVVMSize(nvrtcProgram prog , size_t* nvvmSizeRet)
 nvrtcResult nvrtcGetPTX(nvrtcProgram prog , char* ptx)
 nvrtcResult nvrtcGetPTXSize(nvrtcProgram prog , size_t* ptxSizeRet)
 nvrtcResult nvrtcGetProgramLog(nvrtcProgram prog , char* log)
 nvrtcResult nvrtcGetProgramLogSize(nvrtcProgram prog , size_t* logSizeRet)

60% (18 of 30 declarations available)

3.1. Error Handling#

 enum nvrtcResult
     NVRTC_SUCCESS
     NVRTC_ERROR_OUT_OF_MEMORY
     NVRTC_ERROR_PROGRAM_CREATION_FAILURE
     NVRTC_ERROR_INVALID_INPUT
     NVRTC_ERROR_INVALID_PROGRAM
     NVRTC_ERROR_INVALID_OPTION
     NVRTC_ERROR_COMPILATION
     NVRTC_ERROR_BUILTIN_OPERATION_FAILURE
     NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION
     NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION
     NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID
     NVRTC_ERROR_INTERNAL_ERROR
     NVRTC_ERROR_TIME_FILE_WRITE_FAILED
-    NVRTC_ERROR_NO_PCH_CREATE_ATTEMPTED
-    NVRTC_ERROR_PCH_CREATE_HEAP_EXHAUSTED
-    NVRTC_ERROR_PCH_CREATE
-    NVRTC_ERROR_CANCELLED
 const char * nvrtcGetErrorString(nvrtcResult result)

3.2. General Information Query#

 nvrtcResult nvrtcGetNumSupportedArchs(int * numArchs)
 nvrtcResult nvrtcGetSupportedArchs(int * supportedArchs)
 nvrtcResult nvrtcVersion(int * major , int * minor)

3.3. Compilation#

-typedef struct _nvrtcProgram * nvrtcProgram
 nvrtcResult nvrtcAddNameExpression(nvrtcProgram prog , const char * const name_expression)
 nvrtcResult nvrtcCompileProgram(nvrtcProgram prog , int numOptions , const char * const * options)
 nvrtcResult nvrtcCreateProgram(nvrtcProgram * prog , const char * src , const char * name , int numHeaders , const char * const * headers , const char * const * includeNames)
 nvrtcResult nvrtcDestroyProgram(nvrtcProgram * prog)
 nvrtcResult nvrtcGetCUBIN(nvrtcProgram prog , char * cubin)
 nvrtcResult nvrtcGetCUBINSize(nvrtcProgram prog , size_t * cubinSizeRet)
 nvrtcResult nvrtcGetLTOIR(nvrtcProgram prog , char * LTOIR)
 nvrtcResult nvrtcGetLTOIRSize(nvrtcProgram prog , size_t * LTOIRSizeRet)
 nvrtcResult nvrtcGetLoweredName(nvrtcProgram prog , const char * const name_expression , const char * * lowered_name)
-nvrtcResult nvrtcGetNVVM(nvrtcProgram prog , char * nvvm)
-nvrtcResult nvrtcGetNVVMSize(nvrtcProgram prog , size_t * nvvmSizeRet)
-nvrtcResult nvrtcGetOptiXIR(nvrtcProgram prog , char * optixir)
-nvrtcResult nvrtcGetOptiXIRSize(nvrtcProgram prog , size_t * optixirSizeRet)
 nvrtcResult nvrtcGetPTX(nvrtcProgram prog , char * ptx)
 nvrtcResult nvrtcGetPTXSize(nvrtcProgram prog , size_t * ptxSizeRet)
 nvrtcResult nvrtcGetProgramLog(nvrtcProgram prog , char * log)
 nvrtcResult nvrtcGetProgramLogSize(nvrtcProgram prog , size_t * logSizeRet)
-nvrtcResult nvrtcSetFlowCallback(nvrtcProgram prog , int ( * callback ) ( void * , void * ) , void * payload)

3.5. Precompiled header (PCH) (CUDA 12.8+)#

-nvrtcResult nvrtcGetPCHCreateStatus(nvrtcProgram prog)
-nvrtcResult nvrtcGetPCHHeapSize(size_t * ret)
-nvrtcResult nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog , size_t * size)
-nvrtcResult nvrtcSetPCHHeapSize(size_t size)

3.6. Host Helper#

-inline nvrtcResult nvrtcGetTypeName(const std :: type_info & tinfo , std :: string * result)
-template < typename T > nvrtcResult nvrtcGetTypeName(std :: string * result)

49% (18 of 37 declarations available)

3.1. Error Handling#

 enum nvrtcResult
     NVRTC_SUCCESS
     NVRTC_ERROR_OUT_OF_MEMORY
     NVRTC_ERROR_PROGRAM_CREATION_FAILURE
     NVRTC_ERROR_INVALID_INPUT
     NVRTC_ERROR_INVALID_PROGRAM
     NVRTC_ERROR_INVALID_OPTION
     NVRTC_ERROR_COMPILATION
     NVRTC_ERROR_BUILTIN_OPERATION_FAILURE
     NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION
     NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION
     NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID
     NVRTC_ERROR_INTERNAL_ERROR
     NVRTC_ERROR_TIME_FILE_WRITE_FAILED
-    NVRTC_ERROR_NO_PCH_CREATE_ATTEMPTED
-    NVRTC_ERROR_PCH_CREATE_HEAP_EXHAUSTED
-    NVRTC_ERROR_PCH_CREATE
-    NVRTC_ERROR_CANCELLED
-    NVRTC_ERROR_TIME_TRACE_FILE_WRITE_FAILED
-    NVRTC_ERROR_BUSY
 const char * nvrtcGetErrorString(nvrtcResult result)

3.2. General Information Query#

 nvrtcResult nvrtcGetNumSupportedArchs(int * numArchs)
 nvrtcResult nvrtcGetSupportedArchs(int * supportedArchs)
 nvrtcResult nvrtcVersion(int * major , int * minor)

3.3. Compilation#

-typedef struct _nvrtcProgram * nvrtcProgram
 nvrtcResult nvrtcAddNameExpression(nvrtcProgram prog , const char * const name_expression)
 nvrtcResult nvrtcCompileProgram(nvrtcProgram prog , int numOptions , const char * const * options)
 nvrtcResult nvrtcCreateProgram(nvrtcProgram * prog , const char * src , const char * name , int numHeaders , const char * const * headers , const char * const * includeNames)
 nvrtcResult nvrtcDestroyProgram(nvrtcProgram * prog)
 nvrtcResult nvrtcGetCUBIN(nvrtcProgram prog , char * cubin)
 nvrtcResult nvrtcGetCUBINSize(nvrtcProgram prog , size_t * cubinSizeRet)
 nvrtcResult nvrtcGetLTOIR(nvrtcProgram prog , char * LTOIR)
 nvrtcResult nvrtcGetLTOIRSize(nvrtcProgram prog , size_t * LTOIRSizeRet)
 nvrtcResult nvrtcGetLoweredName(nvrtcProgram prog , const char * const name_expression , const char * * lowered_name)
-nvrtcResult nvrtcGetOptiXIR(nvrtcProgram prog , char * optixir)
-nvrtcResult nvrtcGetOptiXIRSize(nvrtcProgram prog , size_t * optixirSizeRet)
 nvrtcResult nvrtcGetPTX(nvrtcProgram prog , char * ptx)
 nvrtcResult nvrtcGetPTXSize(nvrtcProgram prog , size_t * ptxSizeRet)
 nvrtcResult nvrtcGetProgramLog(nvrtcProgram prog , char * log)
 nvrtcResult nvrtcGetProgramLogSize(nvrtcProgram prog , size_t * logSizeRet)
-nvrtcResult nvrtcGetTileIR(nvrtcProgram prog , char * TileIR)
-nvrtcResult nvrtcGetTileIRSize(nvrtcProgram prog , size_t * TileIRSizeRet)
-nvrtcResult nvrtcSetFlowCallback(nvrtcProgram prog , int ( * callback ) ( void * , void * ) , void * payload)

3.5. Precompiled header (PCH) (CUDA 12.8+)#

-nvrtcResult nvrtcGetPCHCreateStatus(nvrtcProgram prog)
-nvrtcResult nvrtcGetPCHHeapSize(size_t * ret)
-nvrtcResult nvrtcGetPCHHeapSizeRequired(nvrtcProgram prog , size_t * size)
-nvrtcResult nvrtcSetPCHHeapSize(size_t size)

3.6. Host Helper#

-inline nvrtcResult nvrtcGetTypeName(const std :: type_info & tinfo , std :: string * result)
-template < typename T > nvrtcResult nvrtcGetTypeName(std :: string * result)

3.7. Bundled Headers Installation#

-#define NVRTC_INSTALL_HEADERS_FORCE_OVERWRITE
-#define NVRTC_INSTALL_HEADERS_NO_WAIT
-#define NVRTC_INSTALL_HEADERS_SKIP_IF_EXISTS
-struct nvrtcBundledHeadersInfo
-nvrtcResult nvrtcGetBundledHeadersInfo(nvrtcBundledHeadersInfo * info , const char * * errorLog)
-nvrtcResult nvrtcInstallBundledHeaders(const char * installPath , unsigned int flags , const char * * errorLog)
-nvrtcResult nvrtcRemoveBundledHeaders(const char * installPath , const char * * errorLog)