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