performance: defer internal context init, ptl, bmg

Related-To: NEO-16633

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
Dominik Dabek
2025-11-06 16:58:44 +00:00
committed by Compute-Runtime-Automation
parent 4b471d1ec6
commit 2459fa0a5d
4 changed files with 18 additions and 0 deletions

View File

@@ -62,4 +62,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

@@ -143,4 +143,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));