mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 22:43:00 +08:00
performance: adjust size threshold for staging on linux
Related-To: NEO-15973 Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
71a9731620
commit
03357b6089
@@ -101,8 +101,8 @@ TEST(OsInterfaceTest, GivenLinuxOsInterfaceWhenGetThresholdForStagingCalledThenR
|
||||
DrmMock *drm = new DrmMock(*executionEnvironment->rootDeviceEnvironments[0]);
|
||||
|
||||
osInterface.setDriverModel(std::unique_ptr<DriverModel>(drm));
|
||||
EXPECT_TRUE(osInterface.isSizeWithinThresholdForStaging(MemoryConstants::gigaByte, false));
|
||||
EXPECT_FALSE(osInterface.isSizeWithinThresholdForStaging(MemoryConstants::gigaByte, true));
|
||||
EXPECT_TRUE(osInterface.isSizeWithinThresholdForStaging(16 * MemoryConstants::megaByte));
|
||||
EXPECT_FALSE(osInterface.isSizeWithinThresholdForStaging(64 * MemoryConstants::megaByte));
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
@@ -161,6 +161,5 @@ TEST_F(OsInterfaceTest, whenGetThresholdForStagingCalledThenReturnNoThreshold) {
|
||||
EXPECT_EQ(nullptr, rootDeviceEnvironment.osInterface.get());
|
||||
wddm->init();
|
||||
EXPECT_NE(nullptr, rootDeviceEnvironment.osInterface.get());
|
||||
EXPECT_TRUE(rootDeviceEnvironment.osInterface->isSizeWithinThresholdForStaging(MemoryConstants::gigaByte, false));
|
||||
EXPECT_TRUE(rootDeviceEnvironment.osInterface->isSizeWithinThresholdForStaging(MemoryConstants::gigaByte, true));
|
||||
EXPECT_TRUE(rootDeviceEnvironment.osInterface->isSizeWithinThresholdForStaging(MemoryConstants::gigaByte));
|
||||
}
|
||||
@@ -21,7 +21,7 @@
|
||||
using namespace NEO;
|
||||
|
||||
struct MockOSIface : OSInterface {
|
||||
bool isSizeWithinThresholdForStaging(size_t size, bool isIGPU) const override {
|
||||
bool isSizeWithinThresholdForStaging(size_t size) const override {
|
||||
return isSizeWithinThresholdValue;
|
||||
}
|
||||
bool isSizeWithinThresholdValue = true;
|
||||
|
||||
Reference in New Issue
Block a user