Skip to content

Commit 5a140b3

Browse files
[SYCL][Level Zero] Don't use ZE_MEMORY_ADVICE_SET_READ_MOSTLY for read-only USM (#7601)
There are issues in the underlying Level Zero RT causing stability problems. This partially reverts #7496.
1 parent 0fa7542 commit 5a140b3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7953,9 +7953,8 @@ static pi_result USMSharedAllocImpl(void **ResultPtr, pi_context Context,
79537953
// with the same command list handle.
79547954
std::scoped_lock<pi_mutex> Lock(Context->ImmediateCommandListMutex);
79557955

7956-
ZE_CALL(zeCommandListAppendMemAdvise,
7957-
(Context->ZeCommandListInit, Device->ZeDevice, *ResultPtr, Size,
7958-
ZE_MEMORY_ADVICE_SET_READ_MOSTLY));
7956+
// TODO: Underlying Level Zero runtime doesn't have a way to communicate
7957+
// read-only property yet.
79597958

79607959
ZE_CALL(zeCommandListAppendMemAdvise,
79617960
(Context->ZeCommandListInit, Device->ZeDevice, *ResultPtr, Size,

0 commit comments

Comments
 (0)