From d0a607aae20aa0ea791e4dd0f994f5cce948da9b Mon Sep 17 00:00:00 2001 From: foreman Date: Tue, 22 Nov 2016 16:57:16 -0500 Subject: [PATCH] P4 to Git Change 1344871 by lmoriche@lmoriche_opencl_dev on 2016/11/22 16:52:17 SWDEV-108024 - [ROCm CQE] Printf broken on ROCm , LC and HSAIL path A zero-lenth printfBuffer is not an error. Even if a printfInfo is present, it does not mean that the kernel is going to call printf. Return true if offsetSize is 0. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprintf.cpp#5 edit [ROCm/clr commit: f07e2533df8c2cfddc70b36f288cb8bb716789a4] --- projects/clr/rocclr/runtime/device/rocm/rocprintf.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/clr/rocclr/runtime/device/rocm/rocprintf.cpp b/projects/clr/rocclr/runtime/device/rocm/rocprintf.cpp index 69566b699c..141fae7bd2 100644 --- a/projects/clr/rocclr/runtime/device/rocm/rocprintf.cpp +++ b/projects/clr/rocclr/runtime/device/rocm/rocprintf.cpp @@ -426,8 +426,7 @@ bool PrintfDbg::output(VirtualGPU& gpu, bool printfEnabled, offsetSize = *dbgBufferPtr; if (offsetSize == 0) { - LogError("\n The printf buffer is empty!"); - return false; + return true; } // Get a pointer to the buffer data