mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
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:
committed by
Compute-Runtime-Automation
parent
4b471d1ec6
commit
2459fa0a5d
@@ -62,4 +62,9 @@ bool ProductHelperHw<gfxProduct>::isHostUsmPoolAllocatorSupported() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
template <>
|
||||
bool ProductHelperHw<gfxProduct>::initializeInternalEngineImmediately() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
@@ -44,4 +44,9 @@ bool ProductHelperHw<gfxProduct>::isMisalignedUserPtr2WayCoherent() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
template <>
|
||||
bool ProductHelperHw<gfxProduct>::initializeInternalEngineImmediately() const {
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
@@ -143,4 +143,8 @@ BMGTEST_F(BmgProductHelper, givenProductHelperWhenCheckingIsHostDeviceUsmPoolAll
|
||||
EXPECT_TRUE(productHelper->isHostUsmPoolAllocatorSupported());
|
||||
EXPECT_TRUE(productHelper->isDeviceUsmPoolAllocatorSupported());
|
||||
}
|
||||
}
|
||||
|
||||
BMGTEST_F(BmgProductHelper, givenProductHelperWhenCheckingInitializeInternalEngineImmediatelyThenCorrectValueIsReturned) {
|
||||
EXPECT_FALSE(productHelper->initializeInternalEngineImmediately());
|
||||
}
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user