Ver código fonte

fix bound computation for restartable tasks

Samuel Thibault 15 anos atrás
pai
commit
b2067e6b94
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      src/core/task.c

+ 3 - 3
src/core/task.c

@@ -173,6 +173,9 @@ starpu_job_t _starpu_get_job_associated_to_task(struct starpu_task *task)
  * already counted. */
 int _starpu_submit_job(starpu_job_t j, unsigned do_not_increment_nsubmitted)
 {
+	/* notify bound computation of a new task */
+	_starpu_bound_record(j);
+
 	j->terminated = 0;
 
 	if (!do_not_increment_nsubmitted)
@@ -244,9 +247,6 @@ int starpu_task_submit(struct starpu_task *task)
 		j = (struct starpu_job_s *)task->starpu_private;
 	}
 
-	/* notify bound computation of a new task */
-	_starpu_bound_record(j);
-
 	ret = _starpu_submit_job(j, 0);
 
 	if (is_sync)