public class nvrtc extends nvrtc
Modifier and Type | Field and Description |
---|---|
static int |
NVRTC_ERROR_BUILTIN_OPERATION_FAILURE
enum nvrtcResult
|
static int |
NVRTC_ERROR_COMPILATION
enum nvrtcResult
|
static int |
NVRTC_ERROR_INTERNAL_ERROR
enum nvrtcResult
|
static int |
NVRTC_ERROR_INVALID_INPUT
enum nvrtcResult
|
static int |
NVRTC_ERROR_INVALID_OPTION
enum nvrtcResult
|
static int |
NVRTC_ERROR_INVALID_PROGRAM
enum nvrtcResult
|
static int |
NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID
enum nvrtcResult
|
static int |
NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION
enum nvrtcResult
|
static int |
NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION
enum nvrtcResult
|
static int |
NVRTC_ERROR_OUT_OF_MEMORY
enum nvrtcResult
|
static int |
NVRTC_ERROR_PROGRAM_CREATION_FAILURE
enum nvrtcResult
|
static int |
NVRTC_ERROR_TIME_FILE_WRITE_FAILED
enum nvrtcResult
|
static int |
NVRTC_SUCCESS
enum nvrtcResult
|
Constructor and Description |
---|
nvrtc() |
Modifier and Type | Method and Description |
---|---|
static int |
nvrtcAddNameExpression(_nvrtcProgram prog,
BytePointer name_expression)
\ingroup compilation
\brief nvrtcAddNameExpression notes the given name expression
denoting the address of a __global__ function
or __device__/__constant__ variable.
|
static int |
nvrtcAddNameExpression(_nvrtcProgram prog,
String name_expression) |
static int |
nvrtcCompileProgram(_nvrtcProgram prog,
int numOptions,
byte[] options) |
static int |
nvrtcCompileProgram(_nvrtcProgram prog,
int numOptions,
ByteBuffer options) |
static int |
nvrtcCompileProgram(_nvrtcProgram prog,
int numOptions,
BytePointer options) |
static int |
nvrtcCompileProgram(_nvrtcProgram prog,
int numOptions,
PointerPointer options)
\ingroup compilation
\brief nvrtcCompileProgram compiles the given program.
|
static int |
nvrtcCreateProgram(_nvrtcProgram prog,
BytePointer src,
BytePointer name,
int numHeaders,
byte[] headers,
byte[] includeNames) |
static int |
nvrtcCreateProgram(_nvrtcProgram prog,
BytePointer src,
BytePointer name,
int numHeaders,
ByteBuffer headers,
ByteBuffer includeNames) |
static int |
nvrtcCreateProgram(_nvrtcProgram prog,
BytePointer src,
BytePointer name,
int numHeaders,
BytePointer headers,
BytePointer includeNames) |
static int |
nvrtcCreateProgram(_nvrtcProgram prog,
BytePointer src,
BytePointer name,
int numHeaders,
PointerPointer headers,
PointerPointer includeNames)
\ingroup compilation
\brief nvrtcCreateProgram creates an instance of nvrtcProgram with the
given input parameters, and sets the output parameter \p prog with
it.
|
static int |
nvrtcCreateProgram(PointerPointer prog,
String src,
String name,
int numHeaders,
byte[] headers,
byte[] includeNames) |
static int |
nvrtcCreateProgram(PointerPointer prog,
String src,
String name,
int numHeaders,
ByteBuffer headers,
ByteBuffer includeNames) |
static int |
nvrtcCreateProgram(PointerPointer prog,
String src,
String name,
int numHeaders,
BytePointer headers,
BytePointer includeNames) |
static int |
nvrtcDestroyProgram(_nvrtcProgram prog)
\ingroup compilation
\brief nvrtcDestroyProgram destroys the given program.
|
static int |
nvrtcDestroyProgram(PointerPointer prog) |
static int |
nvrtcGetCUBIN(_nvrtcProgram prog,
byte[] cubin) |
static int |
nvrtcGetCUBIN(_nvrtcProgram prog,
ByteBuffer cubin) |
static int |
nvrtcGetCUBIN(_nvrtcProgram prog,
BytePointer cubin)
\ingroup compilation
\brief nvrtcGetCUBIN stores the cubin generated by the previous compilation
of \p prog in the memory pointed by \p cubin.
|
static int |
nvrtcGetCUBINSize(_nvrtcProgram prog,
SizeTPointer cubinSizeRet)
\ingroup compilation
\brief nvrtcGetCUBINSize sets the value of \p cubinSizeRet with the size of the cubin
generated by the previous compilation of \p prog.
|
static BytePointer |
nvrtcGetErrorString(int result)
\ingroup error
\brief nvrtcGetErrorString is a helper function that returns a string
describing the given nvrtcResult code, e.g., NVRTC_SUCCESS to
\c "NVRTC_SUCCESS".
|
static int |
nvrtcGetLoweredName(_nvrtcProgram prog,
BytePointer name_expression,
byte[] lowered_name) |
static int |
nvrtcGetLoweredName(_nvrtcProgram prog,
BytePointer name_expression,
ByteBuffer lowered_name) |
static int |
nvrtcGetLoweredName(_nvrtcProgram prog,
BytePointer name_expression,
BytePointer lowered_name) |
static int |
nvrtcGetLoweredName(_nvrtcProgram prog,
BytePointer name_expression,
PointerPointer lowered_name)
\ingroup compilation
\brief nvrtcGetLoweredName extracts the lowered (mangled) name
for a __global__ function or __device__/__constant__ variable,
and updates *lowered_name to point to it.
|
static int |
nvrtcGetLoweredName(_nvrtcProgram prog,
String name_expression,
byte[] lowered_name) |
static int |
nvrtcGetLoweredName(_nvrtcProgram prog,
String name_expression,
ByteBuffer lowered_name) |
static int |
nvrtcGetLoweredName(_nvrtcProgram prog,
String name_expression,
BytePointer lowered_name) |
static int |
nvrtcGetLTOIR(_nvrtcProgram prog,
byte[] LTOIR) |
static int |
nvrtcGetLTOIR(_nvrtcProgram prog,
ByteBuffer LTOIR) |
static int |
nvrtcGetLTOIR(_nvrtcProgram prog,
BytePointer LTOIR)
\ingroup compilation
\brief nvrtcGetLTOIR stores the LTO IR generated by the previous compilation
of \p prog in the memory pointed by \p LTOIR.
|
static int |
nvrtcGetLTOIRSize(_nvrtcProgram prog,
SizeTPointer LTOIRSizeRet)
\ingroup compilation
\brief nvrtcGetLTOIRSize sets the value of \p LTOIRSizeRet with the size of the LTO IR
generated by the previous compilation of \p prog.
|
static int |
nvrtcGetNumSupportedArchs(int[] numArchs) |
static int |
nvrtcGetNumSupportedArchs(IntBuffer numArchs) |
static int |
nvrtcGetNumSupportedArchs(IntPointer numArchs)
\ingroup query
\brief nvrtcGetNumSupportedArchs sets the output parameter \p numArchs
with the number of architectures supported by NVRTC.
|
static int |
nvrtcGetNVVM(_nvrtcProgram prog,
byte[] nvvm) |
static int |
nvrtcGetNVVM(_nvrtcProgram prog,
ByteBuffer nvvm) |
static int |
nvrtcGetNVVM(_nvrtcProgram prog,
BytePointer nvvm)
\ingroup compilation
\brief
DEPRECATION NOTICE: This function will be removed in a future release.
|
static int |
nvrtcGetNVVMSize(_nvrtcProgram prog,
SizeTPointer nvvmSizeRet)
\ingroup compilation
\brief
DEPRECATION NOTICE: This function will be removed in a future release.
|
static int |
nvrtcGetOptiXIR(_nvrtcProgram prog,
byte[] optixir) |
static int |
nvrtcGetOptiXIR(_nvrtcProgram prog,
ByteBuffer optixir) |
static int |
nvrtcGetOptiXIR(_nvrtcProgram prog,
BytePointer optixir)
\ingroup compilation
\brief nvrtcGetOptiXIR stores the OptiX IR generated by the previous compilation
of \p prog in the memory pointed by \p optixir.
|
static int |
nvrtcGetOptiXIRSize(_nvrtcProgram prog,
SizeTPointer optixirSizeRet)
\ingroup compilation
\brief nvrtcGetOptiXIRSize sets the value of \p optixirSizeRet with the size of the OptiX IR
generated by the previous compilation of \p prog.
|
static int |
nvrtcGetProgramLog(_nvrtcProgram prog,
byte[] log) |
static int |
nvrtcGetProgramLog(_nvrtcProgram prog,
ByteBuffer log) |
static int |
nvrtcGetProgramLog(_nvrtcProgram prog,
BytePointer log)
\ingroup compilation
\brief nvrtcGetProgramLog stores the log generated by the previous
compilation of \p prog in the memory pointed by \p log.
|
static int |
nvrtcGetProgramLogSize(_nvrtcProgram prog,
SizeTPointer logSizeRet)
\ingroup compilation
\brief nvrtcGetProgramLogSize sets \p logSizeRet with the size of the
log generated by the previous compilation of \p prog (including the
trailing \c NULL).
|
static int |
nvrtcGetPTX(_nvrtcProgram prog,
byte[] ptx) |
static int |
nvrtcGetPTX(_nvrtcProgram prog,
ByteBuffer ptx) |
static int |
nvrtcGetPTX(_nvrtcProgram prog,
BytePointer ptx)
\ingroup compilation
\brief nvrtcGetPTX stores the PTX generated by the previous compilation
of \p prog in the memory pointed by \p ptx.
|
static int |
nvrtcGetPTXSize(_nvrtcProgram prog,
SizeTPointer ptxSizeRet)
\ingroup compilation
\brief nvrtcGetPTXSize sets the value of \p ptxSizeRet with the size of the PTX
generated by the previous compilation of \p prog (including the
trailing \c NULL).
|
static int |
nvrtcGetSupportedArchs(int[] supportedArchs) |
static int |
nvrtcGetSupportedArchs(IntBuffer supportedArchs) |
static int |
nvrtcGetSupportedArchs(IntPointer supportedArchs)
\ingroup query
\brief nvrtcGetSupportedArchs populates the array passed via the output parameter
\p supportedArchs with the architectures supported by NVRTC.
|
static int |
nvrtcVersion(int[] major,
int[] minor) |
static int |
nvrtcVersion(IntBuffer major,
IntBuffer minor) |
static int |
nvrtcVersion(IntPointer major,
IntPointer minor)
\ingroup query
\brief nvrtcVersion sets the output parameters \p major and \p minor
with the CUDA Runtime Compilation version number.
|
public static final int NVRTC_SUCCESS
public static final int NVRTC_ERROR_OUT_OF_MEMORY
public static final int NVRTC_ERROR_PROGRAM_CREATION_FAILURE
public static final int NVRTC_ERROR_INVALID_INPUT
public static final int NVRTC_ERROR_INVALID_PROGRAM
public static final int NVRTC_ERROR_INVALID_OPTION
public static final int NVRTC_ERROR_COMPILATION
public static final int NVRTC_ERROR_BUILTIN_OPERATION_FAILURE
public static final int NVRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION
public static final int NVRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION
public static final int NVRTC_ERROR_NAME_EXPRESSION_NOT_VALID
public static final int NVRTC_ERROR_INTERNAL_ERROR
public static final int NVRTC_ERROR_TIME_FILE_WRITE_FAILED
@Cast(value="const char*") public static BytePointer nvrtcGetErrorString(@Cast(value="nvrtcResult") int result)
result
- [in] CUDA Runtime Compilation API result code.@Cast(value="nvrtcResult") public static int nvrtcVersion(IntPointer major, IntPointer minor)
major
- [out] CUDA Runtime Compilation major version number.minor
- [out] CUDA Runtime Compilation minor version number.@Cast(value="nvrtcResult") public static int nvrtcVersion(IntBuffer major, IntBuffer minor)
@Cast(value="nvrtcResult") public static int nvrtcGetNumSupportedArchs(IntPointer numArchs)
numArchs
- [out] number of supported architectures.@Cast(value="nvrtcResult") public static int nvrtcGetNumSupportedArchs(IntBuffer numArchs)
@Cast(value="nvrtcResult") public static int nvrtcGetNumSupportedArchs(int[] numArchs)
@Cast(value="nvrtcResult") public static int nvrtcGetSupportedArchs(IntPointer supportedArchs)
supportedArchs
- [out] sorted array of supported architectures.@Cast(value="nvrtcResult") public static int nvrtcGetSupportedArchs(IntBuffer supportedArchs)
@Cast(value="nvrtcResult") public static int nvrtcGetSupportedArchs(int[] supportedArchs)
@Cast(value="nvrtcResult") public static int nvrtcCreateProgram(@ByPtrPtr _nvrtcProgram prog, @Cast(value="const char*") BytePointer src, @Cast(value="const char*") BytePointer name, int numHeaders, @Cast(value="const char*const*") PointerPointer headers, @Cast(value="const char*const*") PointerPointer includeNames)
prog
- [out] CUDA Runtime Compilation program.src
- [in] CUDA program source.name
- [in] CUDA program name.\n
\p name can be \c NULL; \c "default_program" is
used when \p name is \c NULL or "".numHeaders
- [in] Number of headers used.\n
\p numHeaders must be greater than or equal to 0.headers
- [in] Sources of the headers.\n
\p headers can be \c NULL when \p numHeaders is
0.includeNames
- [in] Name of each header by which they can be
included in the CUDA program source.\n
\p includeNames can be \c NULL when \p numHeaders
is 0. These headers must be included with the exact
names specified here.::nvrtcDestroyProgram
@Cast(value="nvrtcResult") public static int nvrtcCreateProgram(@ByPtrPtr _nvrtcProgram prog, @Cast(value="const char*") BytePointer src, @Cast(value="const char*") BytePointer name, int numHeaders, @Cast(value="const char*const*") @ByPtrPtr BytePointer headers, @Cast(value="const char*const*") @ByPtrPtr BytePointer includeNames)
@Cast(value="nvrtcResult") public static int nvrtcCreateProgram(@Cast(value="_nvrtcProgram**") PointerPointer prog, String src, String name, int numHeaders, @Cast(value="const char*const*") @ByPtrPtr ByteBuffer headers, @Cast(value="const char*const*") @ByPtrPtr ByteBuffer includeNames)
@Cast(value="nvrtcResult") public static int nvrtcCreateProgram(@ByPtrPtr _nvrtcProgram prog, @Cast(value="const char*") BytePointer src, @Cast(value="const char*") BytePointer name, int numHeaders, @Cast(value="const char*const*") @ByPtrPtr byte[] headers, @Cast(value="const char*const*") @ByPtrPtr byte[] includeNames)
@Cast(value="nvrtcResult") public static int nvrtcCreateProgram(@Cast(value="_nvrtcProgram**") PointerPointer prog, String src, String name, int numHeaders, @Cast(value="const char*const*") @ByPtrPtr BytePointer headers, @Cast(value="const char*const*") @ByPtrPtr BytePointer includeNames)
@Cast(value="nvrtcResult") public static int nvrtcCreateProgram(@ByPtrPtr _nvrtcProgram prog, @Cast(value="const char*") BytePointer src, @Cast(value="const char*") BytePointer name, int numHeaders, @Cast(value="const char*const*") @ByPtrPtr ByteBuffer headers, @Cast(value="const char*const*") @ByPtrPtr ByteBuffer includeNames)
@Cast(value="nvrtcResult") public static int nvrtcCreateProgram(@Cast(value="_nvrtcProgram**") PointerPointer prog, String src, String name, int numHeaders, @Cast(value="const char*const*") @ByPtrPtr byte[] headers, @Cast(value="const char*const*") @ByPtrPtr byte[] includeNames)
@Cast(value="nvrtcResult") public static int nvrtcDestroyProgram(@ByPtrPtr _nvrtcProgram prog)
prog
- [in] CUDA Runtime Compilation program.::nvrtcCreateProgram
@Cast(value="nvrtcResult") public static int nvrtcDestroyProgram(@Cast(value="_nvrtcProgram**") PointerPointer prog)
@Cast(value="nvrtcResult") public static int nvrtcCompileProgram(_nvrtcProgram prog, int numOptions, @Cast(value="const char*const*") PointerPointer options)
prog
- [in] CUDA Runtime Compilation program.numOptions
- [in] Number of compiler options passed.options
- [in] Compiler options in the form of C string array.\n
\p options can be \c NULL when \p numOptions is 0.@Cast(value="nvrtcResult") public static int nvrtcCompileProgram(_nvrtcProgram prog, int numOptions, @Cast(value="const char*const*") @ByPtrPtr BytePointer options)
@Cast(value="nvrtcResult") public static int nvrtcCompileProgram(_nvrtcProgram prog, int numOptions, @Cast(value="const char*const*") @ByPtrPtr ByteBuffer options)
@Cast(value="nvrtcResult") public static int nvrtcCompileProgram(_nvrtcProgram prog, int numOptions, @Cast(value="const char*const*") @ByPtrPtr byte[] options)
@Cast(value="nvrtcResult") public static int nvrtcGetPTXSize(_nvrtcProgram prog, @Cast(value="size_t*") SizeTPointer ptxSizeRet)
prog
- [in] CUDA Runtime Compilation program.ptxSizeRet
- [out] Size of the generated PTX (including the trailing
\c NULL).::nvrtcGetPTX
@Cast(value="nvrtcResult") public static int nvrtcGetPTX(_nvrtcProgram prog, @Cast(value="char*") BytePointer ptx)
prog
- [in] CUDA Runtime Compilation program.ptx
- [out] Compiled result.::nvrtcGetPTXSize
@Cast(value="nvrtcResult") public static int nvrtcGetPTX(_nvrtcProgram prog, @Cast(value="char*") ByteBuffer ptx)
@Cast(value="nvrtcResult") public static int nvrtcGetPTX(_nvrtcProgram prog, @Cast(value="char*") byte[] ptx)
@Cast(value="nvrtcResult") public static int nvrtcGetCUBINSize(_nvrtcProgram prog, @Cast(value="size_t*") SizeTPointer cubinSizeRet)
prog
- [in] CUDA Runtime Compilation program.cubinSizeRet
- [out] Size of the generated cubin.::nvrtcGetCUBIN
@Cast(value="nvrtcResult") public static int nvrtcGetCUBIN(_nvrtcProgram prog, @Cast(value="char*") BytePointer cubin)
prog
- [in] CUDA Runtime Compilation program.cubin
- [out] Compiled and assembled result.::nvrtcGetCUBINSize
@Cast(value="nvrtcResult") public static int nvrtcGetCUBIN(_nvrtcProgram prog, @Cast(value="char*") ByteBuffer cubin)
@Cast(value="nvrtcResult") public static int nvrtcGetCUBIN(_nvrtcProgram prog, @Cast(value="char*") byte[] cubin)
@Cast(value="nvrtcResult") public static int nvrtcGetNVVMSize(_nvrtcProgram prog, @Cast(value="size_t*") SizeTPointer nvvmSizeRet)
@Cast(value="nvrtcResult") public static int nvrtcGetNVVM(_nvrtcProgram prog, @Cast(value="char*") BytePointer nvvm)
@Cast(value="nvrtcResult") public static int nvrtcGetNVVM(_nvrtcProgram prog, @Cast(value="char*") ByteBuffer nvvm)
@Cast(value="nvrtcResult") public static int nvrtcGetNVVM(_nvrtcProgram prog, @Cast(value="char*") byte[] nvvm)
@Cast(value="nvrtcResult") public static int nvrtcGetLTOIRSize(_nvrtcProgram prog, @Cast(value="size_t*") SizeTPointer LTOIRSizeRet)
prog
- [in] CUDA Runtime Compilation program.LTOIRSizeRet
- [out] Size of the generated LTO IR.::nvrtcGetLTOIR
@Cast(value="nvrtcResult") public static int nvrtcGetLTOIR(_nvrtcProgram prog, @Cast(value="char*") BytePointer LTOIR)
prog
- [in] CUDA Runtime Compilation program.LTOIR
- [out] Compiled result.::nvrtcGetLTOIRSize
@Cast(value="nvrtcResult") public static int nvrtcGetLTOIR(_nvrtcProgram prog, @Cast(value="char*") ByteBuffer LTOIR)
@Cast(value="nvrtcResult") public static int nvrtcGetLTOIR(_nvrtcProgram prog, @Cast(value="char*") byte[] LTOIR)
@Cast(value="nvrtcResult") public static int nvrtcGetOptiXIRSize(_nvrtcProgram prog, @Cast(value="size_t*") SizeTPointer optixirSizeRet)
prog
- [in] CUDA Runtime Compilation program.optixirSizeRet
- [out] Size of the generated LTO IR.::nvrtcGetOptiXIR
@Cast(value="nvrtcResult") public static int nvrtcGetOptiXIR(_nvrtcProgram prog, @Cast(value="char*") BytePointer optixir)
prog
- [in] CUDA Runtime Compilation program.Optix
- [out] IR Compiled result.::nvrtcGetOptiXIRSize
@Cast(value="nvrtcResult") public static int nvrtcGetOptiXIR(_nvrtcProgram prog, @Cast(value="char*") ByteBuffer optixir)
@Cast(value="nvrtcResult") public static int nvrtcGetOptiXIR(_nvrtcProgram prog, @Cast(value="char*") byte[] optixir)
@Cast(value="nvrtcResult") public static int nvrtcGetProgramLogSize(_nvrtcProgram prog, @Cast(value="size_t*") SizeTPointer logSizeRet)
prog
- [in] CUDA Runtime Compilation program.logSizeRet
- [out] Size of the compilation log
(including the trailing \c NULL).::nvrtcGetProgramLog
@Cast(value="nvrtcResult") public static int nvrtcGetProgramLog(_nvrtcProgram prog, @Cast(value="char*") BytePointer log)
prog
- [in] CUDA Runtime Compilation program.log
- [out] Compilation log.::nvrtcGetProgramLogSize
@Cast(value="nvrtcResult") public static int nvrtcGetProgramLog(_nvrtcProgram prog, @Cast(value="char*") ByteBuffer log)
@Cast(value="nvrtcResult") public static int nvrtcGetProgramLog(_nvrtcProgram prog, @Cast(value="char*") byte[] log)
@Cast(value="nvrtcResult") public static int nvrtcAddNameExpression(_nvrtcProgram prog, @Cast(value="const char*") BytePointer name_expression)
prog
- [in] CUDA Runtime Compilation program.name_expression
- [in] constant expression denoting the address of
a __global__ function or __device__/__constant__ variable.::nvrtcGetLoweredName
@Cast(value="nvrtcResult") public static int nvrtcAddNameExpression(_nvrtcProgram prog, String name_expression)
@Cast(value="nvrtcResult") public static int nvrtcGetLoweredName(_nvrtcProgram prog, @Cast(value="const char*") BytePointer name_expression, @Cast(value="const char**") PointerPointer lowered_name)
prog
- [in] CUDA Runtime Compilation program.name_expression
- [in] constant expression denoting the address of
a __global__ function or __device__/__constant__ variable.lowered_name
- [out] initialized by the function to point to a
C string containing the lowered (mangled)
name corresponding to the provided name expression.::nvrtcAddNameExpression
@Cast(value="nvrtcResult") public static int nvrtcGetLoweredName(_nvrtcProgram prog, @Cast(value="const char*") BytePointer name_expression, @Cast(value="const char**") @ByPtrPtr BytePointer lowered_name)
@Cast(value="nvrtcResult") public static int nvrtcGetLoweredName(_nvrtcProgram prog, String name_expression, @Cast(value="const char**") @ByPtrPtr ByteBuffer lowered_name)
@Cast(value="nvrtcResult") public static int nvrtcGetLoweredName(_nvrtcProgram prog, @Cast(value="const char*") BytePointer name_expression, @Cast(value="const char**") @ByPtrPtr byte[] lowered_name)
@Cast(value="nvrtcResult") public static int nvrtcGetLoweredName(_nvrtcProgram prog, String name_expression, @Cast(value="const char**") @ByPtrPtr BytePointer lowered_name)
@Cast(value="nvrtcResult") public static int nvrtcGetLoweredName(_nvrtcProgram prog, @Cast(value="const char*") BytePointer name_expression, @Cast(value="const char**") @ByPtrPtr ByteBuffer lowered_name)
Copyright © 2024. All rights reserved.