From 39e5a8ba132281d4485ffbcf5078e6e19ea4fcd2 Mon Sep 17 00:00:00 2001
From: foreman
Date: Tue, 22 Nov 2016 13:47:18 -0500
Subject: [PATCH] P4 to Git Change 1344715 by lmoriche@lmoriche_opencl_dev on
2016/11/22 13:34:55
SWDEV-80874 - Fixed ORCA RT HSA printf buffer indexing issues
Integrate gpuprintf.cpp@1208448,1208448 into rocprintf.cpp
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprintf.cpp#4 edit
---
rocclr/runtime/device/rocm/rocprintf.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rocclr/runtime/device/rocm/rocprintf.cpp b/rocclr/runtime/device/rocm/rocprintf.cpp
index 8efbe57ba8..69566b699c 100644
--- a/rocclr/runtime/device/rocm/rocprintf.cpp
+++ b/rocclr/runtime/device/rocm/rocprintf.cpp
@@ -440,7 +440,6 @@ bool PrintfDbg::output(VirtualGPU& gpu, bool printfEnabled,
std::vector::const_iterator ita;
uint sb = 0;
uint sbt = 0;
- size_t idx = 1;
// parse the debug buffer
while (sbt < offsetSize) {
@@ -452,6 +451,7 @@ bool PrintfDbg::output(VirtualGPU& gpu, bool printfEnabled,
sb += *ita;
}
+ size_t idx = 1;
// There's something in the debug buffer
outputDbgBuffer(info, dbgBufferPtr, idx);