Skip to content

Commit 81227ce

Browse files
feature: enable WMTP on PTL
Related-To: NEO-13706 Signed-off-by: Mateusz Jablonski <[email protected]>
1 parent cd728f7 commit 81227ce

File tree

3 files changed

+1
-18
lines changed

3 files changed

+1
-18
lines changed

shared/source/xe3_core/enable_compiler_product_helper_ptl.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include "shared/source/helpers/compiler_product_helper_xe_hpc_and_later.inl"
1515

1616
#include "platforms.h"
17-
#include "wmtp_setup_ptl.inl"
1817

1918
constexpr auto gfxProduct = IGFX_PTL;
2019

@@ -24,11 +23,6 @@ uint32_t CompilerProductHelperHw<gfxProduct>::getDefaultHwIpVersion() const {
2423
return AOT::PTL_H_A0;
2524
}
2625

27-
template <>
28-
bool CompilerProductHelperHw<gfxProduct>::isMidThreadPreemptionSupported(const HardwareInfo &hwInfo) const {
29-
return hwInfo.featureTable.flags.ftrWalkerMTP && wmtpSupported;
30-
}
31-
3226
static EnableCompilerProductHelper<gfxProduct> enableCompilerProductHelperPTL;
3327

3428
} // namespace NEO

shared/source/xe3_core/ptl/definitions/wmtp_setup_ptl.inl

Lines changed: 0 additions & 10 deletions
This file was deleted.

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include "shared/test/unit_test/os_interface/product_helper_tests.h"
1414

1515
#include "platforms.h"
16-
#include "wmtp_setup_ptl.inl"
1716

1817
using namespace NEO;
1918

@@ -38,7 +37,7 @@ PTLTEST_F(PtlProductHelper, givenCompilerProductHelperWhenGetMidThreadPreemption
3837
hwInfo.featureTable.flags.ftrWalkerMTP = false;
3938
EXPECT_FALSE(compilerProductHelper->isMidThreadPreemptionSupported(hwInfo));
4039
hwInfo.featureTable.flags.ftrWalkerMTP = true;
41-
EXPECT_EQ(wmtpSupported, compilerProductHelper->isMidThreadPreemptionSupported(hwInfo));
40+
EXPECT_TRUE(compilerProductHelper->isMidThreadPreemptionSupported(hwInfo));
4241
}
4342

4443
PTLTEST_F(PtlProductHelper, givenProductHelperWhenCheckDirectSubmissionSupportedThenTrueIsReturned) {

0 commit comments

Comments
 (0)