mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
Revert "fix: serialize printf kernel accesses using device-wise locks"
This reverts commit 3d33366ff6.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d16debf5dc
commit
21a506b045
@@ -189,10 +189,7 @@ ze_result_t CommandQueueImp::synchronizeByPollingForTaskCount(uint64_t timeout)
|
||||
void CommandQueueImp::printKernelsPrintfOutput(bool hangDetected) {
|
||||
size_t size = this->printfKernelContainer.size();
|
||||
for (size_t i = 0; i < size; i++) {
|
||||
std::lock_guard<std::mutex> lock(static_cast<DeviceImp *>(this->getDevice())->printfKernelMutex);
|
||||
if (!this->printfKernelContainer[i].expired()) {
|
||||
this->printfKernelContainer[i].lock()->printPrintfOutput(hangDetected);
|
||||
}
|
||||
this->printfKernelContainer[i]->printPrintfOutput(hangDetected);
|
||||
}
|
||||
this->printfKernelContainer.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user