Skip to content

Commit

Permalink
Merge pull request oneapi-src#2062 from nrspruit/fix_inorder_cache
Browse files Browse the repository at this point in the history
[L0] Fix Command List Cache to correctly set In order List property
  • Loading branch information
pbalcer authored Sep 6, 2024
2 parents d50a59e + 5be1aa4 commit 9d71afb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions source/adapters/level_zero/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -767,9 +767,11 @@ ur_result_t ur_context_handle_t_::getAvailableCommandList(
CommandList =
Queue->CommandListMap
.emplace(ZeCommandList,
ur_command_list_info_t(ZeFence, true, false,
ZeCommandQueue, ZeQueueDesc,
Queue->useCompletionBatching()))
ur_command_list_info_t(
ZeFence, true, false, ZeCommandQueue, ZeQueueDesc,
Queue->useCompletionBatching(), true,
ZeCommandListIt->second.InOrderList,
ZeCommandListIt->second.IsImmediate))
.first;
}
ZeCommandListCache.erase(ZeCommandListIt);
Expand Down

0 comments on commit 9d71afb

Please sign in to comment.