cubecl_hip_sys

Function hipHostGetDevicePointer

Source
pub unsafe extern "C" fn hipHostGetDevicePointer(
    devPtr: *mut *mut c_void,
    hstPtr: *mut c_void,
    flags: c_uint,
) -> hipError_t
Expand description

@brief Get Device pointer from Host Pointer allocated through hipHostMalloc

@param[out] devPtr Device Pointer mapped to passed host pointer @param[in] hstPtr Host Pointer allocated through hipHostMalloc @param[in] flags Flags to be passed for extension

@return #hipSuccess, #hipErrorInvalidValue, #hipErrorOutOfMemory

@see hipSetDeviceFlags, hipHostMalloc