'Import the IPC memory and returns a raw CUDA memory pointer object'

def open(self, context):

    if (self.base is not None):
        raise ValueError('opening    IpcHandle    from    original    process')
    if (self._opened_mem is not None):
        raise ValueError('IpcHandle    is    already    opened')
    mem = context.open_ipc_handle(self.handle, self.size)
    self._opened_mem = mem
    return mem.own()
