mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-28 08:37:12 +08:00
refactor: apply clang-format's InsertBraces rule
Formats code before InsertBraces rule is enabled. Signed-off-by: Radoslaw Jablonski <radoslaw.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9d1da44e08
commit
54de14a9dc
@@ -47,9 +47,11 @@ bool isTargetProductConfigCompatibleWithProductConfig(const AOT::PRODUCT_CONFIG
|
||||
const AOT::PRODUCT_CONFIG &productConfig) {
|
||||
auto compatProdConfPairItr = AOT::getCompatibilityMapping().find(productConfig);
|
||||
if (compatProdConfPairItr != AOT::getCompatibilityMapping().end()) {
|
||||
for (auto &compatibleConfig : compatProdConfPairItr->second)
|
||||
if (targetDeviceProductConfig == compatibleConfig)
|
||||
for (auto &compatibleConfig : compatProdConfPairItr->second) {
|
||||
if (targetDeviceProductConfig == compatibleConfig) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -64,12 +66,13 @@ bool validateTargetDevice(const TargetDevice &targetDevice, Elf::ElfIdentifierCl
|
||||
|
||||
if (productConfig != AOT::UNKNOWN_ISA) {
|
||||
auto targetDeviceProductConfig = static_cast<AOT::PRODUCT_CONFIG>(targetDevice.aotConfig.value);
|
||||
if (targetDeviceProductConfig == productConfig)
|
||||
if (targetDeviceProductConfig == productConfig) {
|
||||
return true;
|
||||
else if (debugManager.flags.EnableCompatibilityMode.get() == true) {
|
||||
} else if (debugManager.flags.EnableCompatibilityMode.get() == true) {
|
||||
return isTargetProductConfigCompatibleWithProductConfig(targetDeviceProductConfig, productConfig);
|
||||
} else
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (gfxCore == IGFX_UNKNOWN_CORE && productFamily == IGFX_UNKNOWN) {
|
||||
|
||||
Reference in New Issue
Block a user