Explorar o código

When refusing a task, note that prefetching was moot

Samuel Thibault %!s(int64=8) %!d(string=hai) anos
pai
achega
b5f48767d2
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/core/workers.c

+ 1 - 0
src/core/workers.c

@@ -2362,6 +2362,7 @@ void _starpu_worker_refuse_task(struct _starpu_worker *worker, struct starpu_tas
 		_starpu_set_current_task(NULL);
 	}
 	worker->ntasks--;
+	task->prefetched = 0;
 	int res = _starpu_push_task_to_workers(task);
 	STARPU_ASSERT_MSG(res == 0, "_starpu_push_task_to_workers() unexpectedly returned = %d\n", res);
 }