diff --git a/rocclr/runtime/device/pal/paldevice.cpp b/rocclr/runtime/device/pal/paldevice.cpp index bd7dda7963..844d84b511 100644 --- a/rocclr/runtime/device/pal/paldevice.cpp +++ b/rocclr/runtime/device/pal/paldevice.cpp @@ -720,10 +720,12 @@ Device::create(Pal::IDevice* device) maxNumDedicatedCu > 0) { for (uint i = 0; i < properties().engineProperties[ Pal::EngineTypeExclusiveCompute].engineCount; ++i) { - if (properties().engineProperties[ - Pal::EngineTypeExclusiveCompute].capabilities[i].rtCuHighCompute || - properties().engineProperties[ - Pal::EngineTypeExclusiveCompute].capabilities[i].rtCuMedCompute) { + if ((properties().engineProperties[ + Pal::EngineTypeExclusiveCompute].engineSubType[i] == + Pal::EngineSubType::RtCuHighCompute) || + (properties().engineProperties[ + Pal::EngineTypeExclusiveCompute].engineSubType[i] == + Pal::EngineSubType::RtCuMedCompute)) { numExclusiveComputeEngines_++; } }