From fb0cfaeef3ca1b4af104240820ff784b2c35a6d7 Mon Sep 17 00:00:00 2001 From: foreman Date: Tue, 6 Oct 2015 14:37:59 -0400 Subject: [PATCH] P4 to Git Change 1197288 by mbareghe@mbareghe_stg_win30 on 2015/10/06 14:29:07 SWDEV-78024 - SYCL - Issue with printf when printing a string without format specifier - removed the condition to expand printf only if it has more than one arguemnt. Affected files ... ... //depot/stg/opencl/drivers/opencl/compiler/llvm32/lib/Target/AMDIL/AMDILPrintfConvert.cpp#2 edit ... //depot/stg/opencl/drivers/opencl/compiler/llvm32/test/CodeGen/AMDIL/printf_without_format_specifier.ll#1 add ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprintf.cpp#39 edit [ROCm/clr commit: cb963bf9ebd22e03669328fe29044130ff524496] --- projects/clr/rocclr/runtime/device/gpu/gpuprintf.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/projects/clr/rocclr/runtime/device/gpu/gpuprintf.cpp b/projects/clr/rocclr/runtime/device/gpu/gpuprintf.cpp index 2e32460290..38fa697648 100644 --- a/projects/clr/rocclr/runtime/device/gpu/gpuprintf.cpp +++ b/projects/clr/rocclr/runtime/device/gpu/gpuprintf.cpp @@ -514,11 +514,6 @@ PrintfDbg::outputDbgBuffer(const PrintfInfo& info, const uint32_t* workitemData, / sizeof(uint32_t); } } - else { - amd::Os::printf("Error: The arguments don't match the printf format string. printf(%s)", - info.fmtString_.data()); - return; - } } if (pos != std::string::npos) {