|
|
|
@@ -33,15 +33,13 @@ Status GeOptInfo::SetOptInfo() { |
|
|
|
return FAILED; |
|
|
|
} |
|
|
|
GELOGD("Soc version:%s.", soc_ver.c_str()); |
|
|
|
std::map<std::string, std::string> opt_info; |
|
|
|
// the first arg does not work at present. |
|
|
|
if (gelc::GetOptInfo(gelc::kOffline, soc_ver, opt_info) != gelc::SUCCESS) { |
|
|
|
REPORT_CALL_ERROR("E19999", "Get optional information failed, is_offline:%d, soc version:%s", |
|
|
|
gelc::kOffline, soc_ver.c_str()); |
|
|
|
GELOGE(FAILED, "[Get][OptInfo]Get optional information failed, is_offline:%d, soc version:%s", |
|
|
|
gelc::kOffline, soc_ver.c_str()); |
|
|
|
return FAILED; |
|
|
|
} |
|
|
|
std::map<std::string, std::string> opt_info = { |
|
|
|
{"opt_module.pass", "ALL"}, |
|
|
|
{"opt_module.aoe", "ALL"}, |
|
|
|
{"opt_module.op_tune", "ALL"}, |
|
|
|
{"opt_module.rl_tune", "ALL"}, |
|
|
|
{"opt_module.fe", "ALL"}, |
|
|
|
}; |
|
|
|
// do nothing if get empty information |
|
|
|
if (opt_info.empty()) { |
|
|
|
GELOGI("Optional information is empty."); |
|
|
|
|