We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 51f8152 + 70924db commit 92d6c64Copy full SHA for 92d6c64
source/adapters/level_zero/queue.cpp
@@ -2398,7 +2398,11 @@ ur_command_list_ptr_t &ur_queue_handle_t_::ur_queue_group_t::getImmCmdList() {
2398
uint32_t QueueIndex, QueueOrdinal;
2399
auto Index = getQueueIndex(&QueueOrdinal, &QueueIndex);
2400
2401
- if (ImmCmdLists[Index] != Queue->CommandListMap.end())
+ if ((ImmCmdLists[Index] != Queue->CommandListMap.end()) &&
2402
+ (!Queue->CounterBasedEventsEnabled ||
2403
+ (Queue->CounterBasedEventsEnabled &&
2404
+ (ImmCmdLists[Index]->second.ZeQueueDesc.flags &
2405
+ ZE_COMMAND_QUEUE_FLAG_IN_ORDER))))
2406
return ImmCmdLists[Index];
2407
2408
ZeStruct<ze_command_queue_desc_t> ZeCommandQueueDesc;
0 commit comments