cubecl_hip_sys

Function hiprtcLinkAddData

Source
pub unsafe extern "C" fn hiprtcLinkAddData(
    hip_link_state: hiprtcLinkState,
    input_type: hiprtcJITInputType,
    image: *mut c_void,
    image_size: usize,
    name: *const c_char,
    num_options: c_uint,
    options_ptr: *mut hiprtcJIT_option,
    option_values: *mut *mut c_void,
) -> hiprtcResult
Expand description

@brief Completes the linking of the given program. @ingroup Runtime @param [in] hip_link_state hiprtc link state @param [in] input_type Type of the input data or bitcode @param [in] image Input data which is null terminated @param [in] image_size Size of the input data @param [in] name Optional name for this input @param [in] num_options Size of the options @param [in] options_ptr Array of options applied to this input @param [in] option_values Array of option values cast to void*

@returns #HIPRTC_SUCCESS, #HIPRTC_ERROR_INVALID_INPUT

If adding the file fails, it will @return #HIPRTC_ERROR_PROGRAM_CREATION_FAILURE

@see hiprtcResult