@@ -197,11 +197,11 @@ struct ur_context_handle_t_ : _ur_object {
197
197
// slot for a host-visible event. The ProfilingEnabled tells is we need a
198
198
// slot for an event with profiling capabilities.
199
199
ur_result_t getFreeSlotInExistingOrNewPool (ze_event_pool_handle_t &, size_t &,
200
- EventFlags Flags,
200
+ enum ur_event_flag_t Flags,
201
201
ur_device_handle_t Device);
202
202
203
203
// Get ur_event_handle_t from cache.
204
- ur_event_handle_t getEventFromContextCache (EventFlags Flags,
204
+ ur_event_handle_t getEventFromContextCache (enum ur_event_flag_t Flags,
205
205
ur_device_handle_t Device);
206
206
207
207
// Add ur_event_handle_t to cache.
@@ -217,7 +217,7 @@ struct ur_context_handle_t_ : _ur_object {
217
217
};
218
218
219
219
std::list<ze_event_pool_handle_t > *
220
- getZeEventPoolCache (EventFlags Flags, ze_device_handle_t ZeDevice) {
220
+ getZeEventPoolCache (enum ur_event_flag_t Flags, ze_device_handle_t ZeDevice) {
221
221
EventPoolCacheType CacheType;
222
222
223
223
calculateCacheIndex (Flags, CacheType);
@@ -238,7 +238,7 @@ struct ur_context_handle_t_ : _ur_object {
238
238
}
239
239
}
240
240
241
- ur_result_t calculateCacheIndex (EventFlags Flags,
241
+ ur_result_t calculateCacheIndex (enum ur_event_flag_t Flags,
242
242
EventPoolCacheType &CacheType) {
243
243
if (Flags & COUNTER_BASED && Flags & HOST_VISIBLE &&
244
244
!(Flags & USING_IMM_CMDLIST)) {
@@ -296,7 +296,7 @@ struct ur_context_handle_t_ : _ur_object {
296
296
297
297
private:
298
298
// Get the cache of events for a provided scope and profiling mode.
299
- auto getEventCache (EventFlags Flags, ur_device_handle_t Device) {
299
+ auto getEventCache (enum ur_event_flag_t Flags, ur_device_handle_t Device) {
300
300
if (Flags & HOST_VISIBLE) {
301
301
if (Device) {
302
302
auto EventCachesMap = Flags & ENABLE_PROFILER
0 commit comments