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: e07172ff57]
Tá an tiomantas seo le fáil i:
Ajay údaraithe agus Ajay GunaShekar tiomanta 2024-08-23 11:19:48 -04:00
1 tuismitheoir 2af78c954b
tiomantas c774a3470d
1 comhad athraithe
+1 -1
+1 -1
Féach ar an gComhad
@@ -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");
}
}