@@ -217,7 +217,7 @@ struct ur_context_handle_t_ : _ur_object {
217
217
// Add ur_event_handle_t to cache.
218
218
void addEventToContextCache (ur_event_handle_t );
219
219
220
- enum EventPoolCacheType {
220
+ enum ZeEventPoolCacheType {
221
221
HostVisibleCacheType,
222
222
HostInvisibleCacheType,
223
223
HostVisibleCounterBasedRegularCacheType,
@@ -226,11 +226,20 @@ struct ur_context_handle_t_ : _ur_object {
226
226
HostInvisibleCounterBasedImmediateCacheType
227
227
};
228
228
229
+ enum EventCacheType {
230
+ HostVisibleProfilingCacheType,
231
+ HostVisibleRegularCacheType,
232
+ HostInvisibleProfilingCacheType,
233
+ HostInvisibleRegularCacheType,
234
+ CounterBasedImmediateCacheType,
235
+ CounterBasedRegularCacheType
236
+ };
237
+
229
238
std::list<ze_event_pool_handle_t > *
230
239
getZeEventPoolCache (bool HostVisible, bool WithProfiling,
231
240
bool CounterBasedEventEnabled, bool UsingImmediateCmdList,
232
241
ze_device_handle_t ZeDevice) {
233
- EventPoolCacheType CacheType;
242
+ ZeEventPoolCacheType CacheType;
234
243
235
244
calculateCacheIndex (HostVisible, CounterBasedEventEnabled,
236
245
UsingImmediateCmdList, CacheType);
@@ -253,7 +262,7 @@ struct ur_context_handle_t_ : _ur_object {
253
262
ur_result_t calculateCacheIndex (bool HostVisible,
254
263
bool CounterBasedEventEnabled,
255
264
bool UsingImmediateCmdList,
256
- EventPoolCacheType &CacheType) {
265
+ ZeEventPoolCacheType &CacheType) {
257
266
if (CounterBasedEventEnabled && HostVisible && !UsingImmediateCmdList) {
258
267
CacheType = HostVisibleCounterBasedRegularCacheType;
259
268
} else if (CounterBasedEventEnabled && !HostVisible &&
@@ -311,14 +320,6 @@ struct ur_context_handle_t_ : _ur_object {
311
320
ze_context_handle_t getZeHandle () const ;
312
321
313
322
private:
314
- enum EventCacheType {
315
- HostVisibleProfilingCacheType,
316
- HostVisibleRegularCacheType,
317
- HostInvisibleProfilingCacheType,
318
- HostInvisibleRegularCacheType,
319
- CounterBasedRegularCacheType,
320
- CounterBasedImmediateCacheType
321
- };
322
323
// Get the cache of events for a provided scope and profiling mode.
323
324
auto getEventCache (bool HostVisible, bool WithProfiling,
324
325
ur_device_handle_t Device) {
0 commit comments