!13205 [Bug][MI]Dump graph file name not as expected

From: @islam_amin
Reviewed-by: @yelihua,@wangyue01
Signed-off-by: @wangyue01
This commit is contained in:
mindspore-ci-bot 2021-03-12 14:24:29 +08:00 committed by Gitee
commit 85211abe8e
1 changed files with 3 additions and 2 deletions

View File

@ -380,10 +380,11 @@ GraphId GPUSession::CompileGraphImpl(KernelGraphPtr graph) {
DumpIRProto(graph, "after_opt_" + std::to_string(graph->graph_id()));
}
if (json_parser.e2e_dump_enabled()) {
std::string final_graph = "trace_code_graph_" + std::to_string(graph->graph_id());
std::string root_dir = json_parser.path() + "/" + json_parser.net_name() + "/device_" + std::to_string(device_id);
std::string target_dir = root_dir + "/graphs";
std::string ir_file_path = target_dir + "/" + "after_opt_" + std::to_string(graph->graph_id()) + ".ir";
DumpIRProtoWithSrcInfo(graph, "after_opt_" + std::to_string(graph->graph_id()), target_dir, kDebugWholeStack);
std::string ir_file_path = target_dir + "/" + "ms_output_" + final_graph + ".ir";
DumpIRProtoWithSrcInfo(graph, final_graph, target_dir, kDebugWholeStack);
DumpIR("trace_code_graph", graph, true, kWholeStack, ir_file_path);
DumpGraphExeOrder("ms_execution_order_graph_" + std::to_string(graph->graph_id()) + ".csv", root_dir,
graph->execution_order());