SWDEV-503761 - Reintroduce save-temps path for OpenCL

Change-Id: I5e111047242aed7d982b7a25c11ab52293af639d


[ROCm/clr commit: 23c21d5181]
This commit is contained in:
Saleel Kudchadker
2024-12-10 20:13:30 +00:00
parent e3bf8acd82
commit 954c43d798
@@ -1427,6 +1427,15 @@ bool Program::initBuild(amd::option::Options* options) {
return false;
}
if (!amd::IS_HIP) {
std::string targetID = device().isa().targetId();
#if defined(_WIN32)
// Replace special charaters that are not supported by Windows FS.
std::replace(targetID.begin(), targetID.end(), ':', '@');
#endif
options->setPerBuildInfo(targetID.c_str(), clBinary()->getEncryptCode(), true);
}
// Elf Binary setup
std::string outFileName;
bool tempFile = false;