Skip to content

Commit 27b9919

Browse files
committed
Merge pull request #2605 from yingcong-wu/yc/0123-ur-quick-fix
[DeviceASAN] Bugfix for GetDeviceType
1 parent 98c70a5 commit 27b9919

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ DeviceType GetDeviceType(ur_context_handle_t Context,
157157

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

0 commit comments

Comments
 (0)