Skip to content

Commit b2c490f

Browse files
committed
Move IPC memory API from dpctl.ipc to dpctl.memory
Migrate the SYCL IPC memory functionality from the standalone dpctl.ipc.IPCMemoryHandle class into methods on dpctl.memory._Memory: - _Memory.get_ipc_handle() - _Memory.open_ipc_handle(...) - _Memory.close_ipc_mapping() Signed-off-by: Zhan Xue <zhan.xue@intel.com>
1 parent 3dea379 commit b2c490f

15 files changed

Lines changed: 268 additions & 424 deletions

dpctl/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,4 +206,3 @@ target_link_libraries(DpctlCAPI INTERFACE ${_trgt}_headers)
206206
add_subdirectory(program)
207207
add_subdirectory(memory)
208208
add_subdirectory(utils)
209-
add_subdirectory(ipc)

dpctl/_backend.pxd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ cdef extern from "syclinterface/dpctl_sycl_extension_interface.h":
596596
DPCTLSyclWorkGroupMemoryRef Ref)
597597

598598
cdef bint DPCTLWorkGroupMemory_Available()
599+
cdef bint DPCTLIPCMem_Available()
599600

600601
cdef struct DPCTLOpaqueRawKernelArg
601602
ctypedef DPCTLOpaqueRawKernelArg *DPCTLSyclRawKernelArgRef

dpctl/ipc/CMakeLists.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

dpctl/ipc/__init__.pxd

Lines changed: 0 additions & 18 deletions
This file was deleted.

dpctl/ipc/__init__.py

Lines changed: 0 additions & 82 deletions
This file was deleted.

dpctl/ipc/_ipc_memory.pxd

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)