Browse Source

revert partially r16240 : allow users to use callback pop however they like (not only for parallel tasks)

Terry Cojean 10 years ago
parent
commit
28deab4c19
1 changed files with 1 additions and 4 deletions
  1. 1 4
      src/core/sched_policy.c

+ 1 - 4
src/core/sched_policy.c

@@ -922,10 +922,7 @@ profiling:
 		}
 	}
 
-	/* This function is useful only for CPUs as its unique purpose is to initialize
-	 * another runtime (e.g. OpenMP) when using parallel tasks (sched contexts without
-	 * policy). We therefore ensure GPUs don't try to execute it. */
-	if(task->prologue_callback_pop_func && worker->arch == STARPU_CPU_WORKER)
+	if(task->prologue_callback_pop_func)
 		task->prologue_callback_pop_func(task->prologue_callback_pop_arg);
 
 	return task;