Browse Source

Do bother allocating data ahead of time for tasks

fetch_data_on_node(STARPU_W) will not actually transfer the data so it
won't do useless work.  And we do want to allocate the data for the task,
otherwise we might fill the GPU with prefetched data, and end up having no
room for the allocation.
Samuel Thibault 4 years ago
parent
commit
6a74b60253
1 changed files with 0 additions and 4 deletions
  1. 0 4
      src/datawizard/coherency.c

+ 0 - 4
src/datawizard/coherency.c

@@ -932,10 +932,6 @@ int _starpu_prefetch_task_input_prio(struct starpu_task *task, int target_node,
 		if (mode & (STARPU_SCRATCH|STARPU_REDUX))
 		if (mode & (STARPU_SCRATCH|STARPU_REDUX))
 			continue;
 			continue;
 
 
-		if (!(mode & STARPU_R))
-			/* Don't bother prefetching some data which will be overwritten */
-			continue;
-
 		int node;
 		int node;
 		if (target_node >= 0)
 		if (target_node >= 0)
 			node = _starpu_task_data_get_node_on_node(task, index, target_node);
 			node = _starpu_task_data_get_node_on_node(task, index, target_node);