fix: remove no longer needed flush l3 after cpu read

Related-To: NEO-13163
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk
2025-08-13 19:22:02 +00:00
committed by Compute-Runtime-Automation
parent 7185e5bfbe
commit d86cc127ea
5 changed files with 0 additions and 58 deletions

View File

@@ -547,7 +547,6 @@ class CommandQueue : public BaseObject<_cl_command_queue> {
bool heaplessModeEnabled = false;
bool heaplessStateInitEnabled = false;
bool isForceStateless = false;
bool l3FlushedAfterCpuRead = true;
bool l3FlushAfterPostSyncEnabled = false;
bool isWalkerWithProfilingEnqueued = false;
bool shouldRegisterEnqueuedWalkerWithProfiling = false;

View File

@@ -76,7 +76,6 @@ cl_int CommandQueueHw<GfxFamily>::enqueueReadBufferImpl(
if (isCpuCopyAllowed) {
if (isMemTransferNeeded) {
this->l3FlushedAfterCpuRead = false;
return enqueueReadWriteBufferOnCpuWithMemoryTransfer(cmdType, buffer, offset, size, ptr,
numEventsInWaitList, eventWaitList, event);
} else {

View File

@@ -25,20 +25,6 @@ cl_int CommandQueueHw<GfxFamily>::finish() {
bool waitForTaskCountRequired = false;
if (!l3FlushedAfterCpuRead && l3FlushAfterPostSyncEnabled) {
csr.flushTagUpdate();
CompletionStamp completionStamp = {
csr.peekTaskCount(),
csr.peekTaskLevel(),
csr.obtainCurrentFlushStamp()};
this->updateFromCompletionStamp(completionStamp, nullptr);
this->l3FlushedAfterCpuRead = true;
waitForTaskCountRequired = true;
}
// Stall until HW reaches taskCount on all its engines
const auto waitStatus = waitForAllEngines(true, nullptr, waitForTaskCountRequired);
if (waitStatus == WaitStatus::gpuHang) {