From d2f9e4b54cb99465eaa8768f5cfbcc46b005483f Mon Sep 17 00:00:00 2001 From: caifubi Date: Tue, 29 Dec 2020 19:11:47 +0800 Subject: [PATCH] Change profiling callback log level --- .../runtime/device/ascend/profiling/profiling_manager.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mindspore/ccsrc/runtime/device/ascend/profiling/profiling_manager.cc b/mindspore/ccsrc/runtime/device/ascend/profiling/profiling_manager.cc index 049ed132d93..5be04d72efc 100644 --- a/mindspore/ccsrc/runtime/device/ascend/profiling/profiling_manager.cc +++ b/mindspore/ccsrc/runtime/device/ascend/profiling/profiling_manager.cc @@ -249,7 +249,7 @@ Status RegProfSetDeviceCallback(MsprofSetDeviceCallback func) { MS_LOG(INFO) << "GE pass setdevice callback to runtime."; Status rt_ret = rtRegDeviceStateCallback(kRtSetDeviceRegName, static_cast(func)); if (rt_ret != PROF_SUCCESS) { - MS_LOG(ERROR) << "Pass MsprofSetDeviceCallback to runtime failed!"; + MS_LOG(WARNING) << "Pass MsprofSetDeviceCallback to runtime failed."; return rt_ret; } return PROF_SUCCESS; @@ -268,7 +268,7 @@ Status RegProfReporterCallback(MsprofReporterCallback func) { // Pass MsprofReporterCallback to runtime Status rt_ret = rtSetMsprofReporterCallback(func); if (rt_ret != PROF_SUCCESS) { - MS_LOG(ERROR) << "Pass MsprofReporterCallback to runtime failed, ret: " << rt_ret; + MS_LOG(WARNING) << "Pass MsprofReporterCallback to runtime failed, ret: " << rt_ret; return rt_ret; } // Pass MsprofReporterCallback to hccl