cubecl_hip_sys

Function hipMemRetainAllocationHandle

Source
pub unsafe extern "C" fn hipMemRetainAllocationHandle(
    handle: *mut hipMemGenericAllocationHandle_t,
    addr: *mut c_void,
) -> hipError_t
Expand description

@brief Returns the allocation handle of the backing memory allocation given the address.

@param [out] handle - handle representing addr. @param [in] addr - address to look up. @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.