pub unsafe extern "C" fn cuLinkAddFile_v2(
state: CUlinkState,
type_: CUjitInputType,
path: *const c_char,
numOptions: c_uint,
options: *mut CUjit_option,
optionValues: *mut *mut c_void,
) -> CUresult
Expand description
\brief Add a file input to a pending linker invocation
No reference is retained to any inputs after this call returns.
This method accepts only compiler options, which are used if the input 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.
This method is equivalent to invoking ::cuLinkAddData on the contents of the file.
\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 path Path to the input file \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_FILE_NOT_FOUND ::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, ::cuLinkAddData, ::cuLinkComplete, ::cuLinkDestroy