mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
refactor: add setupTimestampPacketFlushL3 function
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
c1d184fade
commit
73795ced64
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user