Skip to content

Commit

Permalink
Merge pull request #2605 from yingcong-wu/yc/0123-ur-quick-fix
Browse files Browse the repository at this point in the history
[DeviceASAN] Bugfix for GetDeviceType
  • Loading branch information
kbenzie authored Jan 23, 2025
2 parents 2ef6959 + 37ad03a commit d3e9704
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ DeviceType GetDeviceType(ur_context_handle_t Context,

// L0 changes their VA layout.
// TODO: update our shadow memory layout/algorithms to accordingly.
if (((Ptr >> 52) & 0xff0U) == 0xff0U) {
if (Ptr >> 52 == 0xff0U) {
Type = DeviceType::GPU_PVC;
} else {
Type = DeviceType::GPU_DG2;
Expand Down

0 comments on commit d3e9704

Please sign in to comment.