performance: enable usm reuse on L0/Xe2

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
Szymon Morek
2025-09-11 10:39:11 +00:00
committed by Compute-Runtime-Automation
parent aa74555682
commit 2098bca4f4
2 changed files with 13 additions and 2 deletions

View File

@@ -61,4 +61,15 @@ template <>
bool ProductHelperHw<gfxProduct>::isStagingBuffersEnabled() const {
return true;
}
template <>
bool ProductHelperHw<gfxProduct>::isDeviceUsmAllocationReuseSupported() const {
return true;
}
template <>
bool ProductHelperHw<gfxProduct>::isHostUsmAllocationReuseSupported() const {
return true;
}
} // namespace NEO

View File

@@ -864,8 +864,8 @@ HWTEST2_F(ProductHelperTest, givenProductHelperWhenCheckingIsUsmAllocationReuseS
}
{
VariableBackup<ApiSpecificConfig::ApiType> backup(&apiTypeForUlts, ApiSpecificConfig::L0);
EXPECT_FALSE(productHelper->isHostUsmAllocationReuseSupported());
EXPECT_FALSE(productHelper->isDeviceUsmAllocationReuseSupported());
EXPECT_TRUE(productHelper->isHostUsmAllocationReuseSupported());
EXPECT_TRUE(productHelper->isDeviceUsmAllocationReuseSupported());
}
}