Browse Source

deque_modeling_policy_data_aware.c : the second argument of _starpu_fifo_pop_task() could no longer be -1.

Cyril Roelandt 13 years ago
parent
commit
393f59058f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/sched_policies/deque_modeling_policy_data_aware.c

+ 1 - 1
src/sched_policies/deque_modeling_policy_data_aware.c

@@ -153,7 +153,7 @@ static struct starpu_task *dmda_pop_task(void)
 	int workerid = starpu_worker_get_id();
 	int workerid = starpu_worker_get_id();
 	struct _starpu_fifo_taskq *fifo = queue_array[workerid];
 	struct _starpu_fifo_taskq *fifo = queue_array[workerid];
 
 
-	task = _starpu_fifo_pop_task(fifo, -1);
+	task = _starpu_fifo_pop_task(fifo, workerid);
 	if (task) {
 	if (task) {
 		double model = task->predicted;
 		double model = task->predicted;