|
21 | 21 | types defined by dpctl's C API.
|
22 | 22 | """
|
23 | 23 |
|
24 |
| -from libc.stdint cimport int64_t, uint32_t |
| 24 | +from libc.stdint cimport int64_t, uint32_t, uint64_t |
25 | 25 | from libcpp cimport bool
|
26 | 26 |
|
27 | 27 |
|
@@ -104,6 +104,12 @@ cdef extern from "dpctl_sycl_enum_types.h":
|
104 | 104 | _L1_cache 'L1_cache',
|
105 | 105 | _next_partitionable 'next_partitionable',
|
106 | 106 |
|
| 107 | + ctypedef enum _event_status_type 'DPCTLSyclEventStatusType': |
| 108 | + _UNKNOWN_STATUS 'DPCTL_UNKNOWN_STATUS' |
| 109 | + _SUBMITTED 'DPCTL_SUBMITTED' |
| 110 | + _RUNNING 'DPCTL_RUNNING' |
| 111 | + _COMPLETE 'DPCTL_COMPLETE' |
| 112 | + |
107 | 113 |
|
108 | 114 | cdef extern from "dpctl_sycl_types.h":
|
109 | 115 | cdef struct DPCTLOpaqueSyclContext
|
@@ -217,8 +223,25 @@ cdef extern from "dpctl_sycl_device_selector_interface.h":
|
217 | 223 |
|
218 | 224 |
|
219 | 225 | cdef extern from "dpctl_sycl_event_interface.h":
|
| 226 | + cdef DPCTLSyclEventRef DPCTLEvent_Create() |
| 227 | + cdef DPCTLSyclEventRef DPCTLEvent_Copy(const DPCTLSyclEventRef ERef) |
220 | 228 | cdef void DPCTLEvent_Wait(DPCTLSyclEventRef ERef)
|
| 229 | + cdef void DPCTLEvent_WaitAndThrow(DPCTLSyclEventRef ERef) |
221 | 230 | cdef void DPCTLEvent_Delete(DPCTLSyclEventRef ERef)
|
| 231 | + cdef _event_status_type DPCTLEvent_GetCommandExecutionStatus(DPCTLSyclEventRef ERef) |
| 232 | + cdef _backend_type DPCTLEvent_GetBackend(DPCTLSyclEventRef ERef) |
| 233 | + cdef struct DPCTLEventVector |
| 234 | + ctypedef DPCTLEventVector *DPCTLEventVectorRef |
| 235 | + cdef void DPCTLEventVector_Delete(DPCTLEventVectorRef EVRef) |
| 236 | + cdef size_t DPCTLEventVector_Size(DPCTLEventVectorRef EVRef) |
| 237 | + cdef DPCTLSyclEventRef DPCTLEventVector_GetAt( |
| 238 | + DPCTLEventVectorRef EVRef, |
| 239 | + size_t index) |
| 240 | + cdef DPCTLEventVectorRef DPCTLEvent_GetWaitList( |
| 241 | + DPCTLSyclEventRef ERef) |
| 242 | + cdef uint64_t DPCTLEvent_GetProfilingInfoSubmit(DPCTLSyclEventRef ERef) |
| 243 | + cdef uint64_t DPCTLEvent_GetProfilingInfoStart(DPCTLSyclEventRef ERef) |
| 244 | + cdef uint64_t DPCTLEvent_GetProfilingInfoEnd(DPCTLSyclEventRef ERef) |
222 | 245 |
|
223 | 246 |
|
224 | 247 | cdef extern from "dpctl_sycl_kernel_interface.h":
|
|
0 commit comments