From ea146a3c5d352847b6552a59c8c326af554949db Mon Sep 17 00:00:00 2001
From: foreman
Date: Fri, 8 Mar 2019 14:45:57 -0500
Subject: [PATCH] P4 to Git Change 1753587 by smekhano@stas-msdn-pluto-ocl on
2019/03/08 14:20:41
SWDEV-79445 - compiler dumps were damaged on Windows
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#31 edit
---
rocclr/runtime/device/devprogram.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rocclr/runtime/device/devprogram.cpp b/rocclr/runtime/device/devprogram.cpp
index 45f23fd3fd..7060a0c0c0 100644
--- a/rocclr/runtime/device/devprogram.cpp
+++ b/rocclr/runtime/device/devprogram.cpp
@@ -238,7 +238,7 @@ amd_comgr_status_t Program::extractByteCodeBinary(const amd_comgr_data_set_t inD
// For log dataset, outputs are directed to stdout and stderr if
// the file name is "stdout" and "stderr", respectively.
if (!outFileName.empty()) {
- std::ios_base::openmode mode = std::ios::trunc;
+ std::ios_base::openmode mode = std::ios::trunc | std::ios::binary;
bool done = false;
// handle the log outputs