Skip to content

Commit 73dda25

Browse files
authored
Merge pull request #2605 from yingcong-wu/yc/0123-ur-quick-fix
[DeviceASAN] Bugfix for GetDeviceType
2 parents c84d1b6 + 4e47323 commit 73dda25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ DeviceType GetDeviceType(ur_context_handle_t Context,
159159

160160
// L0 changes their VA layout.
161161
// TODO: update our shadow memory layout/algorithms to accordingly.
162-
if (((Ptr >> 52) & 0xff0U) == 0xff0U) {
162+
if (Ptr >> 52 == 0xff0U) {
163163
Type = DeviceType::GPU_PVC;
164164
} else {
165165
Type = DeviceType::GPU_DG2;

0 commit comments

Comments
 (0)