Explorar el Código

Don't bother prefetching some data which will be overwritten

Samuel Thibault hace 7 años
padre
commit
983ee9eecd
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      src/datawizard/coherency.c

+ 4 - 0
src/datawizard/coherency.c

@@ -972,6 +972,10 @@ int starpu_idle_prefetch_task_input_on_node_prio(struct starpu_task *task, unsig
 		if (mode & (STARPU_SCRATCH|STARPU_REDUX))
 			continue;
 
+		if (!(mode & STARPU_R))
+			/* Don't bother prefetching some data which will be overwritten */
+			continue;
+
 		struct _starpu_data_replicate *replicate = &handle->per_node[node];
 		idle_prefetch_data_on_node(handle, node, replicate, mode, prio);
 	}