Skip to content

Commit

Permalink
[L0] Refactored against in-order list to enable CB event by default
Browse files Browse the repository at this point in the history
Signed-off-by: Winston Zhang <[email protected]>
  • Loading branch information
winstonzhang-intel committed Jul 23, 2024
1 parent 5dfc0d0 commit a7249fa
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions source/adapters/level_zero/context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,15 @@ struct ur_context_handle_t_ : _ur_object {
// Add ur_event_handle_t to cache.
void addEventToContextCache(ur_event_handle_t);

enum EventCacheType {
HostVisibleProfilingCacheType,
HostVisibleRegularCacheType,
HostInvisibleProfilingCacheType,
HostInvisibleRegularCacheType,
CounterBasedImmediateCacheType,
CounterBasedRegularCacheType
};

enum ZeEventPoolCacheType {
HostVisibleCacheType,
HostInvisibleCacheType,
Expand All @@ -223,14 +232,6 @@ struct ur_context_handle_t_ : _ur_object {
HostInvisibleCounterBasedImmediateCacheType
};

enum EventCacheType {
HostVisibleProfilingCacheType,
HostVisibleRegularCacheType,
HostInvisibleProfilingCacheType,
HostInvisibleRegularCacheType,
CounterBasedImmediateCacheType,
CounterBasedRegularCacheType
};

std::list<ze_event_pool_handle_t> *
getZeEventPoolCache(bool HostVisible, bool WithProfiling,
Expand Down

0 comments on commit a7249fa

Please sign in to comment.