diff --git a/source/adapters/level_zero/queue.cpp b/source/adapters/level_zero/queue.cpp index 572397aa5f..d3584bae53 100644 --- a/source/adapters/level_zero/queue.cpp +++ b/source/adapters/level_zero/queue.cpp @@ -2288,6 +2288,10 @@ ur_result_t ur_queue_handle_t_::createCommandList( IsInOrderList = true; } + logger::debug( + "create command list ordinal: {}, type: regular, device: {}, inOrder: {}", + QueueGroupOrdinal, Device->ZeDevice, IsInOrderList); + ZE2UR_CALL(zeCommandListCreate, (Context->ZeContext, Device->ZeDevice, &ZeCommandListDesc, &ZeCommandList)); @@ -2454,6 +2458,10 @@ ur_command_list_ptr_t &ur_queue_handle_t_::ur_queue_group_t::getImmCmdList() { "(round robin in [{}, {}]) priority = {}", ZeCommandQueueDesc.ordinal, ZeCommandQueueDesc.index, LowerIndex, UpperIndex, Priority); + logger::debug("create command list ordinal: {}, type: immediate, device: " + "{}, inOrder: {}", + ZeCommandQueueDesc.ordinal, Queue->Device->ZeDevice, + isInOrderList); ZE_CALL_NOCHECK(zeCommandListCreateImmediate, (Queue->Context->ZeContext, Queue->Device->ZeDevice, diff --git a/source/adapters/level_zero/v2/command_list_cache.cpp b/source/adapters/level_zero/v2/command_list_cache.cpp index be4cb813fd..2a5f7e20e2 100644 --- a/source/adapters/level_zero/v2/command_list_cache.cpp +++ b/source/adapters/level_zero/v2/command_list_cache.cpp @@ -69,6 +69,12 @@ command_list_cache_t::createCommandList(const command_list_descriptor_t &desc) { QueueDesc.index = ImmCmdDesc->Index.value(); } QueueDesc.pNext = &offloadDesc; + + logger::debug("create command list ordinal: {}, type: immediate, device: " + "{}, inOrder: {}", + ImmCmdDesc->Ordinal, ImmCmdDesc->ZeDevice, + ImmCmdDesc->IsInOrder); + ZE2UR_CALL_THROWS( zeCommandListCreateImmediate, (ZeContext, ImmCmdDesc->ZeDevice, &QueueDesc, &ZeCommandList)); @@ -81,6 +87,11 @@ command_list_cache_t::createCommandList(const command_list_descriptor_t &desc) { CmdListDesc.commandQueueGroupOrdinal = RegCmdDesc.Ordinal; CmdListDesc.pNext = &offloadDesc; + logger::debug("create command list ordinal: {}, type: immediate, device: " + "{}, inOrder: {}", + RegCmdDesc.Ordinal, RegCmdDesc.ZeDevice, + RegCmdDesc.IsInOrder); + ze_command_list_handle_t ZeCommandList; ZE2UR_CALL_THROWS(zeCommandListCreate, (ZeContext, RegCmdDesc.ZeDevice, &CmdListDesc, &ZeCommandList));