Skip to content

Commit 2bd8935

Browse files
committed
Fix for behavior on discrete GPU.
1 parent 10f04d3 commit 2bd8935

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4051,6 +4051,11 @@ piEnqueueMemBufferMap(pi_queue Queue, pi_mem Buffer, pi_bool BlockingMap,
40514051
&ZeFence))
40524052
return Res;
40534053

4054+
// Set the commandlist in the event
4055+
if (Event) {
4056+
(*Event)->ZeCommandList = ZeCommandList;
4057+
}
4058+
40544059
ze_event_handle_t *ZeEventWaitList =
40554060
_pi_event::createZeEventList(NumEventsInWaitList, EventWaitList);
40564061

@@ -4141,6 +4146,11 @@ pi_result piEnqueueMemUnmap(pi_queue Queue, pi_mem MemObj, void *MappedPtr,
41414146
&ZeFence))
41424147
return Res;
41434148

4149+
// Set the commandlist in the event
4150+
if (Event) {
4151+
(*Event)->ZeCommandList = ZeCommandList;
4152+
}
4153+
41444154
ze_event_handle_t *ZeEventWaitList =
41454155
_pi_event::createZeEventList(NumEventsInWaitList, EventWaitList);
41464156

0 commit comments

Comments
 (0)