diff --git a/projects/clr/rocclr/runtime/device/gpu/gpuprintf.cpp b/projects/clr/rocclr/runtime/device/gpu/gpuprintf.cpp index 7981c7b452..bcfb17fa32 100644 --- a/projects/clr/rocclr/runtime/device/gpu/gpuprintf.cpp +++ b/projects/clr/rocclr/runtime/device/gpu/gpuprintf.cpp @@ -93,7 +93,7 @@ PrintfDbg::output( const std::vector& printfInfo) { // Are we expected to generate debug output? - if (printfEnabled) { + if (printfEnabled && !printfInfo.empty()) { uint32_t* workitemData; size_t i, j, k, z; bool realloc = false;