Package org.lwjgl.cuda
Class NVRTC
java.lang.Object
org.lwjgl.cuda.NVRTC
Contains bindings to NVRTC, a runtime compilation library for CUDA C++.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains the function pointers loaded from the NVRTCSharedLibrary. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intnvrtcResultstatic final intnvrtcResultstatic final intnvrtcResultstatic final intnvrtcResultstatic final intnvrtcResultstatic final intnvrtcResultstatic final intnvrtcResultstatic final intnvrtcResultstatic final intnvrtcResultstatic final intnvrtcResultstatic final intnvrtcResultstatic final intnvrtcResultstatic final intnvrtcResult -
Method Summary
Modifier and TypeMethodDescriptionstatic org.lwjgl.system.SharedLibraryReturns the NVRTCSharedLibrary.static intnnvrtcAddNameExpression(long prog, long name_expression) static intnnvrtcCompileProgram(long prog, int numOptions, long options) static intnnvrtcCreateProgram(long prog, long src, long name, int numHeaders, long headers, long includeNames) static intnnvrtcDestroyProgram(long prog) static intnnvrtcGetCUBIN(long prog, long cubin) static intnnvrtcGetCUBINSize(long prog, long cubinSizeRet) static longnnvrtcGetErrorString(int result) static intnnvrtcGetLoweredName(long prog, long name_expression, long lowered_name) static intnnvrtcGetLTOIR(long prog, long LTOIR) static intnnvrtcGetLTOIRSize(long prog, long LTOIRSizeRet) static intnnvrtcGetNumSupportedArchs(long numArchs) static intnnvrtcGetNVVM(long prog, long nvvm) static intnnvrtcGetNVVMSize(long prog, long nvvmSizeRet) static intnnvrtcGetOptiXIR(long prog, long optixir) static intnnvrtcGetOptiXIRSize(long prog, long optixirSizeRet) static intnnvrtcGetProgramLog(long prog, long log) static intnnvrtcGetProgramLogSize(long prog, long logSizeRet) static intnnvrtcGetPTX(long prog, long ptx) static intnnvrtcGetPTXSize(long prog, long ptxSizeRet) static intnnvrtcGetSupportedArchs(long supportedArchs) static intnnvrtcVersion(long major, long minor) static intnvrtcAddNameExpression(long prog, CharSequence name_expression) static intnvrtcAddNameExpression(long prog, ByteBuffer name_expression) static intnvrtcCompileProgram(long prog, @Nullable org.lwjgl.PointerBuffer options) static intnvrtcCreateProgram(org.lwjgl.PointerBuffer prog, CharSequence src, @Nullable CharSequence name, @Nullable org.lwjgl.PointerBuffer headers, @Nullable org.lwjgl.PointerBuffer includeNames) static intnvrtcCreateProgram(org.lwjgl.PointerBuffer prog, ByteBuffer src, @Nullable ByteBuffer name, @Nullable org.lwjgl.PointerBuffer headers, @Nullable org.lwjgl.PointerBuffer includeNames) static intnvrtcDestroyProgram(org.lwjgl.PointerBuffer prog) static intnvrtcGetCUBIN(long prog, ByteBuffer cubin) static intnvrtcGetCUBINSize(long prog, org.lwjgl.PointerBuffer cubinSizeRet) static @Nullable StringnvrtcGetErrorString(int result) static intnvrtcGetLoweredName(long prog, CharSequence name_expression, org.lwjgl.PointerBuffer lowered_name) static intnvrtcGetLoweredName(long prog, ByteBuffer name_expression, org.lwjgl.PointerBuffer lowered_name) static intnvrtcGetLTOIR(long prog, ByteBuffer LTOIR) static intnvrtcGetLTOIRSize(long prog, org.lwjgl.PointerBuffer LTOIRSizeRet) static intnvrtcGetNumSupportedArchs(IntBuffer numArchs) static intnvrtcGetNVVM(long prog, ByteBuffer nvvm) static intnvrtcGetNVVMSize(long prog, org.lwjgl.PointerBuffer nvvmSizeRet) static intnvrtcGetOptiXIR(long prog, ByteBuffer optixir) static intnvrtcGetOptiXIRSize(long prog, org.lwjgl.PointerBuffer optixirSizeRet) static intnvrtcGetProgramLog(long prog, ByteBuffer log) static intnvrtcGetProgramLogSize(long prog, org.lwjgl.PointerBuffer logSizeRet) static intnvrtcGetPTX(long prog, ByteBuffer ptx) static intnvrtcGetPTXSize(long prog, org.lwjgl.PointerBuffer ptxSizeRet) static intnvrtcGetSupportedArchs(IntBuffer supportedArchs) static intnvrtcVersion(IntBuffer major, IntBuffer minor)
-
Field Details
-
NVRTC_SUCCESS
public static final int NVRTC_SUCCESSnvrtcResultEnum values:
SUCCESSERROR_OUT_OF_MEMORYERROR_PROGRAM_CREATION_FAILUREERROR_INVALID_INPUTERROR_INVALID_PROGRAMERROR_INVALID_OPTIONERROR_COMPILATIONERROR_BUILTIN_OPERATION_FAILUREERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATIONERROR_NO_LOWERED_NAMES_BEFORE_COMPILATIONERROR_NAME_EXPRESSION_NOT_VALIDERROR_INTERNAL_ERRORERROR_TIME_FILE_WRITE_FAILED
- See Also:
-
NVRTC_ERROR_OUT_OF_MEMORY
public static final int NVRTC_ERROR_OUT_OF_MEMORYnvrtcResultEnum values:
SUCCESSERROR_OUT_OF_MEMORYERROR_PROGRAM_CREATION_FAILUREERROR_INVALID_INPUTERROR_INVALID_PROGRAMERROR_INVALID_OPTIONERROR_COMPILATIONERROR_BUILTIN_OPERATION_FAILUREERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATIONERROR_NO_LOWERED_NAMES_BEFORE_COMPILATIONERROR_NAME_EXPRESSION_NOT_VALIDERROR_INTERNAL_ERRORERROR_TIME_FILE_WRITE_FAILED
- See Also:
-
NVRTC_ERROR_PROGRAM_CREATION_FAILURE
public static final int NVRTC_ERROR_PROGRAM_CREATION_FAILUREnvrtcResultEnum values:
SUCCESSERROR_OUT_OF_MEMORYERROR_PROGRAM_CREATION_FAILUREERROR_INVALID_INPUTERROR_INVALID_PROGRAMERROR_INVALID_OPTIONERROR_COMPILATIONERROR_BUILTIN_OPERATION_FAILUREERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATIONERROR_NO_LOWERED_NAMES_BEFORE_COMPILATIONERROR_NAME_EXPRESSION_NOT_VALIDERROR_INTERNAL_ERRORERROR_TIME_FILE_WRITE_FAILED
- See Also:
-
NVRTC_ERROR_INVALID_INPUT
public static final int NVRTC_ERROR_INVALID_INPUTnvrtcResultEnum values:
SUCCESSERROR_OUT_OF_MEMORYERROR_PROGRAM_CREATION_FAILUREERROR_INVALID_INPUTERROR_INVALID_PROGRAMERROR_INVALID_OPTIONERROR_COMPILATIONERROR_BUILTIN_OPERATION_FAILUREERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATIONERROR_NO_LOWERED_NAMES_BEFORE_COMPILATIONERROR_NAME_EXPRESSION_NOT_VALIDERROR_INTERNAL_ERRORERROR_TIME_FILE_WRITE_FAILED
- See Also:
-
NVRTC_ERROR_INVALID_PROGRAM
public static final int NVRTC_ERROR_INVALID_PROGRAMnvrtcResultEnum values:
SUCCESSERROR_OUT_OF_MEMORYERROR_PROGRAM_CREATION_FAILUREERROR_INVALID_INPUTERROR_INVALID_PROGRAMERROR_INVALID_OPTIONERROR_COMPILATIONERROR_BUILTIN_OPERATION_FAILUREERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATIONERROR_NO_LOWERED_NAMES_BEFORE_COMPILATIONERROR_NAME_EXPRESSION_NOT_VALIDERROR_INTERNAL_ERRORERROR_TIME_FILE_WRITE_FAILED
- See Also:
-
NVRTC_ERROR_INVALID_OPTION
public static final int NVRTC_ERROR_INVALID_OPTIONnvrtcResultEnum values:
SUCCESSERROR_OUT_OF_MEMORYERROR_PROGRAM_CREATION_FAILUREERROR_INVALID_INPUTERROR_INVALID_PROGRAMERROR_INVALID_OPTIONERROR_COMPILATIONERROR_BUILTIN_OPERATION_FAILUREERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATIONERROR_NO_LOWERED_NAMES_BEFORE_COMPILATIONERROR_NAME_EXPRESSION_NOT_VALIDERROR_INTERNAL_ERRORERROR_TIME_FILE_WRITE_FAILED
- See Also:
-
NVRTC_ERROR_COMPILATION
public static final int NVRTC_ERROR_COMPILATIONnvrtcResultEnum values:
SUCCESSERROR_OUT_OF_MEMORYERROR_PROGRAM_CREATION_FAILUREERROR_INVALID_INPUTERROR_INVALID_PROGRAMERROR_INVALID_OPTIONERROR_COMPILATIONERROR_BUILTIN_OPERATION_FAILUREERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATIONERROR_NO_LOWERED_NAMES_BEFORE_COMPILATIONERROR_NAME_EXPRESSION_NOT_VALIDERROR_INTERNAL_ERRORERROR_TIME_FILE_WRITE_FAILED
- See Also:
-
NVRTC_ERROR_BUILTIN_OPERATION_FAILURE
public static final int NVRTC_ERROR_BUILTIN_OPERATION_FAILUREnvrtcResultEnum values:
SUCCESSERROR_OUT_OF_MEMORYERROR_PROGRAM_CREATION_FAILUREERROR_INVALID_INPUTERROR_INVALID_PROGRAMERROR_INVALID_OPTIONERROR_COMPILATIONERROR_BUILTIN_OPERATION_FAILUREERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATIONERROR_NO_LOWERED_NAMES_BEFORE_COMPILATIONERROR_NAME_EXPRESSION_NOT_VALIDERROR_INTERNAL_ERRORERROR_TIME_FILE_WRITE_FAILED
- See Also:
-
NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION
public static final int NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATIONnvrtcResultEnum values:
SUCCESSERROR_OUT_OF_MEMORYERROR_PROGRAM_CREATION_FAILUREERROR_INVALID_INPUTERROR_INVALID_PROGRAMERROR_INVALID_OPTIONERROR_COMPILATIONERROR_BUILTIN_OPERATION_FAILUREERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATIONERROR_NO_LOWERED_NAMES_BEFORE_COMPILATIONERROR_NAME_EXPRESSION_NOT_VALIDERROR_INTERNAL_ERRORERROR_TIME_FILE_WRITE_FAILED
- See Also:
-
NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION
public static final int NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATIONnvrtcResultEnum values:
SUCCESSERROR_OUT_OF_MEMORYERROR_PROGRAM_CREATION_FAILUREERROR_INVALID_INPUTERROR_INVALID_PROGRAMERROR_INVALID_OPTIONERROR_COMPILATIONERROR_BUILTIN_OPERATION_FAILUREERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATIONERROR_NO_LOWERED_NAMES_BEFORE_COMPILATIONERROR_NAME_EXPRESSION_NOT_VALIDERROR_INTERNAL_ERRORERROR_TIME_FILE_WRITE_FAILED
- See Also:
-
NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID
public static final int NVRTC_ERROR_NAME_EXPRESSION_NOT_VALIDnvrtcResultEnum values:
SUCCESSERROR_OUT_OF_MEMORYERROR_PROGRAM_CREATION_FAILUREERROR_INVALID_INPUTERROR_INVALID_PROGRAMERROR_INVALID_OPTIONERROR_COMPILATIONERROR_BUILTIN_OPERATION_FAILUREERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATIONERROR_NO_LOWERED_NAMES_BEFORE_COMPILATIONERROR_NAME_EXPRESSION_NOT_VALIDERROR_INTERNAL_ERRORERROR_TIME_FILE_WRITE_FAILED
- See Also:
-
NVRTC_ERROR_INTERNAL_ERROR
public static final int NVRTC_ERROR_INTERNAL_ERRORnvrtcResultEnum values:
SUCCESSERROR_OUT_OF_MEMORYERROR_PROGRAM_CREATION_FAILUREERROR_INVALID_INPUTERROR_INVALID_PROGRAMERROR_INVALID_OPTIONERROR_COMPILATIONERROR_BUILTIN_OPERATION_FAILUREERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATIONERROR_NO_LOWERED_NAMES_BEFORE_COMPILATIONERROR_NAME_EXPRESSION_NOT_VALIDERROR_INTERNAL_ERRORERROR_TIME_FILE_WRITE_FAILED
- See Also:
-
NVRTC_ERROR_TIME_FILE_WRITE_FAILED
public static final int NVRTC_ERROR_TIME_FILE_WRITE_FAILEDnvrtcResultEnum values:
SUCCESSERROR_OUT_OF_MEMORYERROR_PROGRAM_CREATION_FAILUREERROR_INVALID_INPUTERROR_INVALID_PROGRAMERROR_INVALID_OPTIONERROR_COMPILATIONERROR_BUILTIN_OPERATION_FAILUREERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATIONERROR_NO_LOWERED_NAMES_BEFORE_COMPILATIONERROR_NAME_EXPRESSION_NOT_VALIDERROR_INTERNAL_ERRORERROR_TIME_FILE_WRITE_FAILED
- See Also:
-
-
Method Details
-
getLibrary
public static org.lwjgl.system.SharedLibrary getLibrary()Returns the NVRTCSharedLibrary. -
nnvrtcGetErrorString
public static long nnvrtcGetErrorString(int result) -
nvrtcGetErrorString
-
nnvrtcVersion
public static int nnvrtcVersion(long major, long minor) -
nvrtcVersion
-
nnvrtcGetNumSupportedArchs
public static int nnvrtcGetNumSupportedArchs(long numArchs) -
nvrtcGetNumSupportedArchs
-
nnvrtcGetSupportedArchs
public static int nnvrtcGetSupportedArchs(long supportedArchs) -
nvrtcGetSupportedArchs
-
nnvrtcCreateProgram
public static int nnvrtcCreateProgram(long prog, long src, long name, int numHeaders, long headers, long includeNames) -
nvrtcCreateProgram
public static int nvrtcCreateProgram(org.lwjgl.PointerBuffer prog, ByteBuffer src, @Nullable ByteBuffer name, @Nullable org.lwjgl.PointerBuffer headers, @Nullable org.lwjgl.PointerBuffer includeNames) -
nvrtcCreateProgram
public static int nvrtcCreateProgram(org.lwjgl.PointerBuffer prog, CharSequence src, @Nullable CharSequence name, @Nullable org.lwjgl.PointerBuffer headers, @Nullable org.lwjgl.PointerBuffer includeNames) -
nnvrtcDestroyProgram
public static int nnvrtcDestroyProgram(long prog) -
nvrtcDestroyProgram
public static int nvrtcDestroyProgram(org.lwjgl.PointerBuffer prog) -
nnvrtcCompileProgram
public static int nnvrtcCompileProgram(long prog, int numOptions, long options) -
nvrtcCompileProgram
public static int nvrtcCompileProgram(long prog, @Nullable org.lwjgl.PointerBuffer options) -
nnvrtcGetPTXSize
public static int nnvrtcGetPTXSize(long prog, long ptxSizeRet) -
nvrtcGetPTXSize
public static int nvrtcGetPTXSize(long prog, org.lwjgl.PointerBuffer ptxSizeRet) -
nnvrtcGetPTX
public static int nnvrtcGetPTX(long prog, long ptx) -
nvrtcGetPTX
-
nnvrtcGetCUBINSize
public static int nnvrtcGetCUBINSize(long prog, long cubinSizeRet) -
nvrtcGetCUBINSize
public static int nvrtcGetCUBINSize(long prog, org.lwjgl.PointerBuffer cubinSizeRet) -
nnvrtcGetCUBIN
public static int nnvrtcGetCUBIN(long prog, long cubin) -
nvrtcGetCUBIN
-
nnvrtcGetNVVMSize
public static int nnvrtcGetNVVMSize(long prog, long nvvmSizeRet) -
nvrtcGetNVVMSize
public static int nvrtcGetNVVMSize(long prog, org.lwjgl.PointerBuffer nvvmSizeRet) -
nnvrtcGetNVVM
public static int nnvrtcGetNVVM(long prog, long nvvm) -
nvrtcGetNVVM
-
nnvrtcGetLTOIRSize
public static int nnvrtcGetLTOIRSize(long prog, long LTOIRSizeRet) -
nvrtcGetLTOIRSize
public static int nvrtcGetLTOIRSize(long prog, org.lwjgl.PointerBuffer LTOIRSizeRet) -
nnvrtcGetLTOIR
public static int nnvrtcGetLTOIR(long prog, long LTOIR) -
nvrtcGetLTOIR
-
nnvrtcGetOptiXIRSize
public static int nnvrtcGetOptiXIRSize(long prog, long optixirSizeRet) -
nvrtcGetOptiXIRSize
public static int nvrtcGetOptiXIRSize(long prog, org.lwjgl.PointerBuffer optixirSizeRet) -
nnvrtcGetOptiXIR
public static int nnvrtcGetOptiXIR(long prog, long optixir) -
nvrtcGetOptiXIR
-
nnvrtcGetProgramLogSize
public static int nnvrtcGetProgramLogSize(long prog, long logSizeRet) -
nvrtcGetProgramLogSize
public static int nvrtcGetProgramLogSize(long prog, org.lwjgl.PointerBuffer logSizeRet) -
nnvrtcGetProgramLog
public static int nnvrtcGetProgramLog(long prog, long log) -
nvrtcGetProgramLog
-
nnvrtcAddNameExpression
public static int nnvrtcAddNameExpression(long prog, long name_expression) -
nvrtcAddNameExpression
-
nvrtcAddNameExpression
-
nnvrtcGetLoweredName
public static int nnvrtcGetLoweredName(long prog, long name_expression, long lowered_name) -
nvrtcGetLoweredName
public static int nvrtcGetLoweredName(long prog, ByteBuffer name_expression, org.lwjgl.PointerBuffer lowered_name) -
nvrtcGetLoweredName
public static int nvrtcGetLoweredName(long prog, CharSequence name_expression, org.lwjgl.PointerBuffer lowered_name)
-