mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-28 00:03:14 +08:00
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:
committed by
Compute-Runtime-Automation
parent
7185e5bfbe
commit
d86cc127ea
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user