dpctl.memory.IPCMemoryHandle.close_mapping

static IPCMemoryHandle.close_mapping(usm_memory)

Explicitly close an IPC mapping.

After calling this, usm_memory is invalidated and must not be used again.

Parameters:

usm_memory (MemoryIPCDevice) – The memory object returned by open().