performance(ocl): enable ocl buffer pool DG2

re-enable on DG2 windows
Related-To: NEO-11694

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
Dominik Dabek 2024-06-18 17:55:25 +00:00 committed by Compute-Runtime-Automation
parent f05ff9b156
commit 339229359e
6 changed files with 8 additions and 13 deletions

View File

@ -204,6 +204,11 @@ bool ProductHelperHw<gfxProduct>::isResolveDependenciesByPipeControlsSupported(c
return enabled; return enabled;
} }
template <>
bool ProductHelperHw<gfxProduct>::isBufferPoolAllocatorSupported() const {
return true;
}
template <> template <>
bool ProductHelperHw<gfxProduct>::isUsmPoolAllocatorSupported() const { bool ProductHelperHw<gfxProduct>::isUsmPoolAllocatorSupported() const {
return true; return true;

View File

@ -67,10 +67,5 @@ bool ProductHelperHw<gfxProduct>::getUuid(NEO::DriverModel *driverModel, const u
return true; return true;
} }
template <>
bool ProductHelperHw<gfxProduct>::isBufferPoolAllocatorSupported() const {
return true;
}
template class ProductHelperHw<gfxProduct>; template class ProductHelperHw<gfxProduct>;
} // namespace NEO } // namespace NEO

View File

@ -38,10 +38,5 @@ int ProductHelperHw<gfxProduct>::configureHardwareCustom(HardwareInfo *hwInfo, O
return 0; return 0;
} }
template <>
bool ProductHelperHw<gfxProduct>::isBufferPoolAllocatorSupported() const {
return false;
}
template class ProductHelperHw<gfxProduct>; template class ProductHelperHw<gfxProduct>;
} // namespace NEO } // namespace NEO

View File

@ -816,7 +816,7 @@ HWTEST2_F(ProductHelperTest, givenProductHelperWhenCheckingIsBufferPoolAllocator
EXPECT_FALSE(productHelper->isBufferPoolAllocatorSupported()); EXPECT_FALSE(productHelper->isBufferPoolAllocatorSupported());
} }
HWTEST2_F(ProductHelperTest, givenProductHelperWhenCheckingIsBufferPoolAllocatorSupportedThenCorrectValueIsReturned, IsXeLpg) { HWTEST2_F(ProductHelperTest, givenProductHelperWhenCheckingIsBufferPoolAllocatorSupportedThenCorrectValueIsReturned, IsXeHpgCore) {
EXPECT_TRUE(productHelper->isBufferPoolAllocatorSupported()); EXPECT_TRUE(productHelper->isBufferPoolAllocatorSupported());
} }

View File

@ -46,4 +46,4 @@ DG2TEST_F(Dg2ProductHelperLinux, GivenDg2WhenConfigureHardwareCustomThenKmdNotif
DG2TEST_F(Dg2ProductHelperLinux, givenProductHelperWhenCheckingIsBufferPoolAllocatorSupportedThenCorrectValueIsReturned) { DG2TEST_F(Dg2ProductHelperLinux, givenProductHelperWhenCheckingIsBufferPoolAllocatorSupportedThenCorrectValueIsReturned) {
EXPECT_TRUE(productHelper->isBufferPoolAllocatorSupported()); EXPECT_TRUE(productHelper->isBufferPoolAllocatorSupported());
} }

View File

@ -13,5 +13,5 @@ using namespace NEO;
using Dg2ProductHelperWindows = ProductHelperTestWindows; using Dg2ProductHelperWindows = ProductHelperTestWindows;
HWTEST2_F(Dg2ProductHelperWindows, givenProductHelperWhenCheckingIsBufferPoolAllocatorSupportedThenCorrectValueIsReturned, IsDG2) { HWTEST2_F(Dg2ProductHelperWindows, givenProductHelperWhenCheckingIsBufferPoolAllocatorSupportedThenCorrectValueIsReturned, IsDG2) {
EXPECT_FALSE(productHelper->isBufferPoolAllocatorSupported()); EXPECT_TRUE(productHelper->isBufferPoolAllocatorSupported());
} }