Skip to content

Commit d3e9704

Browse files
authored
Merge pull request #2605 from yingcong-wu/yc/0123-ur-quick-fix
[DeviceASAN] Bugfix for GetDeviceType
2 parents 2ef6959 + 37ad03a commit d3e9704

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
@@ -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)