Browse Source

Fix profiling data Flush failed in GLOG_v > 1

tags/v0.7.0-beta
caifubi 5 years ago
parent
commit
d01ca09e41
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      mindspore/ccsrc/runtime/device/ascend/profiling/profiling_manager.cc

+ 2
- 1
mindspore/ccsrc/runtime/device/ascend/profiling/profiling_manager.cc View File

@@ -181,7 +181,8 @@ bool ProfilingManager::StopProfiling() {
} }
Msprof::Engine::Reporter *reporter = PluginImpl::GetPluginReporter(); Msprof::Engine::Reporter *reporter = PluginImpl::GetPluginReporter();
if (reporter != nullptr) { if (reporter != nullptr) {
MS_LOG(INFO) << "report data end, ret = " << reporter->Flush();
auto ret = reporter->Flush();
MS_LOG(INFO) << "report data end, ret = " << ret;
} }


auto rt_ret = rtProfilerStop(); auto rt_ret = rtProfilerStop();


Loading…
Cancel
Save