Skip to content

Commit 681ef36

Browse files
performance: disable cpu caching for buffers on PTL
Related-To: NEO-14168 Signed-off-by: Szymon Morek <[email protected]>
1 parent 0b34ed6 commit 681ef36

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

shared/source/xe3_core/ptl/os_agnostic_product_helper_ptl.inl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,9 @@ bool ProductHelperHw<gfxProduct>::isDirectSubmissionSupported(ReleaseHelper *rel
2929
return true;
3030
}
3131

32+
template <>
33+
bool ProductHelperHw<gfxProduct>::isCachingOnCpuAvailable() const {
34+
return false;
35+
}
36+
3237
} // namespace NEO

shared/test/unit_test/xe3_core/ptl/product_helper_tests_ptl.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,7 @@ PTLTEST_F(PtlProductHelper, givenCompilerProductHelperWhenGetMidThreadPreemption
4343
PTLTEST_F(PtlProductHelper, givenProductHelperWhenCheckDirectSubmissionSupportedThenTrueIsReturned) {
4444
EXPECT_TRUE(productHelper->isDirectSubmissionSupported(releaseHelper));
4545
}
46+
47+
PTLTEST_F(PtlProductHelper, givenProductHelperWhenCallIsCachingOnCpuAvailableThenFalseIsReturned) {
48+
EXPECT_FALSE(productHelper->isCachingOnCpuAvailable());
49+
}

0 commit comments

Comments
 (0)