From 4349a5e375ccf2f1cce5580c30616ed49d08f511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=87=A7=E5=BA=86=E9=A6=99?= Date: Sat, 26 Mar 2022 17:03:07 +0800 Subject: [PATCH] parallel strategy remove graph name --- .../profiler/device/ascend/parallel_strategy_profiling.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mindspore/ccsrc/profiler/device/ascend/parallel_strategy_profiling.cc b/mindspore/ccsrc/profiler/device/ascend/parallel_strategy_profiling.cc index 681ba721593..1822635d672 100644 --- a/mindspore/ccsrc/profiler/device/ascend/parallel_strategy_profiling.cc +++ b/mindspore/ccsrc/profiler/device/ascend/parallel_strategy_profiling.cc @@ -38,12 +38,13 @@ namespace profiler { namespace ascend { bool has_save_parallel_strategy = false; bool has_got_parallel_strategy_data = false; +bool profiling_parallel_strategy_enabled = false; irpb::ProfilingParallel cache_profiling_parallel_pb; bool IsProfilingParallelStrategyEnabled() { auto ascend_profiler = AscendProfiler::GetInstance(); MS_EXCEPTION_IF_NULL(ascend_profiler); - if (!ascend_profiler->IsInitialized()) { + if (!profiling_parallel_strategy_enabled || !ascend_profiler->IsInitialized()) { MS_LOG(INFO) << "Profiling parallel strategy is disabled."; return false; }