cuda.bindings._v2.driver.link_add_file_v2#
- cuda.bindings._v2.driver.link_add_file_v2(
- intptr_t state,
- int type,
- path,
- unsigned int num_options,
- intptr_t options,
- intptr_t option_values,
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, orCU_JIT_TARGET. This method is equivalent to invokingcuLinkAddDataon the contents of the file.- Parameters:
state (intptr_t) – A pending linker action.
type (JitInputType) – The type of the input data.
path (bytes) – Path to the input file.
num_options (unsigned int) – Size of options.
options (intptr_t) – Options to be applied only for this input (overrides options from
cuLinkCreate).option_values (intptr_t) – Array of option values, each cast to void *.
Note
For LTO-IR input, only LTO-IR compiled with toolkits prior to CUDA 12.0 will be accepted.
See also
cuLinkAddFile_v2