@@ -101,6 +101,7 @@ cdef extern from "syclinterface/dpctl_sycl_enum_types.h":
101101 _emulated " emulated" ,
102102 _is_component " is_component" ,
103103 _is_composite " is_composite" ,
104+ _ext_oneapi_ipc_memory " ext_oneapi_ipc_memory" ,
104105
105106 ctypedef enum _partition_affinity_domain_type \
106107 " DPCTLPartitionAffinityDomainType" :
@@ -601,6 +602,7 @@ cdef extern from "syclinterface/dpctl_sycl_extension_interface.h":
601602 DPCTLSyclWorkGroupMemoryRef Ref)
602603
603604 cdef bint DPCTLWorkGroupMemory_Available()
605+ cdef bint DPCTLIPCMem_Available()
604606
605607 cdef struct DPCTLOpaqueRawKernelArg
606608 ctypedef DPCTLOpaqueRawKernelArg * DPCTLSyclRawKernelArgRef
@@ -612,3 +614,19 @@ cdef extern from "syclinterface/dpctl_sycl_extension_interface.h":
612614 DPCTLSyclRawKernelArgRef Ref)
613615
614616 cdef bint DPCTLRawKernelArg_Available()
617+
618+ cdef extern from " syclinterface/dpctl_sycl_ipc_memory_interface.h" :
619+ cdef int DPCTLIPCMem_GetHandle(
620+ DPCTLSyclUSMRef Ptr,
621+ DPCTLSyclContextRef CRef,
622+ char ** DataOut,
623+ size_t * SizeOut)
624+ cdef DPCTLSyclUSMRef DPCTLIPCMem_OpenHandle(
625+ const char * HandleData,
626+ size_t HandleDataSize,
627+ DPCTLSyclContextRef CRef,
628+ DPCTLSyclDeviceRef DRef)
629+ cdef void DPCTLIPCMem_CloseHandle(
630+ DPCTLSyclUSMRef MappedPtr,
631+ DPCTLSyclContextRef CRef)
632+ cdef void DPCTLIPCMem_FreeHandleData(char * Data)
0 commit comments