diff --git a/mindspore/ccsrc/debug/rdr/base_recorder.h b/mindspore/ccsrc/debug/rdr/base_recorder.h index 12f019a879..5954bd9af0 100644 --- a/mindspore/ccsrc/debug/rdr/base_recorder.h +++ b/mindspore/ccsrc/debug/rdr/base_recorder.h @@ -30,9 +30,7 @@ class BaseRecorder { public: BaseRecorder() : module_(""), tag_(""), directory_(""), filename_(""), timestamp_("") {} BaseRecorder(const std::string &module, const std::string &tag) : module_(module), tag_(tag), filename_("") { - auto &config_parser_ptr = mindspore::EnvConfigParser::GetInstance(); - config_parser_ptr.Parse(); - directory_ = config_parser_ptr.rdr_path(); + directory_ = mindspore::EnvConfigParser::GetInstance().rdr_path(); if (tag.length() > maxTagLength) { tag_ = tag.substr(0, maxTagLength); diff --git a/mindspore/ccsrc/debug/rdr/recorder_manager.cc b/mindspore/ccsrc/debug/rdr/recorder_manager.cc index f3608fd1c0..42e5c3a48c 100644 --- a/mindspore/ccsrc/debug/rdr/recorder_manager.cc +++ b/mindspore/ccsrc/debug/rdr/recorder_manager.cc @@ -17,8 +17,6 @@ #include #include "debug/rdr/base_recorder.h" #include "debug/env_config_parser.h" -#include "mindspore/core/base/base.h" -#include "mindspore/core/ir/func_graph.h" namespace mindspore { diff --git a/mindspore/ccsrc/runtime/device/ascend/ascend_kernel_runtime.cc b/mindspore/ccsrc/runtime/device/ascend/ascend_kernel_runtime.cc index 87a2fdc382..e3e97a1b63 100644 --- a/mindspore/ccsrc/runtime/device/ascend/ascend_kernel_runtime.cc +++ b/mindspore/ccsrc/runtime/device/ascend/ascend_kernel_runtime.cc @@ -56,6 +56,9 @@ #include "tdt/tdt_host_interface.h" #include "tdt/status.h" #endif +#ifdef ENABLE_DUMP_IR +#include "debug/rdr/running_data_recorder.h" +#endif using ge::model_runner::ModelRunner; using mindspore::device::ascend::ProfilingManager; @@ -480,6 +483,9 @@ bool AscendKernelRuntime::LoadTask(const session::KernelGraph *graph) { status = ModelRunner::Instance().DistributeTask(model_iter->first); if (!status) { +#ifdef ENABLE_DUMP_IR + mindspore::RDR::TriggerAll(); +#endif MS_LOG(EXCEPTION) << "Distribute Task Failed"; }