From 77c9dda5ba6bf0a80eff3fe8dd9f25d373eab464 Mon Sep 17 00:00:00 2001 From: foreman Date: Wed, 2 Jan 2019 14:22:04 -0500 Subject: [PATCH] P4 to Git Change 1725088 by wchau@wchau_OCL_boltzmann on 2019/01/02 13:45:33 SWDEV-175381 - OCL Runtime produces invalid names for bitcode data objects Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#25 edit --- rocclr/runtime/device/devprogram.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rocclr/runtime/device/devprogram.cpp b/rocclr/runtime/device/devprogram.cpp index 1e1be21573..7c61f12936 100644 --- a/rocclr/runtime/device/devprogram.cpp +++ b/rocclr/runtime/device/devprogram.cpp @@ -1014,8 +1014,9 @@ bool Program::linkImplLC(const std::vector& inputPrograms, } if (result) { + std::string llvmName = "LLVM Binary " + std::to_string(idx); result = (addCodeObjData(program->llvmBinary_.data(), program->llvmBinary_.size(), - AMD_COMGR_DATA_KIND_BC, "LLVM Binary " + idx, &inputs) == + AMD_COMGR_DATA_KIND_BC, llvmName.c_str(), &inputs) == AMD_COMGR_STATUS_SUCCESS); }