Browse Source

add report for comment

pull/1436/head
wangxiaotian22 4 years ago
parent
commit
a40c7fd0d4
2 changed files with 8 additions and 0 deletions
  1. +2
    -0
      ge/graph/passes/for_pass.cc
  2. +6
    -0
      ge/graph/passes/hccl_memcpy_pass.cc

+ 2
- 0
ge/graph/passes/for_pass.cc View File

@@ -359,6 +359,7 @@ Status ForPass::CreateLoopInput(const ComputeGraphPtr &graph, const ForInfo &for
graphStatus error_code = GRAPH_SUCCESS; graphStatus error_code = GRAPH_SUCCESS;
std::string error_msg; std::string error_msg;
if ((graph_builder.Build(error_code, error_msg) == nullptr) || (error_code != GRAPH_SUCCESS)) { if ((graph_builder.Build(error_code, error_msg) == nullptr) || (error_code != GRAPH_SUCCESS)) {
REPORT_CALL_ERROR("E19999", "Add loop input node to graph:%s failed", graph->GetName().c_str());
GELOGE(FAILED, "Create loop_count node failed: error_code:%u, error_msg:%s.", error_code, error_msg.c_str()); GELOGE(FAILED, "Create loop_count node failed: error_code:%u, error_msg:%s.", error_code, error_msg.c_str());
return FAILED; return FAILED;
} }
@@ -371,6 +372,7 @@ Status ForPass::CreateLoopInput(const ComputeGraphPtr &graph, const ForInfo &for
NodePtr abs_delta_node = graph_builder.GetNode(abs_name_0); NodePtr abs_delta_node = graph_builder.GetNode(abs_name_0);
NodePtr loop_count_node = graph_builder.GetNode(abs_name_1); NodePtr loop_count_node = graph_builder.GetNode(abs_name_1);
if ((abs_delta_node == nullptr) || (loop_count_node == nullptr)) { if ((abs_delta_node == nullptr) || (loop_count_node == nullptr)) {
REPORT_CALL_ERROR("E19999", "Add loop input node to graph:%s failed", graph->GetName().c_str());
GELOGE(FAILED, "Create loop node failed: node is NULL."); GELOGE(FAILED, "Create loop node failed: node is NULL.");
return FAILED; return FAILED;
} }


+ 6
- 0
ge/graph/passes/hccl_memcpy_pass.cc View File

@@ -227,6 +227,12 @@ Status HcclMemcpyPass::InsertIdentityBeforeHccl(const ComputeGraphPtr &graph, co


Status ret1 = src_out_anchor->Unlink(hccl_in_anchor); Status ret1 = src_out_anchor->Unlink(hccl_in_anchor);
if (ret1 != SUCCESS) { if (ret1 != SUCCESS) {
REPORT_CALL_ERROR("E19999",
"Op:%s(%s) out index:%d unlink from op:%s(%s) in index:%d failed",
src_out_anchor->GetOwnerNode()->GetName().c_str(),
src_out_anchor->GetOwnerNode()->GetType().c_str(), src_out_anchor->GetIdx(),
hccl_in_anchor->GetOwnerNode()->GetName().c_str(),
hccl_in_anchor->GetOwnerNode()->GetType().c_str(), hccl_in_anchor->GetIdx());
GELOGE(INTERNAL_ERROR, "The op %s Unlink anchor %s fail.", src_out_anchor->GetOwnerNode()->GetName().c_str(), GELOGE(INTERNAL_ERROR, "The op %s Unlink anchor %s fail.", src_out_anchor->GetOwnerNode()->GetName().c_str(),
hccl_in_anchor->GetOwnerNode()->GetName().c_str()); hccl_in_anchor->GetOwnerNode()->GetName().c_str());
return FAILED; return FAILED;


Loading…
Cancel
Save