mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-31 20:13:04 +08:00
refactor: use PRINT_STRING macro for most diagnostics
Related-To: NEO-14742 Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
68d01f398f
commit
147bd894ec
@@ -153,9 +153,9 @@ inline bool waitForTimestampsWithinContainer(TimestampPacketContainer *container
|
||||
auto waitStartTime = lastHangCheckTime;
|
||||
for (const auto ×tamp : container->peekNodes()) {
|
||||
for (uint32_t i = 0; i < timestamp->getPacketsUsed(); i++) {
|
||||
if (printWaitForCompletion) {
|
||||
printf("\nWaiting for TS 0x%" PRIx64, timestamp->getGpuAddress() + (i * timestamp->getSinglePacketSize()));
|
||||
}
|
||||
PRINT_STRING(printWaitForCompletion, stdout,
|
||||
"\nWaiting for TS 0x%" PRIx64, timestamp->getGpuAddress() + (i * timestamp->getSinglePacketSize()));
|
||||
|
||||
while (timestamp->getContextEndValue(i) == 1) {
|
||||
csr.downloadAllocation(*timestamp->getBaseGraphicsAllocation()->getGraphicsAllocation(csr.getRootDeviceIndex()));
|
||||
|
||||
@@ -164,15 +164,11 @@ inline bool waitForTimestampsWithinContainer(TimestampPacketContainer *container
|
||||
|
||||
if (csr.checkGpuHangDetected(currentTime, lastHangCheckTime)) {
|
||||
status = WaitStatus::gpuHang;
|
||||
if (printWaitForCompletion) {
|
||||
printf("\nWaiting for TS failed");
|
||||
}
|
||||
PRINT_STRING(printWaitForCompletion, stdout, "\nWaiting for TS failed");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (printWaitForCompletion) {
|
||||
printf("\nWaiting for TS completed");
|
||||
}
|
||||
PRINT_STRING(printWaitForCompletion, stdout, "\nWaiting for TS completed");
|
||||
status = WaitStatus::ready;
|
||||
waited = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user