浏览代码

Also don't execute post_exec_hook when the codelet has where == NOWHERE

Samuel Thibault 8 年之前
父节点
当前提交
7f6b19271d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/jobs.c

+ 1 - 1
src/core/jobs.c

@@ -339,7 +339,7 @@ void _starpu_handle_job_termination(struct _starpu_job *j)
 	 * scheduler to process it : the task structure doesn't contain any valuable
 	 * data as it's not linked to an actual worker */
 	/* control task should not execute post_exec_hook */
-	unsigned nowhere = !task->cl || task->where == STARPU_NOWHERE;
+	unsigned nowhere = !task->cl || task->cl->where == STARPU_NOWHERE || task->where == STARPU_NOWHERE;
 	if(j->task_size == 1 && !nowhere && !j->internal
 #ifdef STARPU_OPENMP
 	/* If this is a continuation, we do not execute the post_exec_hook. The