From d01ca09e41d9bba4f84fbac210623ba2284d48b5 Mon Sep 17 00:00:00 2001 From: caifubi Date: Mon, 3 Aug 2020 14:13:03 +0800 Subject: [PATCH] Fix profiling data Flush failed in GLOG_v > 1 --- .../ccsrc/runtime/device/ascend/profiling/profiling_manager.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mindspore/ccsrc/runtime/device/ascend/profiling/profiling_manager.cc b/mindspore/ccsrc/runtime/device/ascend/profiling/profiling_manager.cc index 8bd7940f3e..bb7c1eae90 100644 --- a/mindspore/ccsrc/runtime/device/ascend/profiling/profiling_manager.cc +++ b/mindspore/ccsrc/runtime/device/ascend/profiling/profiling_manager.cc @@ -181,7 +181,8 @@ bool ProfilingManager::StopProfiling() { } Msprof::Engine::Reporter *reporter = PluginImpl::GetPluginReporter(); 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();