From 5622a9eec4564d69851c7f61380f424bf4f59456 Mon Sep 17 00:00:00 2001 From: jjfeing Date: Mon, 15 Jun 2020 11:14:16 +0800 Subject: [PATCH] modify log level from debug to info --- mindspore/ccsrc/kernel/tbe/tbe_convert_utils.cc | 4 ++-- .../kernel/tbe/tbe_kernel_parallel_build.cc | 4 ++-- mindspore/ccsrc/kernel/tbe/tbe_utils.cc | 16 ++++++++-------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/mindspore/ccsrc/kernel/tbe/tbe_convert_utils.cc b/mindspore/ccsrc/kernel/tbe/tbe_convert_utils.cc index e6f5b3985..327802100 100644 --- a/mindspore/ccsrc/kernel/tbe/tbe_convert_utils.cc +++ b/mindspore/ccsrc/kernel/tbe/tbe_convert_utils.cc @@ -101,7 +101,7 @@ size_t GetDtypeNbyte(const std::string &dtypes) { FusionType GetFusionType(const std::string &pattern) { auto iter = fusion_type_maps.find(pattern); if (iter == fusion_type_maps.end()) { - MS_LOG(DEBUG) << "Illegal fusion pattern: " << pattern; + MS_LOG(INFO) << "Illegal fusion pattern: " << pattern; return UNKNOWN_FUSION_TYPE; } return iter->second; @@ -115,7 +115,7 @@ std::string GetProcessor(const AnfNodePtr &anf_node) { device = kProcessorAiCore; break; default: - MS_LOG(DEBUG) << "Unknown processor type." << anf_node->fullname_with_scope(); + MS_LOG(INFO) << "Unknown processor type." << anf_node->fullname_with_scope(); break; } return device; diff --git a/mindspore/ccsrc/kernel/tbe/tbe_kernel_parallel_build.cc b/mindspore/ccsrc/kernel/tbe/tbe_kernel_parallel_build.cc index 7f6fc2dc2..c2d315d14 100644 --- a/mindspore/ccsrc/kernel/tbe/tbe_kernel_parallel_build.cc +++ b/mindspore/ccsrc/kernel/tbe/tbe_kernel_parallel_build.cc @@ -220,7 +220,7 @@ std::pair ParallelBuildManager::TaskFinishProcess(int32_t if (set_kernel_mod) { MS_EXCEPTION(ArgumentError) << "build kernel name:" << task_iter->second.json_name << " failed."; } else { - MS_LOG(DEBUG) << "fusion build kernel name:" << task_iter->second.json_name << "failed."; + MS_LOG(INFO) << "fusion build kernel name:" << task_iter->second.json_name << "failed."; auto ret = std::make_pair(task_iter->second.scope_id, nullptr); (void)task_map_.erase(task_iter); return ret; @@ -255,7 +255,7 @@ bool ParallelBuildManager::GenSameOpKernelMod() const { bool ret = SearchInCache(task_info.json_name, task_info.processor, task_info.input_size_list, task_info.output_size_list, task_info.node); if (!ret) { - MS_LOG(DEBUG) << "can't find " << task_info.json_name << " in cache."; + MS_LOG(INFO) << "can't find " << task_info.json_name << " in cache."; return false; } } diff --git a/mindspore/ccsrc/kernel/tbe/tbe_utils.cc b/mindspore/ccsrc/kernel/tbe/tbe_utils.cc index 5980a0fd8..a930fd3dc 100644 --- a/mindspore/ccsrc/kernel/tbe/tbe_utils.cc +++ b/mindspore/ccsrc/kernel/tbe/tbe_utils.cc @@ -67,12 +67,12 @@ void TbeUtils::SaveJsonInfo(const std::string &json_name, const std::string &inf filewrite << info << std::endl; filewrite.close(); if (nullptr == realpath(path.c_str(), real_path)) { - MS_LOG(DEBUG) << "dir: " << path << "does not exit."; + MS_LOG(INFO) << "dir: " << path << "does not exit."; return; } MS_LOG(INFO) << "real path is: " << real_path; if (chmod(real_path, S_IRUSR) == -1) { - MS_LOG(DEBUG) << "modify file: " << real_path << "to read only fail."; + MS_LOG(INFO) << "modify file: " << real_path << "to read only fail."; } } @@ -93,7 +93,7 @@ KernelPackPtr TbeUtils::SearchCache(const std::string &kernel_name, const std::s // search cache. KernelMeta *bin_map = KernelMeta::GetInstance(); if (bin_map == nullptr) { - MS_LOG(DEBUG) << "kernel cache is invalid."; + MS_LOG(INFO) << "kernel cache is invalid."; return nullptr; } return bin_map->GetKernelPack(kernel_name, processor); @@ -118,14 +118,14 @@ int KernelManager::BinaryRegister(const mindspore::kernel::FlexArray &kernel_buf dev_bin.data = kernel_buffer.contents; auto iter = magic_maps.find(magic); if (iter == magic_maps.end()) { - MS_LOG(DEBUG) << "Invalid magic number: " << magic; + MS_LOG(INFO) << "Invalid magic number: " << magic; return -1; } dev_bin.magic = iter->second; dev_bin.length = kernel_buffer.len; dev_bin.version = 2; if (RT_ERROR_NONE != rtDevBinaryRegister(&dev_bin, module)) { - MS_LOG(DEBUG) << "Call runtime rtDevBinaryRegister error."; + MS_LOG(INFO) << "Call runtime rtDevBinaryRegister error."; return -1; } return 0; @@ -158,14 +158,14 @@ uintptr_t KernelManager::GenFuncStub(const mindspore::kernel::KernelPack &kernel } void *module = nullptr; if (0 != BinaryRegister((*kernel_pack.GetKernel()), &module, magic)) { - MS_LOG(DEBUG) << "Call runtime BinaryRegister error."; + MS_LOG(INFO) << "Call runtime BinaryRegister error."; return 0; } // to diff different funcs. uintptr_t funcstub = ++kernel_stub_gen_; if (RT_ERROR_NONE != rtFunctionRegister(module, reinterpret_cast(funcstub), funcname.c_str(), funcname.c_str(), 0)) { - MS_LOG(DEBUG) << "Call runtime rtFunctionRegister error."; + MS_LOG(INFO) << "Call runtime rtFunctionRegister error."; return 0; } // cache the registered kernelmeta. @@ -236,7 +236,7 @@ KernelPackPtr KernelMeta::GetKernelPack(const std::string &kernel_name, const st (void)cce_json.append(kernel_name).append(kJsonSuffix); ret = std::make_shared(); if (!ret->LoadKernelMeta(cce_json, processor)) { - MS_LOG(DEBUG) << "Read cache json and bin file failed[" << cce_json << "]"; + MS_LOG(INFO) << "Read cache json and bin file failed[" << cce_json << "]"; return nullptr; } kernel_pack_map_[kernel_name] = ret; -- GitLab