Skip to content

Commit 8ab3463

Browse files
[UR][L0] SYCL_UR_TRACE makes urEnqueueUSMMemcpy non-blocking with trace flag (#18876)
This change makes it so that executeCmdlist will be blocking and execute with batched and immediate commandlist = 0. --------- Signed-off-by: Zhang, Winston <[email protected]>
1 parent db27d38 commit 8ab3463

File tree

1 file changed

+2
-2
lines changed
  • unified-runtime/source/adapters/level_zero

1 file changed

+2
-2
lines changed

unified-runtime/source/adapters/level_zero/queue.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,6 @@ ur_queue_handle_t_::executeCommandList(ur_command_list_ptr_t CommandList,
12771277
// So, disable it for modes where we print PI traces. Printing
12781278
// traces incurs much different timings than real execution
12791279
// ansyway, and many regression tests use it.
1280-
//
12811280
bool CurrentlyEmpty = !PrintTrace && this->LastCommandEvent == nullptr;
12821281

12831282
// The list can be empty if command-list only contains signals of proxy
@@ -1316,7 +1315,8 @@ ur_queue_handle_t_::executeCommandList(ur_command_list_ptr_t CommandList,
13161315
die("executeCommandList: OpenCommandList should be equal to"
13171316
"null or CommandList");
13181317

1319-
if (CommandList->second.size() < CommandBatch.QueueBatchSize) {
1318+
if (CommandList->second.size() < CommandBatch.QueueBatchSize &&
1319+
!IsBlocking) {
13201320
CommandBatch.OpenCommandList = CommandList;
13211321
return UR_RESULT_SUCCESS;
13221322
}

0 commit comments

Comments
 (0)