Browse Source

common log optimize

tags/v1.3.0
liyihan2@huawei.com 4 years ago
parent
commit
6c3e42487b
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      ge/engine_manager/dnnengine_manager.cc

+ 4
- 4
ge/engine_manager/dnnengine_manager.cc View File

@@ -108,9 +108,9 @@ Status DNNEngineManager::Initialize(const std::map<std::string, std::string> &op
if (attrs.runtime_type == RuntimeType::DEVICE) {
if ((attrs.mem_type.size()) != 1 || (attrs.mem_type[0] != GE_ENGINE_ATTR_MEM_TYPE_HBM)) {
GELOGE(GE_ENG_MEMTYPE_ERROR, "[Check][Param]Engine %s in aicore, but the memory type is "
"not HBM, mem_type_size %d", (iter->first).c_str(), attrs.mem_type.size());
"not HBM, mem_type_size %lu", (iter->first).c_str(), attrs.mem_type.size());
REPORT_CALL_ERROR("E19999", "Engine %s in aicore, but the memory type is not HBM, "
"mem_type_size %d", (iter->first).c_str(), attrs.mem_type.size());
"mem_type_size %lu", (iter->first).c_str(), attrs.mem_type.size());
return GE_ENG_MEMTYPE_ERROR;
}
}
@@ -364,9 +364,9 @@ Status DNNEngineManager::ParserJsonFile() {
}
status = ParserEngineMessage(engines_json_map, scheduler_id_temp, engine_conf_map);
if (status != SUCCESS) {
GELOGE(FAILED, "[Parse][EngineMessage]Failed, scheduler_id_temp %s", scheduler_id_temp);
GELOGE(FAILED, "[Parse][EngineMessage]Failed, scheduler_id_temp %s", scheduler_id_temp.c_str());
REPORT_CALL_ERROR("E19999", "Parse engine message failed, scheduler_id_temp %s",
scheduler_id_temp);
scheduler_id_temp.c_str());
return FAILED;
}
scheduler_conf.name = scheduler_utils_json[i][kName];


Loading…
Cancel
Save