Files
compute-runtime/opencl/source/command_queue/finish_xe3p_and_later.inl
Mateusz Jablonski 814afc90fe feature: Add initial support for CRI
Related-To: NEO-16649

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2025-12-15 12:12:42 +01:00

31 lines
958 B
C++

/*
* Copyright (C) 2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
template <>
void NEO::CommandQueueHw<NEO::Family>::programPendingL3Flushes(NEO::CommandStreamReceiver &csr, bool &waitForTaskCountRequired, bool resolvePendingL3Flushes) {
if (resolvePendingL3Flushes == false) {
return;
}
if (getPendingL3FlushForHostVisibleResources()) {
TakeOwnershipWrapper<CommandQueueHw<NEO::Family>> queueOwnership(*this);
if (getPendingL3FlushForHostVisibleResources()) {
csr.flushTagUpdate();
NEO::CompletionStamp completionStamp = {
csr.peekTaskCount(),
std::max(this->taskLevel, csr.peekTaskLevel()),
csr.obtainCurrentFlushStamp()};
this->updateFromCompletionStamp(completionStamp, nullptr);
this->setPendingL3FlushForHostVisibleResources(false);
waitForTaskCountRequired = true;
}
}
}