소스 검색

Also start scheduling when the application submission is stopped due to a limited number of tasks

Samuel Thibault 9 년 전
부모
커밋
8a2ea7aece
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/core/task.c

+ 1 - 0
src/core/task.c

@@ -620,6 +620,7 @@ int starpu_task_submit(struct starpu_task *task)
 		int nsubmitted_tasks = starpu_task_nsubmitted();
 		if (limit_max_submitted_tasks >= 0 && limit_max_submitted_tasks < nsubmitted_tasks
 			&& limit_min_submitted_tasks >= 0 && limit_min_submitted_tasks < nsubmitted_tasks)
+			starpu_do_schedule();
 			starpu_task_wait_for_n_submitted(limit_min_submitted_tasks);
 	}