浏览代码

Don't bother prefetching some data which will be overwritten

Samuel Thibault 7 年之前
父节点
当前提交
f0caaec5e0
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/datawizard/coherency.c

+ 4 - 0
src/datawizard/coherency.c

@@ -891,6 +891,10 @@ int starpu_prefetch_task_input_on_node_prio(struct starpu_task *task, unsigned n
 		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];
 		prefetch_data_on_node(handle, node, replicate, mode, prio);