From 47fabfde210b13b0dec4d7adde1077fdb22c570e Mon Sep 17 00:00:00 2001 From: foreman Date: Wed, 14 Aug 2019 12:37:39 -0400 Subject: [PATCH] P4 to Git Change 1983234 by vsytchen@vsytchen-remote-ocl-win10 on 2019/08/14 12:32:40 SWDEV-79445 - OCL generic changes and code clean-up 1. Bitcode binaries should be saved as binaries ReviewBoardURL = http://ocltc.amd.com/reviews/r/17820/diff/ Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#60 edit [ROCm/clr commit: b795e200b342aae838f6ed36997070660a63c9c5] --- projects/clr/rocclr/runtime/device/devprogram.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/rocclr/runtime/device/devprogram.cpp b/projects/clr/rocclr/runtime/device/devprogram.cpp index 2e6b7283f7..0073b3f667 100644 --- a/projects/clr/rocclr/runtime/device/devprogram.cpp +++ b/projects/clr/rocclr/runtime/device/devprogram.cpp @@ -259,7 +259,7 @@ amd_comgr_status_t Program::extractByteCodeBinary(const amd_comgr_data_set_t inD // save the binary to the file as output file name is specified if (!outFileName.empty()) { - std::ofstream f(outFileName.c_str(), std::ios::trunc); + std::ofstream f(outFileName.c_str(), std::ios::trunc | std::ios::binary); if (f.is_open()) { f.write(binary, binarySize); f.close();