ソースを参照

We only execute the post-exec hook if the task was put on the queue by the
scheduling policy. This mean we won't execute this hook in the case of tasks
that were explicitely assigned to the worker.

Cédric Augonnet 14 年 前
コミット
f135325b1c
共有1 個のファイルを変更した3 個の追加1 個の削除を含む
  1. 3 1
      src/core/sched_policy.c

+ 3 - 1
src/core/sched_policy.c

@@ -350,7 +350,9 @@ struct starpu_task *_starpu_pop_every_task(void)
 
 void _starpu_sched_post_exec_hook(struct starpu_task *task)
 {
-	if (policy.post_exec_hook)
+	/* We only execute the hook if the task was put here by the scheduling
+	 * policy */
+	if (!task->execute_on_a_specific_worker && policy.post_exec_hook)
 		policy.post_exec_hook(task);
 }