cubecl_hip_sys

Function hipIpcCloseMemHandle

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

@brief Close memory mapped with hipIpcOpenMemHandle

Unmaps memory returnd by hipIpcOpenMemHandle. The original allocation in the exporting process as well as imported mappings in other processes will be unaffected.

Any resources used to enable peer access will be freed if this is the last mapping using them.

@param devPtr - Device pointer returned by hipIpcOpenMemHandle

@returns #hipSuccess, #hipErrorMapFailed, #hipErrorInvalidHandle

@note This IPC memory related feature API on Windows may behave differently from Linux.