From c774a3470d1a67afa4e322616562fde2b8ca68c6 Mon Sep 17 00:00:00 2001 From: Ajay Date: Mon, 12 Aug 2024 16:14:45 -0700 Subject: [PATCH] SWDEV-478881 - Fix log AMD_LOG file corruption hiprtc and hip APIs use the same file. Append to file instead of start of file Change-Id: I2703f9bb67f0c51b557a058daab129679a0b5dd9 [ROCm/clr commit: e07172ff57d564c0855ba0f7e9ecf4f16a7d94c3] --- projects/clr/rocclr/utils/flags.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/rocclr/utils/flags.cpp b/projects/clr/rocclr/utils/flags.cpp index f68bc2a76c..31f8237888 100644 --- a/projects/clr/rocclr/utils/flags.cpp +++ b/projects/clr/rocclr/utils/flags.cpp @@ -152,7 +152,7 @@ bool Flag::init() { if (!flagIsDefault(AMD_LOG_LEVEL_FILE)) { std::string fileName = AMD_LOG_LEVEL_FILE; fileName = fileName + "_" + std::to_string(Os::getProcessId()); - outFile = fopen(fileName.c_str(), "w"); + outFile = fopen(fileName.c_str(), "a"); } }