Limit number of CCS engines on PVC

Expose only one CCS engine

Related-To: NEO-7195
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2022-08-08 12:58:48 +00:00
committed by Compute-Runtime-Automation
parent 6aec85ff54
commit 8f8370be32
8 changed files with 66 additions and 0 deletions

View File

@@ -199,4 +199,14 @@ void ExecutionEnvironment::parseAffinityMask() {
rootDeviceEnvironments.swap(filteredEnvironments);
}
void ExecutionEnvironment::adjustCcsCount() const {
for (auto &rootDeviceEnvironment : rootDeviceEnvironments) {
UNRECOVERABLE_IF(!rootDeviceEnvironment);
auto hwInfo = rootDeviceEnvironment->getMutableHardwareInfo();
auto hwInfoConfig = HwInfoConfig::get(hwInfo->platform.eProductFamily);
hwInfoConfig->adjustNumberOfCcs(*hwInfo);
}
}
} // namespace NEO