瀏覽代碼

fix access between worker and disk

Corentin Salingue 12 年之前
父節點
當前提交
b38eaf381c
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/datawizard/coherency.c

+ 4 - 0
src/datawizard/coherency.c

@@ -170,6 +170,10 @@ void _starpu_update_data_state(starpu_data_handle_t handle,
 
 static int worker_supports_direct_access(unsigned node, unsigned handling_node)
 {
+	/* only support disk <-> ram and disk <-> disk */
+	if (starpu_node_get_kind(node) == STARPU_DISK_RAM || starpu_node_get_kind(handling_node) == STARPU_DISK_RAM)
+		return 0;
+
 	if (node == handling_node)
 		return 1;