mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
fix: device ids missmatch error print
Related-To: NEO-12845 Signed-off-by: Wojciech Konior <wojciech.konior@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d54b74e8bd
commit
9c8ced8c78
@@ -90,6 +90,16 @@ bool DeviceFactory::prepareDeviceEnvironmentsForProductFamilyOverride(ExecutionE
|
||||
compilerProductHelper.setProductConfigForHwInfo(*hardwareInfo, aotInfo.aotConfig);
|
||||
if (debugManager.flags.ForceDeviceId.get() == "unk") {
|
||||
hardwareInfo->platform.usDeviceID = aotInfo.deviceIds->front();
|
||||
} else if (aotInfo.deviceIds->front() != hardwareInfo->platform.usDeviceID) {
|
||||
std::stringstream devIds{};
|
||||
for (auto id : *aotInfo.deviceIds)
|
||||
devIds << "0x" << std::hex << id << ", ";
|
||||
|
||||
NEO::printDebugString(NEO::debugManager.flags.PrintDebugMessages.get(),
|
||||
stdout, "Info@ %s(): Mismatch of device ids. ForceDeviceId %s is used for platform with multiple deviceIds: [%s]. Consider using OverrideHwIpVersion flag.\n",
|
||||
__FUNCTION__,
|
||||
debugManager.flags.ForceDeviceId.get().c_str(),
|
||||
devIds.str().substr(0, devIds.str().size() - 2).c_str());
|
||||
}
|
||||
}
|
||||
hardwareInfo->ipVersion.value = compilerProductHelper.getHwIpVersion(*hardwareInfo);
|
||||
|
||||
Reference in New Issue
Block a user