performance: defer internal context init, ptl, bmg

os agnostic

Related-To: NEO-16633

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
Dominik Dabek
2025-11-17 15:59:23 +00:00
committed by Compute-Runtime-Automation
parent 02848968be
commit cf3f5d7499
6 changed files with 18 additions and 9 deletions

View File

@@ -67,4 +67,9 @@ bool ProductHelperHw<gfxProduct>::isHostUsmPoolAllocatorSupported() const {
return true;
}
template <>
bool ProductHelperHw<gfxProduct>::initializeInternalEngineImmediately() const {
return false;
}
} // namespace NEO

View File

@@ -44,4 +44,9 @@ bool ProductHelperHw<gfxProduct>::isMisalignedUserPtr2WayCoherent() const {
return true;
}
template <>
bool ProductHelperHw<gfxProduct>::initializeInternalEngineImmediately() const {
return false;
}
} // namespace NEO

View File

@@ -17,11 +17,6 @@ constexpr static auto gfxProduct = IGFX_PTL;
namespace NEO {
template <>
bool ProductHelperHw<gfxProduct>::initializeInternalEngineImmediately() const {
return false;
}
template class ProductHelperHw<gfxProduct>;
} // namespace NEO

View File

@@ -151,4 +151,8 @@ BMGTEST_F(BmgProductHelper, givenProductHelperWhenCheckingIsHostDeviceUsmPoolAll
EXPECT_TRUE(productHelper->isHostUsmPoolAllocatorSupported());
EXPECT_TRUE(productHelper->isDeviceUsmPoolAllocatorSupported());
}
}
BMGTEST_F(BmgProductHelper, givenProductHelperWhenCheckingInitializeInternalEngineImmediatelyThenCorrectValueIsReturned) {
EXPECT_FALSE(productHelper->initializeInternalEngineImmediately());
}

View File

@@ -75,6 +75,10 @@ PTLTEST_F(PtlProductHelper, givenProductHelperWhenCheckingIsBufferPoolAllocatorS
EXPECT_TRUE(productHelper->isBufferPoolAllocatorSupported());
}
PTLTEST_F(PtlProductHelper, givenProductHelperWhenCheckingInitializeInternalEngineImmediatelyThenCorrectValueIsReturned) {
EXPECT_FALSE(productHelper->initializeInternalEngineImmediately());
}
PTLTEST_F(ProductHelperTest, givenProductHelperWhenGetL1CachePolicyThenReturnWriteByPass) {
EXPECT_EQ(2u, productHelper->getL1CachePolicy(false));
EXPECT_EQ(0u, productHelper->getL1CachePolicy(true));

View File

@@ -34,7 +34,3 @@ PTLTEST_F(PtlProductHelperWindows, givenOverrideDirectSubmissionTimeoutsCalledTh
EXPECT_EQ(timeoutUs, 2'000ull);
EXPECT_EQ(maxTimeoutUs, 3'000ull);
}
PTLTEST_F(PtlProductHelperWindows, givenCheckingInitializeInternalEngineImmediatelyThenReturnFalse) {
EXPECT_FALSE(productHelper->initializeInternalEngineImmediately());
}