cuda.bindings._v2.driver.link_add_data_v2#
- cuda.bindings._v2.driver.link_add_data_v2(
- intptr_t state,
- int type,
- intptr_t data,
- size_t size,
- name,
- unsigned int num_options,
- intptr_t options,
- intptr_t 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 (intptr_t) – The input data. PTX must be NULL-terminated.
size (size_t) – The length of the input data.
name (bytes) – An optional name for this input in log messages.
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
cuLinkAddData_v2