Skip to content

Commit bd6c9a2

Browse files
Trojanowski, KarolCompute-Runtime-Automation
authored andcommitted
Enable task count from wait on DG2 and later
Signed-off-by: Karol Trojanowski <[email protected]>
1 parent 3b8593f commit bd6c9a2

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

opencl/test/unit_test/helpers/hw_helper_tests_dg2_and_later.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ HWTEST2_F(HwHelperTestsDg2AndLater, givenXeHPGAndLaterPlatformWhenCheckingIfUnTy
154154
EXPECT_TRUE(hwHelper.unTypedDataPortCacheFlushRequired());
155155
}
156156

157+
HWTEST2_F(HwHelperTestsDg2AndLater, givenHwHelperWhenCheckIsUpdateTaskCountFromWaitSupportedThenReturnsTrue, IsAtLeastXeHpgCore) {
158+
auto &hwHelper = HwHelper::get(hardwareInfo.platform.eRenderCoreFamily);
159+
160+
EXPECT_TRUE(hwHelper.isUpdateTaskCountFromWaitSupported());
161+
}
162+
157163
using HwInfoConfigTestDg2AndLater = ::testing::Test;
158164

159165
HWTEST2_F(HwInfoConfigTestDg2AndLater, givenDg2AndLaterPlatformWhenAskedIfHeapInLocalMemThenTrueIsReturned, IsAtLeastXeHpgCore) {

shared/source/helpers/hw_helper_dg2_and_later.inl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111

1212
namespace NEO {
1313

14+
template <>
15+
bool HwHelperHw<Family>::isUpdateTaskCountFromWaitSupported() const {
16+
return true;
17+
}
18+
1419
template <typename GfxFamily>
1520
inline void MemorySynchronizationCommands<GfxFamily>::setPipeControlExtraProperties(PIPE_CONTROL &pipeControl, PipeControlArgs &args) {
1621
pipeControl.setHdcPipelineFlush(args.hdcPipelineFlush);

shared/source/helpers/hw_helper_pvc_and_later.inl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ bool HwHelperHw<Family>::isCooperativeDispatchSupported(const EngineGroupType en
3636
return true;
3737
}
3838

39-
template <>
40-
bool HwHelperHw<Family>::isUpdateTaskCountFromWaitSupported() const {
41-
return true;
42-
}
43-
4439
template <>
4540
uint32_t HwHelperHw<Family>::adjustMaxWorkGroupCount(uint32_t maxWorkGroupCount, const EngineGroupType engineGroupType,
4641
const HardwareInfo &hwInfo, bool isEngineInstanced) const {

0 commit comments

Comments
 (0)