File tree 2 files changed +5
-12
lines changed
sycl/test-e2e/Graph/ValidUsage
unified-runtime/source/adapters/level_zero
2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ int main() {
44
44
Queue.get_device ()};
45
45
46
46
T *PtrA = malloc_device<T>(Size , Queue);
47
- T *PtrB = malloc_host <T>(Size , Queue);
47
+ T *PtrB = malloc_shared <T>(Size , Queue);
48
48
T *PtrC = malloc_device<T>(Size , Queue);
49
49
50
50
Queue.copy (DataA.data (), PtrA, Size );
Original file line number Diff line number Diff line change @@ -879,23 +879,16 @@ finalizeWaitEventPath(ur_exp_command_buffer_handle_t CommandBuffer) {
879
879
880
880
// Reset the L0 events we use for command-buffer sync-points to the
881
881
// non-signaled state. This is required for multiple submissions.
882
- auto resetEvents = [&CommandBuffer]() -> ur_result_t {
883
- for (auto &Event : CommandBuffer->ZeEventsList ) {
884
- ZE2UR_CALL (zeCommandListAppendEventReset,
885
- (CommandBuffer->ZeCommandListResetEvents , Event));
886
- }
887
- return UR_RESULT_SUCCESS;
888
- };
882
+ for (auto &Event : CommandBuffer->ZeEventsList ) {
883
+ ZE2UR_CALL (zeCommandListAppendEventReset,
884
+ (CommandBuffer->ZeCommandListResetEvents , Event));
885
+ }
889
886
890
887
if (CommandBuffer->IsInOrderCmdList ) {
891
- if (!CommandBuffer->MCopyCommandListEmpty ) {
892
- resetEvents ();
893
- }
894
888
ZE2UR_CALL (zeCommandListAppendSignalEvent,
895
889
(CommandBuffer->ZeComputeCommandList ,
896
890
CommandBuffer->ExecutionFinishedEvent ->ZeEvent ));
897
891
} else {
898
- resetEvents ();
899
892
// Wait for all the user added commands to complete, and signal the
900
893
// command-buffer signal-event when they are done.
901
894
ZE2UR_CALL (zeCommandListAppendBarrier,
You can’t perform that action at this time.
0 commit comments