mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 10:26:29 +08:00
Revert "fix: check if aubCenter exists before using setCCSMode"
This reverts commit d670e66caa.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4cd201dcd0
commit
8086c2a96f
@@ -250,9 +250,7 @@ void RootDeviceEnvironment::setNumberOfCcs(uint32_t numberOfCcs) {
|
|||||||
|
|
||||||
hwInfo->gtSystemInfo.CCSInfo.NumberOfCCSEnabled = std::min(hwInfo->gtSystemInfo.CCSInfo.NumberOfCCSEnabled, numberOfCcs);
|
hwInfo->gtSystemInfo.CCSInfo.NumberOfCCSEnabled = std::min(hwInfo->gtSystemInfo.CCSInfo.NumberOfCCSEnabled, numberOfCcs);
|
||||||
limitedNumberOfCcs = true;
|
limitedNumberOfCcs = true;
|
||||||
if (aubCenter) {
|
aubCenter->getAubManager()->setCCSMode(hwInfo->gtSystemInfo.CCSInfo.NumberOfCCSEnabled);
|
||||||
aubCenter->getAubManager()->setCCSMode(hwInfo->gtSystemInfo.CCSInfo.NumberOfCCSEnabled);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RootDeviceEnvironment::isNumberOfCcsLimited() const {
|
bool RootDeviceEnvironment::isNumberOfCcsLimited() const {
|
||||||
|
|||||||
@@ -660,18 +660,6 @@ TEST_F(DeviceTests, givenPreemptionModeWhenOverridePreemptionModeThenProperlySet
|
|||||||
EXPECT_EQ(newPreemptionMode, device->getPreemptionMode());
|
EXPECT_EQ(newPreemptionMode, device->getPreemptionMode());
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(DeviceTests, givenNullAubcenterThenAdjustCcsCountDoesNotThrow) {
|
|
||||||
auto hwInfo = *defaultHwInfo;
|
|
||||||
VariableBackup<UltHwConfig> backup(&ultHwConfig);
|
|
||||||
ultHwConfig.useMockedPrepareDeviceEnvironmentsFunc = false;
|
|
||||||
DebugManagerStateRestore restorer;
|
|
||||||
debugManager.flags.ZEX_NUMBER_OF_CCS.set("4");
|
|
||||||
|
|
||||||
MockExecutionEnvironment executionEnvironment(&hwInfo, false, 1u);
|
|
||||||
executionEnvironment.incRefInternal();
|
|
||||||
EXPECT_NO_THROW(executionEnvironment.adjustCcsCount());
|
|
||||||
}
|
|
||||||
|
|
||||||
HWCMDTEST_F(IGFX_XE_HP_CORE, DeviceTests, givenZexNumberOfCssEnvVariableDefinedForNonPvcWhenDeviceIsCreatedThenCreateDevicesWithProperCcsCount) {
|
HWCMDTEST_F(IGFX_XE_HP_CORE, DeviceTests, givenZexNumberOfCssEnvVariableDefinedForNonPvcWhenDeviceIsCreatedThenCreateDevicesWithProperCcsCount) {
|
||||||
VariableBackup<UltHwConfig> backup(&ultHwConfig);
|
VariableBackup<UltHwConfig> backup(&ultHwConfig);
|
||||||
ultHwConfig.useMockedPrepareDeviceEnvironmentsFunc = false;
|
ultHwConfig.useMockedPrepareDeviceEnvironmentsFunc = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user