Skip to content

Commit a89a428

Browse files
committed
Address review comments
1 parent 983d88a commit a89a428

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,9 @@ pi_result _pi_context::getAvailableCommandList(
800800
if (auto Res = Queue->executeOpenCommandList())
801801
return Res;
802802
}
803-
bool UseCopyEngine = PreferCopyEngine && Queue->Device->hasCopyEngine();
803+
bool UseCopyEngine =
804+
(!(Queue->isInOrderQueue()) || UseCopyEngineForInOrderQueue) &&
805+
PreferCopyEngine && Queue->Device->hasCopyEngine();
804806

805807
// Create/Reuse the command list, because in Level Zero commands are added to
806808
// the command lists, and later are then added to the command queue.

0 commit comments

Comments
 (0)