performance: enable device usm pooling for l0
Related-To: NEO-6893 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
parent
9b0f08ecce
commit
0afc042205
|
@ -60,7 +60,7 @@ bool ApiSpecificConfig::isHostAllocationCacheEnabled() {
|
|||
}
|
||||
|
||||
bool ApiSpecificConfig::isDeviceUsmPoolingEnabled() {
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ApiSpecificConfig::isHostUsmPoolingEnabled() {
|
||||
|
|
|
@ -175,7 +175,6 @@ ze_result_t ContextMemHandleMock::getImageAllocProperties(Image *image,
|
|||
}
|
||||
|
||||
void MemoryExportImportWSLTest::SetUp() {
|
||||
|
||||
neoDevice = NEO::MockDevice::createWithNewExecutionEnvironment<NEO::MockDevice>(NEO::defaultHwInfo.get());
|
||||
auto mockBuiltIns = new MockBuiltins();
|
||||
MockRootDeviceEnvironment::resetBuiltins(neoDevice->executionEnvironment->rootDeviceEnvironments[0].get(), mockBuiltIns);
|
||||
|
@ -197,6 +196,8 @@ void MemoryExportImportWSLTest::SetUp() {
|
|||
}
|
||||
|
||||
void MemoryExportImportWSLTest::TearDown() {
|
||||
// clean usm device pool before replacing mem manager
|
||||
neoDevice->cleanupUsmAllocationPool();
|
||||
driverHandle->setMemoryManager(prevMemoryManager);
|
||||
delete currMemoryManager;
|
||||
}
|
||||
|
|
|
@ -48,9 +48,9 @@ TEST(ApiSpecificConfigL0Tests, WhenCheckingIfHostDeviceAllocationCacheIsEnabledT
|
|||
EXPECT_FALSE(ApiSpecificConfig::isDeviceAllocationCacheEnabled());
|
||||
}
|
||||
|
||||
TEST(ApiSpecificConfigL0Tests, WhenCheckingIfUsmAllocPoolingIsEnabledThenReturnFalse) {
|
||||
TEST(ApiSpecificConfigL0Tests, WhenCheckingIfUsmAllocPoolingIsEnabledThenReturnCorrectValue) {
|
||||
EXPECT_FALSE(ApiSpecificConfig::isHostUsmPoolingEnabled());
|
||||
EXPECT_FALSE(ApiSpecificConfig::isDeviceUsmPoolingEnabled());
|
||||
EXPECT_TRUE(ApiSpecificConfig::isDeviceUsmPoolingEnabled());
|
||||
}
|
||||
|
||||
TEST(ApiSpecificConfigL0Tests, GivenDebugFlagCombinationsGetCorrectSharedAllocPrefetchEnabled) {
|
||||
|
|
Loading…
Reference in New Issue