Skip to content

Commit a680cfc

Browse files
committed
update comment
1 parent 6a42493 commit a680cfc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ DeviceType GetDeviceType(ur_context_handle_t Context,
156156
// by the value of device USM pointer (see "USM Allocation Range" in
157157
// asan_shadow.cpp)
158158
auto Type = DeviceType::UNKNOWN;
159+
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.
159163
if (((Ptr >> 48) & 0xff00U) == 0xff00U) {
160164
Type = DeviceType::GPU_PVC;
161165
} else {

0 commit comments

Comments
 (0)