Browse Source

memalloc: Do try to reuse a non-wontuse memchunk for a prefetch

Wontuse is just a hint from the application, while we have nb_tasks_prefetch which counts properly.
Samuel Thibault 4 years ago
parent
commit
e88a1e567a
1 changed files with 0 additions and 3 deletions
  1. 0 3
      src/datawizard/memalloc.c

+ 0 - 3
src/datawizard/memalloc.c

@@ -890,9 +890,6 @@ restart:
 		if (mc->remove_notify)
 			/* Somebody already working here, skip */
 			continue;
-		if (!mc->wontuse && is_prefetch >= STARPU_PREFETCH)
-			/* Do not evict something that we might reuse, just for a prefetch */
-			continue;
 		if (is_prefetch >= STARPU_TASK_PREFETCH && mc->data->per_node[node].nb_tasks_prefetch)
 			/* Do not evict something that we will reuse, just for a task prefetch */
 			continue;