File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ cdef extern from "syclinterface/dpctl_sycl_enum_types.h":
37
37
ctypedef enum _usm_type ' DPCTLSyclUSMType' :
38
38
_USM_UNKNOWN ' DPCTL_USM_UNKNOWN'
39
39
_USM_DEVICE ' DPCTL_USM_DEVICE'
40
- _USM_HOST ' DPCTL_USM_HOST'
41
40
_USM_SHARED ' DPCTL_USM_SHARED'
41
+ _USM_HOST ' DPCTL_USM_HOST'
42
42
43
43
ctypedef enum _backend_type ' DPCTLSyclBackendType' :
44
44
_ALL_BACKENDS ' DPCTL_ALL_BACKENDS'
Original file line number Diff line number Diff line change @@ -113,3 +113,14 @@ class global_mem_cache_type(Enum):
113
113
none = auto ()
114
114
read_only = auto ()
115
115
read_write = auto ()
116
+
117
+
118
+ class usm_type (Enum ):
119
+ """
120
+ An enumeration of USM allocation types.
121
+ """
122
+
123
+ unknown = auto ()
124
+ device = auto ()
125
+ shared = auto ()
126
+ host = auto ()
Original file line number Diff line number Diff line change @@ -39,8 +39,8 @@ typedef enum
39
39
{
40
40
DPCTL_USM_UNKNOWN = 0 ,
41
41
DPCTL_USM_DEVICE,
42
- DPCTL_USM_HOST ,
43
- DPCTL_USM_SHARED
42
+ DPCTL_USM_SHARED ,
43
+ DPCTL_USM_HOST
44
44
} DPCTLSyclUSMType;
45
45
46
46
/* !
You can’t perform that action at this time.
0 commit comments