cuda.bindings._v2.driver.link_add_file_v2#
- cuda.bindings._v2.driver.link_add_file_v2(
- intptr_t state,
- int type,
- path,
- options,
- 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.
options (object) –
Options to be applied only for this input (overrides options from
cuLinkCreate). It must be:a Python sequence of
JitOption, orNonefor NULL.
option_values (object) –
Array of option values, each cast to void *. It must be:
a Python sequence of
ints (as pointer addresses), orNonefor NULL.
Note
For LTO-IR input, only LTO-IR compiled with toolkits prior to CUDA 12.0 will be accepted.
See also
cuLinkAddFile_v2