Tool load failure report changing to unconditional print bcos it's already is controlled with the env var
Change-Id: I91b400ba94575a32005e825e6b41bda05c55b357
Этот коммит содержится в:
@@ -1373,7 +1373,7 @@ void Runtime::LoadTools() {
|
||||
}
|
||||
else {
|
||||
if (flag().report_tool_load_failures())
|
||||
debug_print("Tool lib \"%s\" failed to load.\n", name.c_str());
|
||||
fprintf(stderr, "Tool lib \"%s\" failed to load.\n", name.c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -86,7 +86,11 @@ class Flag {
|
||||
tools_lib_names_ = os::GetEnvVar("HSA_TOOLS_LIB");
|
||||
|
||||
var = os::GetEnvVar("HSA_TOOLS_REPORT_LOAD_FAILURE");
|
||||
#ifdef NDEBUG
|
||||
report_tool_load_failures_ = (var == "1") ? true : false;
|
||||
#else
|
||||
report_tool_load_failures_ = (var == "0") ? false : true;
|
||||
#endif
|
||||
|
||||
var = os::GetEnvVar("HSA_DISABLE_FRAGMENT_ALLOCATOR");
|
||||
disable_fragment_alloc_ = (var == "1") ? true : false;
|
||||
|
||||
Ссылка в новой задаче
Block a user