mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-19 06:24:51 +08:00
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:
committed by
Compute-Runtime-Automation
parent
02848968be
commit
cf3f5d7499
@@ -67,4 +67,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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -151,4 +151,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));
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
Reference in New Issue
Block a user