mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 23:56:39 +08:00
performance: Enable waitpkg
Resolves: NEO-14336 Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f52c81c0e4
commit
8ec5434460
@@ -9,6 +9,7 @@
|
||||
#include "shared/source/utilities/wait_util.h"
|
||||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
#include "shared/test/common/helpers/variable_backup.h"
|
||||
#include "shared/test/common/mocks/mock_execution_environment.h"
|
||||
#include "shared/test/common/test_macros/hw_test.h"
|
||||
#include "shared/test/unit_test/mocks/mock_cpuid_functions.h"
|
||||
|
||||
@@ -196,6 +197,19 @@ TEST_F(WaitPkgTest, givenEnabledSetToTrueAndWaitpkgSupportTrueWhenWaitInitialize
|
||||
EXPECT_TRUE(WaitUtils::waitpkgUse);
|
||||
}
|
||||
|
||||
TEST_F(WaitPkgTest, givenWaitpkgSupportTrueWhenCreateExecutionEnvironmentThenWaitPkgEnabled) {
|
||||
CpuInfo::cpuidFunc = mockCpuidEnableAll;
|
||||
|
||||
WaitUtils::waitpkgSupport = true;
|
||||
|
||||
MockExecutionEnvironment executionEnvironment;
|
||||
|
||||
EXPECT_EQ(0u, WaitUtils::waitCount);
|
||||
EXPECT_EQ(10000u, WaitUtils::waitpkgCounterValue);
|
||||
EXPECT_EQ(0u, WaitUtils::waitpkgControlValue);
|
||||
EXPECT_TRUE(WaitUtils::waitpkgUse);
|
||||
}
|
||||
|
||||
TEST_F(WaitPkgTest, givenFullyEnabledWaitPkgAndOverrideCounterValueWhenWaitInitializedThenNewCounterValueSet) {
|
||||
CpuInfo::cpuidFunc = mockCpuidEnableAll;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user