Browse Source

log optimize

pull/1215/head
liyihan2@huawei.com 4 years ago
parent
commit
ab01ece68c
3 changed files with 4 additions and 4 deletions
  1. +1
    -1
      ge/analyzer/analyzer.cc
  2. +2
    -2
      ge/common/cust_aicpu_kernel_store.cc
  3. +1
    -1
      ge/common/ge/op_tiling_manager.cc

+ 1
- 1
ge/analyzer/analyzer.cc View File

@@ -314,4 +314,4 @@ void Analyzer::GraphInfoToJson(json& j, const GraphInfo &graph_info) {
}
j[kOp] = json_op_infos;
}
} //namespace ge
} // namespace ge

+ 2
- 2
ge/common/cust_aicpu_kernel_store.cc View File

@@ -31,9 +31,9 @@ void CustAICPUKernelStore::LoadCustAICPUKernelBinToOpDesc(const std::shared_ptr<
if (kernel_bin != nullptr) {
GE_IF_BOOL_EXEC(!op_desc->SetExtAttr(ge::OP_EXTATTR_CUSTAICPU_KERNEL, kernel_bin),
GELOGW("LoadKernelCustAICPUBinToOpDesc: SetExtAttr for kernel_bin failed");)
GELOGI("Load cust aicpu kernel:%s, %zu", kernel_bin->GetName().c_str(), kernel_bin->GetBinDataSize());
GELOGI("Load cust aicpu kernel:%s, %zu.", kernel_bin->GetName().c_str(), kernel_bin->GetBinDataSize());
}
}
GELOGD("LoadCustAICPUKernelBinToOpDesc success.");
}
} //namespace ge
} // namespace ge

+ 1
- 1
ge/common/ge/op_tiling_manager.cc View File

@@ -33,7 +33,7 @@ void OpTilingManager::ClearHandles() noexcept {
if (mmDlclose(handle.second) != 0) {
const char *error = mmDlerror();
GE_IF_BOOL_EXEC(error == nullptr, error = "");
GELOGE(FAILED, "Failed to close handle of %s: %s", handle.first.c_str(), error);
GELOGE(FAILED, "Failed to close handle of %s: %s.", handle.first.c_str(), error);
}
}
handles_.clear();


Loading…
Cancel
Save