| @@ -137,18 +137,20 @@ bool DataDumpParser::NeedDump(const std::string &op_full_name) const { | |||||
| return iter != kernel_map_.end(); | return iter != kernel_map_.end(); | ||||
| } | } | ||||
| bool DataDumpParser::IsConfigExist(const nlohmann::json &dump_settings) const { | |||||
| if (dump_settings.find(kConfigDumpMode) == dump_settings.end() || | |||||
| dump_settings.find(kConfigNetName) == dump_settings.end() || | |||||
| dump_settings.find(kConfigOpDebugMode) == dump_settings.end() || | |||||
| dump_settings.find(kConfigIteration) == dump_settings.end() || | |||||
| dump_settings.find(kConfigKernels) == dump_settings.end()) { | |||||
| MS_LOG(ERROR) << "[DataDump] DumpSettings keys are not exist."; | |||||
| bool CheckConfigKey(const nlohmann::json &dump_settings, const std::string &key) { | |||||
| if (dump_settings.find(key) == dump_settings.end()) { | |||||
| MS_LOG(ERROR) << "[DataDump] DumpSettings key:" << key << " is not exist."; | |||||
| return false; | return false; | ||||
| } | } | ||||
| return true; | return true; | ||||
| } | } | ||||
| bool DataDumpParser::IsConfigExist(const nlohmann::json &dump_settings) const { | |||||
| return CheckConfigKey(dump_settings, kConfigDumpMode) && CheckConfigKey(dump_settings, kConfigNetName) && | |||||
| CheckConfigKey(dump_settings, kConfigOpDebugMode) && CheckConfigKey(dump_settings, kConfigIteration) && | |||||
| CheckConfigKey(dump_settings, kConfigKernels); | |||||
| } | |||||
| bool DataDumpParser::ParseDumpSetting(const nlohmann::json &dump_settings) { | bool DataDumpParser::ParseDumpSetting(const nlohmann::json &dump_settings) { | ||||
| auto mode = dump_settings.at(kConfigDumpMode); | auto mode = dump_settings.at(kConfigDumpMode); | ||||
| auto op_debug_mode = dump_settings.at(kConfigOpDebugMode); | auto op_debug_mode = dump_settings.at(kConfigOpDebugMode); | ||||
| @@ -120,7 +120,7 @@ void ProfilingUtils::GetCNodeOutputRealNode(const std::string &node_name, const | |||||
| } | } | ||||
| } | } | ||||
| if (getnext_outputs->empty()) { | if (getnext_outputs->empty()) { | ||||
| MS_LOG(WARNING) << "GetNext not found"; | |||||
| MS_LOG(INFO) << "GetNext not found"; | |||||
| } | } | ||||
| } | } | ||||
| @@ -174,7 +174,7 @@ std::string ProfilingUtils::GetGraphLastTbeKernelName(const std::vector<CNodePtr | |||||
| } | } | ||||
| } | } | ||||
| if (last_tbe_kernel_name.empty()) { | if (last_tbe_kernel_name.empty()) { | ||||
| MS_LOG(WARNING) << "tbe kernel not found in graph"; | |||||
| MS_LOG(INFO) << "tbe kernel not found in graph"; | |||||
| } | } | ||||
| return last_tbe_kernel_name; | return last_tbe_kernel_name; | ||||
| } | } | ||||
| @@ -330,7 +330,7 @@ bool ProfilingUtils::ValidComputeGraph(NotNull<const session::KernelGraph *> gra | |||||
| void ProfilingUtils::ReportProfilingData(const std::vector<uint32_t> &task_ids, const std::vector<uint32_t> &stream_ids, | void ProfilingUtils::ReportProfilingData(const std::vector<uint32_t> &task_ids, const std::vector<uint32_t> &stream_ids, | ||||
| NotNull<const session::KernelGraph *> graph) { | NotNull<const session::KernelGraph *> graph) { | ||||
| if (!ValidComputeGraph(graph)) { | if (!ValidComputeGraph(graph)) { | ||||
| MS_LOG(WARNING) << "Not a valid compute graph:" << graph->graph_id(); | |||||
| MS_LOG(INFO) << "Not a valid compute graph:" << graph->graph_id(); | |||||
| return; | return; | ||||
| } | } | ||||
| @@ -25,6 +25,7 @@ namespace ascend { | |||||
| void GraphDescReporter::ReportData() { | void GraphDescReporter::ReportData() { | ||||
| for (const auto &node : cnode_list_) { | for (const auto &node : cnode_list_) { | ||||
| if (AnfAlgo::GetKernelType(node) != TBE_KERNEL && AnfAlgo::GetKernelType(node) != AKG_KERNEL) { | if (AnfAlgo::GetKernelType(node) != TBE_KERNEL && AnfAlgo::GetKernelType(node) != AKG_KERNEL) { | ||||
| MS_LOG(INFO) << "Skip non tbe kernel:" << node->fullname_with_scope(); | |||||
| continue; | continue; | ||||
| } | } | ||||
| std::vector<DataElement> input_data_list; | std::vector<DataElement> input_data_list; | ||||
| @@ -32,7 +32,7 @@ void TaskDescReporter::ReportData() { | |||||
| size_t task_index = 0; | size_t task_index = 0; | ||||
| for (const auto &node : cnode_list_) { | for (const auto &node : cnode_list_) { | ||||
| if (AnfAlgo::GetKernelType(node) != TBE_KERNEL && AnfAlgo::GetKernelType(node) != AKG_KERNEL) { | if (AnfAlgo::GetKernelType(node) != TBE_KERNEL && AnfAlgo::GetKernelType(node) != AKG_KERNEL) { | ||||
| MS_LOG(WARNING) << "Skip non tbe kernel"; | |||||
| MS_LOG(INFO) << "Skip non tbe kernel:" << node->fullname_with_scope(); | |||||
| ++task_index; | ++task_index; | ||||
| continue; | continue; | ||||
| } | } | ||||
| @@ -568,7 +568,7 @@ void KernelAdjust::Profiling(NotNull<session::KernelGraph *> kernel_graph_ptr) { | |||||
| } | } | ||||
| ProfilingTraceInfo profiling_trace_info = ProfilingUtils::GetProfilingTraceFromEnv(kernel_graph_ptr); | ProfilingTraceInfo profiling_trace_info = ProfilingUtils::GetProfilingTraceFromEnv(kernel_graph_ptr); | ||||
| if (!profiling_trace_info.IsValid()) { | if (!profiling_trace_info.IsValid()) { | ||||
| MS_LOG(WARNING) << "[profiling] no profiling node found!"; | |||||
| MS_LOG(INFO) << "[profiling] no profiling node found!"; | |||||
| return; | return; | ||||
| } | } | ||||
| InsertProfilingKernel(profiling_trace_info, kernel_graph_ptr); | InsertProfilingKernel(profiling_trace_info, kernel_graph_ptr); | ||||