From 5902e36f14a2bd19bad0cec628d3c9be23c3dc2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=8D=8E?= Date: Thu, 24 Jun 2021 14:38:34 +0800 Subject: [PATCH] fix opt_info --- ge/CMakeLists.txt | 2 +- ge/ge_opt_info/ge_opt_info.cc | 15 +++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/ge/CMakeLists.txt b/ge/CMakeLists.txt index 543f9745..9490a59b 100755 --- a/ge/CMakeLists.txt +++ b/ge/CMakeLists.txt @@ -774,7 +774,7 @@ target_include_directories(ge_runner SYSTEM PRIVATE ${GE_CODE_DIR}/../inc/cce ${GE_CODE_DIR}/../toolchain/ide/ide-daemon/external ${GE_CODE_DIR}/../abl/adump/external - ${GE_CODE_DIR}/../abl/licctrll + ${GE_CODE_DIR}/../abl/licctrl #### blue zone ${ASCEND_DIR}/driver/include ${ASCEND_DIR}/fwkacllib/include diff --git a/ge/ge_opt_info/ge_opt_info.cc b/ge/ge_opt_info/ge_opt_info.cc index 8c1b84ab..9923eafb 100644 --- a/ge/ge_opt_info/ge_opt_info.cc +++ b/ge/ge_opt_info/ge_opt_info.cc @@ -34,14 +34,13 @@ Status GeOptInfo::SetOptInfo() { } GELOGD("Soc version:%s.", soc_ver.c_str()); std::map 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 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.");