|
|
@@ -769,7 +769,8 @@ Status TaskGenerator::AutoFindFpOpIndex(const ComputeGraphPtr &graph, ProfilingP |
|
|
|
GELOGW("not find fp_op_desc."); |
|
|
|
return SUCCESS; |
|
|
|
} |
|
|
|
GELOGI("Find fp_op_desc is %s, id is %ld", fp_op_desc->GetName().c_str(), fp_op_desc->GetId()); |
|
|
|
GEEVENT("Auto find graph[%s]'s fp node[%s], type[%s], index[%u], stream id[%ld]", graph->GetName().c_str(), |
|
|
|
fp_op_desc->GetName().c_str(), fp_op_desc->GetType().c_str(), fp_op_desc->GetId(), fp_op_desc->GetStreamId()); |
|
|
|
for (auto &node : graph->GetNodes(graph->GetGraphUnknownFlag())) { |
|
|
|
OpDescPtr op_desc = node->GetOpDesc(); |
|
|
|
GE_CHECK_NOTNULL(op_desc); |
|
|
@@ -866,8 +867,8 @@ Status TaskGenerator::FindLastBpFromBpNode(const ComputeGraphPtr &graph, const N |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
GELOGI("Last bp node[%s], type[%s], index[%u], stream id[%ld]", bp_op_desc->GetName().c_str(), |
|
|
|
bp_op_desc->GetType().c_str(), bp_index, bp_op_desc->GetStreamId()); |
|
|
|
GEEVENT("Auto find graph[%s]'s bp node[%s], type[%s], index[%u], stream id[%ld]", graph->GetName().c_str(), |
|
|
|
bp_op_desc->GetName().c_str(), bp_op_desc->GetType().c_str(), bp_op_desc->GetId(), bp_op_desc->GetStreamId()); |
|
|
|
return SUCCESS; |
|
|
|
} |
|
|
|
|
|
|
@@ -954,6 +955,8 @@ Status TaskGenerator::GetFpBpIndex(const ComputeGraphPtr &graph, ProfilingPoint |
|
|
|
GELOGW("First forward profiling op_index not set and FindFpOpIndex failed."); |
|
|
|
return FAILED; |
|
|
|
} |
|
|
|
} else { |
|
|
|
GEEVENT("Find fp node set by user, graph[%s], node[%s].", graph->GetName().c_str(), fp_point_str.c_str()); |
|
|
|
} |
|
|
|
|
|
|
|
if (bp_point_str.empty()) { |
|
|
@@ -962,6 +965,8 @@ Status TaskGenerator::GetFpBpIndex(const ComputeGraphPtr &graph, ProfilingPoint |
|
|
|
GELOGW("Last backward profiling op_index not set and FindBpOpIndex failed."); |
|
|
|
return FAILED; |
|
|
|
} |
|
|
|
} else { |
|
|
|
GEEVENT("Find bp node set by user, graph[%s], node[%s].", graph->GetName().c_str(), bp_point_str.c_str()); |
|
|
|
} |
|
|
|
|
|
|
|
return SUCCESS; |
|
|
@@ -1023,6 +1028,9 @@ Status TaskGenerator::FindProfilingTaskIndex(const ComputeGraphPtr &graph, Profi |
|
|
|
if (profiling_point.bp_index == 0 && train_graph) { |
|
|
|
GELOGW("Last backward op name can't be found in graph for training trace."); |
|
|
|
} |
|
|
|
for (const auto end_idx : profiling_point.end_index) { |
|
|
|
GEEVENT("Find end index: %u, graph: %s.", end_idx, graph->GetName().c_str()); |
|
|
|
} |
|
|
|
return SUCCESS; |
|
|
|
} |
|
|
|
|
|
|
|