From d13211639d50bd7778195c2f8cf750c98a856b63 Mon Sep 17 00:00:00 2001 From: foreman Date: Tue, 22 Nov 2016 17:25:03 -0500 Subject: [PATCH] P4 to Git Change 1344886 by gandryey@gera-w8 on 2016/11/22 17:15:18 SWDEV-108024 - [ROCm CQE] Printf broken on ROCm , LC and HSAIL path - Update GSL and PAL backends to reflect a change in ROCM (CL#1344871) Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprintf.cpp#43 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprintf.cpp#4 edit --- rocclr/runtime/device/gpu/gpuprintf.cpp | 4 ++-- rocclr/runtime/device/pal/palprintf.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rocclr/runtime/device/gpu/gpuprintf.cpp b/rocclr/runtime/device/gpu/gpuprintf.cpp index 03cafde33b..0baf68f76f 100644 --- a/rocclr/runtime/device/gpu/gpuprintf.cpp +++ b/rocclr/runtime/device/gpu/gpuprintf.cpp @@ -658,9 +658,9 @@ PrintfDbgHSA::output( xferBufRead_->unmap(&gpu); if (offsetSize == 0) { - LogError("\n The printf buffer is empty!"); + LogInfo("The printf buffer is empty!"); dev().xferRead().release(gpu, *xferBufRead_); - return false; + return true; } size_t bufSize = dev().xferRead().bufSize(); diff --git a/rocclr/runtime/device/pal/palprintf.cpp b/rocclr/runtime/device/pal/palprintf.cpp index 3b0f1d4b14..c1dbfca483 100644 --- a/rocclr/runtime/device/pal/palprintf.cpp +++ b/rocclr/runtime/device/pal/palprintf.cpp @@ -651,9 +651,9 @@ PrintfDbgHSA::output( xferBufRead_->unmap(&gpu); if (offsetSize == 0) { - LogError("\n The printf buffer is empty!"); + LogInfo("The printf buffer is empty!"); dev().xferRead().release(gpu, *xferBufRead_); - return false; + return true; } size_t bufSize = dev().xferRead().bufSize();