pub unsafe extern "C" fn cuLinkAddData_v2(
state: CUlinkState,
type_: CUjitInputType,
data: *mut c_void,
size: usize,
name: *const c_char,
numOptions: c_uint,
options: *mut CUjit_option,
optionValues: *mut *mut c_void,
) -> CUresult
Expand description
\brief Add an input to a pending linker invocation
Ownership of \p data is retained by the caller. No reference is retained to any inputs after this call returns.
This method accepts only compiler options, which are used if the data must be compiled from PTX, and does not accept any of ::CU_JIT_WALL_TIME, ::CU_JIT_INFO_LOG_BUFFER, ::CU_JIT_ERROR_LOG_BUFFER, ::CU_JIT_TARGET_FROM_CUCONTEXT, or ::CU_JIT_TARGET.
\note For LTO-IR input, only LTO-IR compiled with toolkits prior to CUDA 12.0 will be accepted
\param state A pending linker action. \param type The type of the input data. \param data The input data. PTX must be NULL-terminated. \param size The length of the input data. \param name An optional name for this input in log messages. \param numOptions Size of options. \param options Options to be applied only for this input (overrides options from ::cuLinkCreate). \param optionValues Array of option values, each cast to void *.
\return ::CUDA_SUCCESS, ::CUDA_ERROR_INVALID_HANDLE, ::CUDA_ERROR_INVALID_VALUE, ::CUDA_ERROR_INVALID_IMAGE, ::CUDA_ERROR_INVALID_PTX, ::CUDA_ERROR_UNSUPPORTED_PTX_VERSION, ::CUDA_ERROR_OUT_OF_MEMORY, ::CUDA_ERROR_NO_BINARY_FOR_GPU
\sa ::cuLinkCreate, ::cuLinkAddFile, ::cuLinkComplete, ::cuLinkDestroy