cubecl_hip_sys

Function hipMemMap

Source
pub unsafe extern "C" fn hipMemMap(
    ptr: *mut c_void,
    size: usize,
    offset: usize,
    handle: hipMemGenericAllocationHandle_t,
    flags: c_ulonglong,
) -> hipError_t
Expand description

@brief Maps an allocation handle to a reserved virtual address range.

@param [in] ptr - address where the memory will be mapped. @param [in] size - size of the mapping. @param [in] offset - offset into the memory, currently must be zero. @param [in] handle - memory allocation to be mapped. @param [in] flags - currently unused, must be zero. @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorNotSupported @warning : This API is marked as beta, meaning, while this is feature complete, it is still open to changes and may have outstanding issues.

@note This API is implemented on Linux, under development on Windows.