Skip to content

Commit aa6935c

Browse files
added DPCTL<Name>_Hash to _backend
1 parent 695616f commit aa6935c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dpctl/_backend.pxd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ cdef extern from "dpctl_sycl_device_interface.h":
152152
cdef DPCTLSyclPlatformRef DPCTLDevice_GetPlatform(
153153
const DPCTLSyclDeviceRef DRef)
154154
cdef const char *DPCTLDevice_GetVendor(const DPCTLSyclDeviceRef DRef)
155+
cdef size_t DPCTLDevice_Hash(const DPCTLSyclDeviceRef DRef)
155156
cdef bool DPCTLDevice_IsAccelerator(const DPCTLSyclDeviceRef DRef)
156157
cdef bool DPCTLDevice_IsCPU(const DPCTLSyclDeviceRef DRef)
157158
cdef bool DPCTLDevice_IsGPU(const DPCTLSyclDeviceRef DRef)
@@ -268,6 +269,7 @@ cdef extern from "dpctl_sycl_context_interface.h":
268269
cdef size_t DPCTLContext_DeviceCount(const DPCTLSyclContextRef CRef)
269270
cdef bool DPCTLContext_AreEq(const DPCTLSyclContextRef CtxRef1,
270271
const DPCTLSyclContextRef CtxRef2)
272+
cdef size_t DPCTLContext_Hash(const DPCTLSyclContextRef CRef)
271273
cdef _backend_type DPCTLContext_GetBackend(const DPCTLSyclContextRef)
272274
cdef void DPCTLContext_Delete(DPCTLSyclContextRef CtxRef)
273275

@@ -307,6 +309,7 @@ cdef extern from "dpctl_sycl_queue_interface.h":
307309
cdef _backend_type DPCTLQueue_GetBackend(const DPCTLSyclQueueRef Q)
308310
cdef DPCTLSyclContextRef DPCTLQueue_GetContext(const DPCTLSyclQueueRef Q)
309311
cdef DPCTLSyclDeviceRef DPCTLQueue_GetDevice(const DPCTLSyclQueueRef Q)
312+
cdef size_t DPCTLQueue_Hash(const DPCTLSyclQueueRef Q)
310313
cdef DPCTLSyclEventRef DPCTLQueue_SubmitRange(
311314
const DPCTLSyclKernelRef Ref,
312315
const DPCTLSyclQueueRef QRef,

0 commit comments

Comments
 (0)