Skip to content

Commit 5c9d43e

Browse files
Jaime ArteagaCompute-Runtime-Automation
authored andcommitted
Revert "Remove unnecessary flush in event profiling"
This reverts commit a0db607. Signed-off-by: Jaime Arteaga <[email protected]>
1 parent 08655a3 commit 5c9d43e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

level_zero/core/source/cmdlist/cmdlist_hw.inl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,6 +1536,7 @@ void CommandListCoreFamily<gfxCoreFamily>::appendEventForProfiling(ze_event_hand
15361536
} else {
15371537

15381538
NEO::PipeControlArgs args = {};
1539+
args.dcFlushEnable = true;
15391540

15401541
NEO::MemorySynchronizationCommands<GfxFamily>::addPipeControl(*commandContainer.getCommandStream(), args);
15411542
appendWriteKernelTimestamp(hEvent, beforeWalker, true);

level_zero/core/test/unit_tests/sources/cmdlist/test_cmdlist_append_launch_kernel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ HWTEST2_F(CommandListAppendLaunchKernel, givenTimestampEventsWhenAppendingKernel
337337
{
338338
auto cmd = genCmdCast<PIPE_CONTROL *>(*itor);
339339
EXPECT_TRUE(cmd->getCommandStreamerStallEnable());
340-
EXPECT_FALSE(cmd->getDcFlushEnable());
340+
EXPECT_TRUE(cmd->getDcFlushEnable());
341341
}
342342
itor++;
343343

0 commit comments

Comments
 (0)