Skip to content

Commit 5c9de5a

Browse files
[L0] Refactored against in-order list to enable CB event by default
Signed-off-by: Winston Zhang <winston.zhang@intel.com>
1 parent 51ce97a commit 5c9de5a

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

source/adapters/level_zero/context.hpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,15 @@ struct ur_context_handle_t_ : _ur_object {
217217
// Add ur_event_handle_t to cache.
218218
void addEventToContextCache(ur_event_handle_t);
219219

220+
enum EventCacheType {
221+
HostVisibleProfilingCacheType,
222+
HostVisibleRegularCacheType,
223+
HostInvisibleProfilingCacheType,
224+
HostInvisibleRegularCacheType,
225+
CounterBasedImmediateCacheType,
226+
CounterBasedRegularCacheType
227+
};
228+
220229
enum ZeEventPoolCacheType {
221230
HostVisibleCacheType,
222231
HostInvisibleCacheType,
@@ -226,14 +235,6 @@ struct ur_context_handle_t_ : _ur_object {
226235
HostInvisibleCounterBasedImmediateCacheType
227236
};
228237

229-
enum EventCacheType {
230-
HostVisibleProfilingCacheType,
231-
HostVisibleRegularCacheType,
232-
HostInvisibleProfilingCacheType,
233-
HostInvisibleRegularCacheType,
234-
CounterBasedImmediateCacheType,
235-
CounterBasedRegularCacheType
236-
};
237238

238239
std::list<ze_event_pool_handle_t> *
239240
getZeEventPoolCache(bool HostVisible, bool WithProfiling,

0 commit comments

Comments
 (0)