cubecl_hip_sys

Function hipMemcpyFromSymbol

Source
pub unsafe extern "C" fn hipMemcpyFromSymbol(
    dst: *mut c_void,
    symbol: *const c_void,
    sizeBytes: usize,
    offset: usize,
    kind: hipMemcpyKind,
) -> hipError_t
Expand description

@brief Copies data from the given symbol on the device.

@param[out] dst Returns pointer to destinition memory address @param[in] symbol Pointer to the symbole address on the device @param[in] sizeBytes Size in bytes to copy @param[in] offset Offset in bytes from the start of symbole @param[in] kind Type of memory transfer

@return #hipSuccess, #hipErrorInvalidValue