refactor: add setupTimestampPacketFlushL3 function

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk
2025-03-19 12:15:31 +00:00
committed by Compute-Runtime-Automation
parent c1d184fade
commit 73795ced64
19 changed files with 109 additions and 22 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2023-2024 Intel Corporation
* Copyright (C) 2023-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -113,6 +113,10 @@ std::string ApiSpecificConfig::compilerCacheFileExtension() {
return ".cl_cache";
}
bool ApiSpecificConfig::isUpdateTagFromWaitEnabledForHeapless() {
return true;
}
int64_t ApiSpecificConfig::compilerCacheDefaultEnabled() {
return 1l;
}

View File

@@ -935,6 +935,9 @@ HWTEST_F(CommandStreamReceiverTest, givenCsrWhenUllsDisabledAndStopDirectSubmiss
}
HWTEST_F(CommandStreamReceiverTest, givenNoDirectSubmissionWhenCheckTaskCountFromWaitEnabledThenReturnsFalse) {
DebugManagerStateRestore restorer;
NEO::debugManager.flags.ForceL3FlushAfterPostSync.set(0);
auto &csr = pDevice->getUltCommandStreamReceiver<FamilyType>();
EXPECT_FALSE(csr.isUpdateTagFromWaitEnabled());
}
@@ -971,6 +974,10 @@ HWTEST_F(CommandStreamReceiverTest, givenUpdateTaskCountFromWaitWhenCheckTaskCou
}
HWTEST_F(CommandStreamReceiverTest, givenUpdateTaskCountFromWaitWhenCheckIfEnabledThenCanBeEnabledOnlyWithDirectSubmission) {
DebugManagerStateRestore restorer;
NEO::debugManager.flags.ForceL3FlushAfterPostSync.set(0);
auto &csr = pDevice->getUltCommandStreamReceiver<FamilyType>();
auto &gfxCoreHelper = pDevice->getGfxCoreHelper();
@@ -989,6 +996,8 @@ HWTEST_F(CommandStreamReceiverTest, givenUpdateTaskCountFromWaitInMultiRootDevic
DebugManagerStateRestore restorer;
debugManager.flags.CreateMultipleRootDevices.set(2);
NEO::debugManager.flags.ForceL3FlushAfterPostSync.set(0);
TearDown();
SetUp();
auto &csr = pDevice->getUltCommandStreamReceiver<FamilyType>();