cubecl_hip_sys

Function hipMemImportFromShareableHandle

Source
pub unsafe extern "C" fn hipMemImportFromShareableHandle(
    handle: *mut hipMemGenericAllocationHandle_t,
    osHandle: *mut c_void,
    shHandleType: hipMemAllocationHandleType,
) -> hipError_t
Expand description

@brief Imports an allocation from a requested shareable handle type.

@param [out] handle - returned value. @param [in] osHandle - shareable handle representing the memory allocation. @param [in] shHandleType - handle type. @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.