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