Revert "fix: Check if provided CCS number is correct"

This reverts commit 67963bed4b.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
Compute-Runtime-Validation
2025-11-09 16:11:46 +01:00
committed by Compute-Runtime-Automation
parent 135f215574
commit 4437360448
13 changed files with 27 additions and 202 deletions

View File

@@ -246,19 +246,12 @@ BuiltIns *RootDeviceEnvironment::getBuiltIns() {
return this->builtins.get();
}
bool RootDeviceEnvironment::setNumberOfCcs(uint32_t numberOfCcs) {
if (hwInfo->gtSystemInfo.CCSInfo.NumberOfCCSEnabled < numberOfCcs || numberOfCcs == 0) {
NEO::printDebugString(NEO::debugManager.flags.PrintDebugMessages.get(), stderr, "Error: Invalid number of CCS - %u (max: %u)\n", numberOfCcs, hwInfo->gtSystemInfo.CCSInfo.NumberOfCCSEnabled);
return false;
}
hwInfo->gtSystemInfo.CCSInfo.NumberOfCCSEnabled = numberOfCcs;
void RootDeviceEnvironment::setNumberOfCcs(uint32_t numberOfCcs) {
hwInfo->gtSystemInfo.CCSInfo.NumberOfCCSEnabled = std::min(hwInfo->gtSystemInfo.CCSInfo.NumberOfCCSEnabled, numberOfCcs);
limitedNumberOfCcs = true;
if (aubCenter) {
aubCenter->getAubManager()->setCCSMode(hwInfo->gtSystemInfo.CCSInfo.NumberOfCCSEnabled);
}
return true;
}
uint32_t RootDeviceEnvironment::getNumberOfCcs() const {