From 8d87941ecc6911a0467f6ae8f836ba8646f987e6 Mon Sep 17 00:00:00 2001 From: gengchao Date: Thu, 15 Oct 2020 14:12:51 +0800 Subject: [PATCH 1/2] add env control for debug graph file's ump path --- src/common/graph/utils/graph_utils.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/graph/utils/graph_utils.cc b/src/common/graph/utils/graph_utils.cc index c741a316..16a85b77 100644 --- a/src/common/graph/utils/graph_utils.cc +++ b/src/common/graph/utils/graph_utils.cc @@ -60,6 +60,7 @@ const int32_t kBaseOfIntegerValue = 10; const char *const kDumpGeGraph = "DUMP_GE_GRAPH"; const int kDumpGraphIndexWidth = 5; #endif +const char *const kDumpGraphPath = "DUMP_GRAPH_PATH"; const char *const kDumpGraphLevel = "DUMP_GRAPH_LEVEL"; const char *const kDumpStrBuild = "Build"; const char *const kDumpStrPartition = "partition"; From 53381d554ea233c2532cba5a013d868fb3c699b6 Mon Sep 17 00:00:00 2001 From: gengchao Date: Mon, 19 Oct 2020 15:39:58 +0800 Subject: [PATCH 2/2] clear session_graph_id attr for mstune --- src/common/graph/utils/tuning_utils.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/common/graph/utils/tuning_utils.cc b/src/common/graph/utils/tuning_utils.cc index 0f07a197..7145780b 100644 --- a/src/common/graph/utils/tuning_utils.cc +++ b/src/common/graph/utils/tuning_utils.cc @@ -116,6 +116,10 @@ graphStatus TuningUtils::ConvertGraphToFile(std::vector tuning_ // +---------------+ graphStatus TuningUtils::MakeExeGraph(ComputeGraphPtr &exe_graph, const HelpInfo &help_info) { GE_CHECK_NOTNULL(exe_graph); + // clear graph id + GELOGI("TUU:clear [%s] session_graph_id %s", + exe_graph->GetName().c_str(), + (AttrUtils::SetStr(*exe_graph, ATTR_NAME_SESSION_GRAPH_ID, "") ? "success" : "not success")); // if not make exe, just dump and return if (!help_info.exe_flag) { DumpGraphToPath(exe_graph, help_info.index, help_info.is_tuning_graph, help_info.path); @@ -681,4 +685,4 @@ graphStatus TuningUtils::GetInAndOutAnchorPair(NodePtr &data_node, NodePtr &out_ return SUCCESS; } -} // namespace ge \ No newline at end of file +} // namespace ge