Browse Source

!14646 parallel ut fix retry

From: @yao_yf
Reviewed-by: 
Signed-off-by:
pull/14646/MERGE
mindspore-ci-bot Gitee 4 years ago
parent
commit
3932c4771a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/ccsrc/backend/session/executor.cc

+ 1
- 1
mindspore/ccsrc/backend/session/executor.cc View File

@@ -310,11 +310,11 @@ void Executor::ClearDoneTasks() {
}

void Executor::RunTask(const std::shared_ptr<Task> &task, bool sync, bool long_run) {
sync_run_task_finished_ = false;
{
std::lock_guard<std::mutex> lock(task_mutex_);
ready_tasks_.push(task);
}
sync_run_task_finished_ = false;
task_cond_var_.notify_all();
if (sync && !sync_run_task_finished_) {
std::unique_lock<std::mutex> lock(task_mutex_);


Loading…
Cancel
Save