performance: enable USM pooling on L0/LNL

Related-To: NEO-16382

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
Szymon Morek
2025-10-14 08:31:00 +00:00
committed by Compute-Runtime-Automation
parent a45a4ab44e
commit 5570635226
2 changed files with 4 additions and 12 deletions

View File

@@ -55,12 +55,12 @@ bool ProductHelperHw<gfxProduct>::isMisalignedUserPtr2WayCoherent() const {
template <>
bool ProductHelperHw<gfxProduct>::isHostUsmPoolAllocatorSupported() const {
return ApiSpecificConfig::OCL == ApiSpecificConfig::getApiType();
return true;
}
template <>
bool ProductHelperHw<gfxProduct>::isDeviceUsmPoolAllocatorSupported() const {
return ApiSpecificConfig::OCL == ApiSpecificConfig::getApiType();
return true;
}
} // namespace NEO

View File

@@ -141,16 +141,8 @@ LNLTEST_F(LnlProductHelper, givenProductHelperWhenCheckingIsBufferPoolAllocatorS
}
LNLTEST_F(LnlProductHelper, givenProductHelperWhenCheckingIsHostDeviceUsmPoolAllocatorSupportedThenCorrectValueIsReturned) {
{
VariableBackup<ApiSpecificConfig::ApiType> backup(&apiTypeForUlts, ApiSpecificConfig::OCL);
EXPECT_TRUE(productHelper->isHostUsmPoolAllocatorSupported());
EXPECT_TRUE(productHelper->isDeviceUsmPoolAllocatorSupported());
}
{
VariableBackup<ApiSpecificConfig::ApiType> backup(&apiTypeForUlts, ApiSpecificConfig::L0);
EXPECT_FALSE(productHelper->isHostUsmPoolAllocatorSupported());
EXPECT_FALSE(productHelper->isDeviceUsmPoolAllocatorSupported());
}
EXPECT_TRUE(productHelper->isHostUsmPoolAllocatorSupported());
EXPECT_TRUE(productHelper->isDeviceUsmPoolAllocatorSupported());
}
LNLTEST_F(LnlProductHelper, givenProductHelperWhenIsMisalignedUserPtr2WayCoherentThenReturnTrue) {