Add adjustPlatformCoreFamilyForIgc helper

Change-Id: Ic372e76c1024ca9e585bef15fab29827d33122f3
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-4865
This commit is contained in:
Kamil Kopryk
2020-08-13 14:09:05 +02:00
parent 5b50575c23
commit 8fffdcc111
11 changed files with 47 additions and 14 deletions

View File

@@ -168,8 +168,13 @@ cl_int Program::createProgramFromBinary(
auto productAbbreviation = hardwarePrefix[pDevice->getHardwareInfo().platform.eProductFamily];
TargetDevice targetDevice = {};
targetDevice.coreFamily = pDevice->getHardwareInfo().platform.eRenderCoreFamily;
targetDevice.stepping = pDevice->getHardwareInfo().platform.usRevId;
auto copyHwInfo = pDevice->getHardwareInfo();
auto &hwHelper = HwHelper::get(copyHwInfo.platform.eRenderCoreFamily);
hwHelper.adjustPlatformCoreFamilyForIgc(copyHwInfo);
targetDevice.coreFamily = copyHwInfo.platform.eRenderCoreFamily;
targetDevice.stepping = copyHwInfo.platform.usRevId;
targetDevice.maxPointerSizeInBytes = sizeof(uintptr_t);
std::string decodeErrors;
std::string decodeWarnings;