Skip to content

Commit b4f31b4

Browse files
committed
update getDeviceType
1 parent 04b2e07 commit b4f31b4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

source/loader/layers/sanitizer/sanitizer_common/sanitizer_utils.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,9 @@ DeviceType GetDeviceType(ur_context_handle_t Context,
157157
// asan_shadow.cpp)
158158
auto Type = DeviceType::UNKNOWN;
159159

160-
// ((Ptr >> 48) & 0xff00U) is because I have seen a DeviceUSM of PVC having
161-
// 0xff01xxxx addr. We need to confirm this with L0 team later about the
162-
// address space mapping.
163-
if (((Ptr >> 48) & 0xff00U) == 0xff00U) {
160+
// L0 changes their VA layout.
161+
// TODO: update our shadow memory layout/algorithms to accordingly.
162+
if (((Ptr >> 52) & 0xff0U) == 0xff0U) {
164163
Type = DeviceType::GPU_PVC;
165164
} else {
166165
Type = DeviceType::GPU_DG2;

0 commit comments

Comments
 (0)