Explorar el Código

Also make sure we don't execute post_exec when cl has STARPU_NOWHERE

Samuel Thibault hace 8 años
padre
commit
b3dac87810
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/core/sched_policy.c

+ 1 - 1
src/core/sched_policy.c

@@ -1073,7 +1073,7 @@ void _starpu_sched_pre_exec_hook(struct starpu_task *task)
 
 void _starpu_sched_post_exec_hook(struct starpu_task *task)
 {
-	STARPU_ASSERT(task->cl != NULL);
+	STARPU_ASSERT(task->cl != NULL && task->cl->where != STARPU_NOWHERE);
 	unsigned sched_ctx_id = starpu_sched_ctx_get_ctx_for_task(task);
 	struct _starpu_sched_ctx *sched_ctx = _starpu_get_sched_ctx_struct(sched_ctx_id);
 	if (sched_ctx->sched_policy && sched_ctx->sched_policy->post_exec_hook)