Skip to content

Commit

Permalink
[SYCL][L0] Add a barrier before signal of host-visible proxy (#7205)
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey V Maslov <sergey.v.maslov@intel.com>
  • Loading branch information
smaslov-intel authored Oct 31, 2022
1 parent f736d5e commit 9811ef2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions sycl/plugins/level_zero/pi_level_zero.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1670,11 +1670,10 @@ pi_result _pi_queue::executeCommandList(pi_command_list_ptr_t CommandList,
HostVisibleEvent->CleanedUp = true;

// Finally set to signal the host-visible event at the end of the
// command-list.
// TODO: see if we need a barrier here (or explicit wait for all events
// in the batch).
ZE_CALL(zeCommandListAppendSignalEvent,
(CommandList->first, HostVisibleEvent->ZeEvent));
// command-list after a barrier that waits for all commands
// completion.
ZE_CALL(zeCommandListAppendBarrier,
(CommandList->first, HostVisibleEvent->ZeEvent, 0, nullptr));
}
}

Expand Down

0 comments on commit 9811ef2

Please sign in to comment.