performance: enable host usm alloc recycle

Enable on pre xe2 platforms.

Related-To: NEO-6893

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
Dominik Dabek 2024-07-29 13:36:22 +00:00 committed by Compute-Runtime-Automation
parent 65fcbff55c
commit 796edfeeb5
4 changed files with 5 additions and 5 deletions

View File

@ -115,7 +115,7 @@ bool ProductHelperHw<gfxProduct>::isDeviceUsmAllocationReuseSupported() const {
template <PRODUCT_FAMILY gfxProduct>
bool ProductHelperHw<gfxProduct>::isHostUsmAllocationReuseSupported() const {
return false;
return true;
}
template <PRODUCT_FAMILY gfxProduct>

View File

@ -53,7 +53,7 @@ bool ProductHelperHw<gfxProduct>::isDeviceUsmAllocationReuseSupported() const {
template <>
bool ProductHelperHw<gfxProduct>::isHostUsmAllocationReuseSupported() const {
return false;
return true;
}
template <PRODUCT_FAMILY gfxProduct>

View File

@ -268,7 +268,7 @@ bool ProductHelperHw<gfxProduct>::isDeviceUsmAllocationReuseSupported() const {
template <>
bool ProductHelperHw<gfxProduct>::isHostUsmAllocationReuseSupported() const {
return false;
return true;
}
} // namespace NEO

View File

@ -845,11 +845,11 @@ HWTEST2_F(ProductHelperTest, givenProductHelperWhenCheckingIsDeviceUsmAllocation
}
HWTEST2_F(ProductHelperTest, givenProductHelperWhenCheckingIsHostUsmAllocationReuseSupportedThenCorrectValueIsReturned, IsAtMostDg2) {
EXPECT_FALSE(productHelper->isHostUsmAllocationReuseSupported());
EXPECT_TRUE(productHelper->isHostUsmAllocationReuseSupported());
}
HWTEST2_F(ProductHelperTest, givenProductHelperWhenCheckingIsHostUsmAllocationReuseSupportedThenCorrectValueIsReturned, IsXeHpcCore) {
EXPECT_FALSE(productHelper->isHostUsmAllocationReuseSupported());
EXPECT_TRUE(productHelper->isHostUsmAllocationReuseSupported());
}
HWTEST2_F(ProductHelperTest, givenProductHelperWhenCheckingIsHostUsmAllocationReuseSupportedThenCorrectValueIsReturned, IsAtLeastMtl) {