Browse Source

Fix test of previous commit

Samuel Thibault 6 years ago
parent
commit
ef72a85533
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/datawizard/memalloc.c

+ 5 - 2
src/datawizard/memalloc.c

@@ -790,8 +790,11 @@ restart:
 		if (mc->remove_notify)
 			/* Somebody already working here, skip */
 			continue;
-		if (is_prefetch > 1 && !mc->wontuse)
-			/* Do not evict something that we might reuse just for a prefetch */
+		if (is_prefetch > 1)
+			/* Do not evict a MC just for an idle fetch */
+			continue;
+		if (is_prefetch == 1 && !mc->wontuse)
+			/* Do not evict something that we might reuse, just for a prefetch */
 			continue;
 		if (mc->footprint != footprint || _starpu_data_interface_compare(handle->per_node[node].data_interface, handle->ops, mc->data->per_node[node].data_interface, mc->ops) != 1)
 			/* Not the right type of interface, skip */