SWDEV-384013 - Print link options being passed to compiler with AMD_LOG_LEVEL

Change-Id: I556ed434587cff07a634796da51dcbb9ae78ef21


[ROCm/clr commit: 8753db5446]
Esse commit está contido em:
Jatin Chaudhary
2023-05-15 11:39:06 +01:00
commit de Jatin Jaikishan Chaudhary
commit 9e5b96d567
@@ -646,6 +646,16 @@ bool RTCLinkProgram::LinkComplete(void** bin_out, size_t* size_out) {
std::vector<std::string> exe_options = getLinkOptions(link_args_);
exe_options.push_back("-O3");
LogPrintfInfo("Exe options forwarded to compiler: %s",
[&]() {
std::string ret;
for (const auto& i : exe_options) {
ret += i;
ret += " ";
}
return ret;
}()
.c_str());
if (!createExecutable(exec_input_, isa_, exe_options, build_log_, executable_)) {
LogError("Error in hiprtc: unable to create exectuable");
return false;