Browse Source

src/core/jobs.c: partly revert #21133, task without a codelet should not call _starpu_sched_post_exec_hook (thanks Olivier for pointing out the mistake)

Nathalie Furmento 8 years ago
parent
commit
8a60c4b905
1 changed files with 1 additions and 1 deletions
  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->where == STARPU_NOWHERE;
+	unsigned nowhere = !task->cl || 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