Skip to content

Commit b225c63

Browse files
Fix: Disable timestamp from wait on multi gpu envs
Related-To: NEO-6948 Signed-off-by: Dominik Dabek <[email protected]>
1 parent 82a6f9e commit b225c63

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

shared/source/command_stream/command_stream_receiver_hw_base.inl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,6 +1270,7 @@ inline bool CommandStreamReceiverHw<GfxFamily>::isUpdateTagFromWaitEnabled() {
12701270
auto &hwHelper = HwHelper::get(peekHwInfo().platform.eRenderCoreFamily);
12711271
auto enabled = hwHelper.isUpdateTaskCountFromWaitSupported();
12721272
enabled &= this->isAnyDirectSubmissionEnabled();
1273+
enabled &= this->peekExecutionEnvironment().rootDeviceEnvironments.size() == 1;
12731274

12741275
switch (DebugManager.flags.UpdateTaskCountFromWait.get()) {
12751276
case 0:

shared/test/unit_test/command_stream/command_stream_receiver_tests.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,18 @@ HWTEST_F(CommandStreamReceiverTest, givenUpdateTaskCountFromWaitWhenCheckIfEnabl
642642
}
643643
}
644644

645+
HWTEST_F(CommandStreamReceiverTest, givenUpdateTaskCountFromWaitInMultiRootDeviceEnvironmentWhenCheckIfEnabledThenIsDisabled) {
646+
647+
DebugManagerStateRestore restorer;
648+
DebugManager.flags.CreateMultipleRootDevices.set(2);
649+
TearDown();
650+
SetUp();
651+
auto &csr = pDevice->getUltCommandStreamReceiver<FamilyType>();
652+
653+
csr.directSubmissionAvailable = true;
654+
EXPECT_FALSE(csr.isUpdateTagFromWaitEnabled());
655+
}
656+
645657
struct InitDirectSubmissionFixture {
646658
void SetUp() { // NOLINT(readability-identifier-naming)
647659
DebugManager.flags.EnableDirectSubmission.set(1);

0 commit comments

Comments
 (0)