Skip to content

Commit 29cf917

Browse files
committed
Changed convention for InUse flag for immediate commandlists.
1 parent 4441ea3 commit 29cf917

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,7 +1581,7 @@ pi_command_list_ptr_t &_pi_queue::pi_queue_group_t::getImmCmdList() {
15811581
ImmCmdLists[Index] =
15821582
Queue->CommandListMap
15831583
.insert(std::pair<ze_command_list_handle_t, pi_command_list_info_t>{
1584-
ZeCommandList, {nullptr, false, nullptr, QueueOrdinal}})
1584+
ZeCommandList, {nullptr, true, nullptr, QueueOrdinal}})
15851585
.first;
15861586
// Add this commandlist to the cache so it can be destroyed as part of
15871587
// QueueRelease
@@ -3297,7 +3297,7 @@ pi_result piQueueRelease(pi_queue Queue) {
32973297
// For immediate commandlists we don't need to do an L0 reset of the
32983298
// commandlist but do need to do event cleanup which is also in the
32993299
// resetCommandList function.
3300-
if (UseImmediateCommandLists || it->second.InUse) {
3300+
if (it->second.InUse) {
33013301
Queue->resetCommandList(it, true);
33023302
}
33033303
// TODO: remove "if" when the problem is fixed in the level zero

0 commit comments

Comments
 (0)