From 744e291982ea868fc06efbf6750ad67047f65ab9 Mon Sep 17 00:00:00 2001 From: ougongchang Date: Thu, 18 Nov 2021 09:44:07 +0800 Subject: [PATCH] Change profiler parallel strategy file mode to 600, keep same with the other files --- .../ccsrc/profiler/device/ascend/parallel_strategy_profiling.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/ccsrc/profiler/device/ascend/parallel_strategy_profiling.cc b/mindspore/ccsrc/profiler/device/ascend/parallel_strategy_profiling.cc index 29a050b3dd1..2531f589f99 100644 --- a/mindspore/ccsrc/profiler/device/ascend/parallel_strategy_profiling.cc +++ b/mindspore/ccsrc/profiler/device/ascend/parallel_strategy_profiling.cc @@ -144,7 +144,7 @@ void DumpProfileParallelStrategy(const FuncGraphPtr &func_graph) { } ofs << GetProfilingParallelString(func_graph); ofs.close(); - ChangeFileMode(file_path, S_IRUSR); + ChangeFileMode(file_path, S_IRUSR | S_IWUSR); MS_LOG(INFO) << "Save profile parallel strategy success."; } } // namespace ascend