diff --git a/rocclr/runtime/device/pal/paldevice.cpp b/rocclr/runtime/device/pal/paldevice.cpp index abb14d8627..a11762f42f 100644 --- a/rocclr/runtime/device/pal/paldevice.cpp +++ b/rocclr/runtime/device/pal/paldevice.cpp @@ -262,7 +262,7 @@ bool NullDevice::create(Pal::AsicRevision asicRevision, Pal::GfxIpLevel ipLevel, if ((GPU_ENABLE_PAL == 1) && (ipLevel == Pal::GfxIpLevel::_None)) { hwInfo_ = &DeviceInfo[static_cast(asicRevision)]; } else if (ipLevel >= Pal::GfxIpLevel::GfxIp9) { - subtarget = (static_cast(asicRevision_) % static_cast(Pal::AsicRevision::Vega10)) + subtarget = (static_cast(asicRevision_) - static_cast(Pal::AsicRevision::Vega10)) << 1 | xNACKSupported; hwInfo_ = &Gfx9PlusSubDeviceInfo[subtarget];