mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-28 16:48:45 +08:00
Revert "fix: Check if provided CCS number is correct"
This reverts commit 94be8023dc.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
0920ce0466
commit
fc62e025d2
@@ -354,10 +354,8 @@ void ExecutionEnvironment::adjustCcsCountImpl(RootDeviceEnvironment *rootDeviceE
|
||||
productHelper.adjustNumberOfCcs(*hwInfo);
|
||||
}
|
||||
|
||||
bool ExecutionEnvironment::adjustCcsCount() {
|
||||
if (!parseCcsCountLimitations()) {
|
||||
return false;
|
||||
}
|
||||
void ExecutionEnvironment::adjustCcsCount() {
|
||||
parseCcsCountLimitations();
|
||||
|
||||
for (auto rootDeviceIndex = 0u; rootDeviceIndex < rootDeviceEnvironments.size(); rootDeviceIndex++) {
|
||||
auto &rootDeviceEnvironment = rootDeviceEnvironments[rootDeviceIndex];
|
||||
@@ -366,42 +364,32 @@ bool ExecutionEnvironment::adjustCcsCount() {
|
||||
adjustCcsCountImpl(rootDeviceEnvironment.get());
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ExecutionEnvironment::adjustCcsCount(const uint32_t rootDeviceIndex) const {
|
||||
void ExecutionEnvironment::adjustCcsCount(const uint32_t rootDeviceIndex) const {
|
||||
auto &rootDeviceEnvironment = rootDeviceEnvironments[rootDeviceIndex];
|
||||
UNRECOVERABLE_IF(!rootDeviceEnvironment);
|
||||
if (rootDeviceNumCcsMap.find(rootDeviceIndex) != rootDeviceNumCcsMap.end()) {
|
||||
if (!rootDeviceEnvironment->setNumberOfCcs(rootDeviceNumCcsMap.at(rootDeviceIndex))) {
|
||||
return false;
|
||||
}
|
||||
rootDeviceEnvironment->setNumberOfCcs(rootDeviceNumCcsMap.at(rootDeviceIndex));
|
||||
} else {
|
||||
adjustCcsCountImpl(rootDeviceEnvironment.get());
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ExecutionEnvironment::parseCcsCountLimitations() {
|
||||
void ExecutionEnvironment::parseCcsCountLimitations() {
|
||||
const auto &numberOfCcsString = debugManager.flags.ZEX_NUMBER_OF_CCS.get();
|
||||
|
||||
if (numberOfCcsString.compare("default") == 0 ||
|
||||
numberOfCcsString.empty()) {
|
||||
return true;
|
||||
return;
|
||||
}
|
||||
|
||||
for (auto rootDeviceIndex = 0u; rootDeviceIndex < rootDeviceEnvironments.size(); rootDeviceIndex++) {
|
||||
auto &rootDeviceEnvironment = rootDeviceEnvironments[rootDeviceIndex];
|
||||
UNRECOVERABLE_IF(!rootDeviceEnvironment);
|
||||
auto &productHelper = rootDeviceEnvironment->getHelper<ProductHelper>();
|
||||
if (!productHelper.parseCcsMode(numberOfCcsString, rootDeviceNumCcsMap, rootDeviceIndex, rootDeviceEnvironment.get())) {
|
||||
return false;
|
||||
}
|
||||
productHelper.parseCcsMode(numberOfCcsString, rootDeviceNumCcsMap, rootDeviceIndex, rootDeviceEnvironment.get());
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void ExecutionEnvironment::configureNeoEnvironment() {
|
||||
|
||||
Reference in New Issue
Block a user