cuda.bindings._v2.driver.link_add_data_v2#
- cuda.bindings._v2.driver.link_add_data_v2(
- intptr_t state,
- int type,
- data,
- name,
- options,
- option_values,
Add an input to a pending linker invocation.
Ownership of
datais 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 ofCU_JIT_WALL_TIME,CU_JIT_INFO_LOG_BUFFER,CU_JIT_ERROR_LOG_BUFFER,CU_JIT_TARGET_FROM_CUCONTEXT, orCU_JIT_TARGET.- Parameters:
state (intptr_t) – A pending linker action.
type (JitInputType) – The type of the input data.
data (bytes) – The input data. PTX must be NULL-terminated.
name (bytes) – An optional name for this input in log messages.
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
cuLinkAddData_v2