瀏覽代碼

Fix requesting W access on disks: they do not have a worker to make them progress, so use the source node as being handler for the transfer

Samuel Thibault 8 年之前
父節點
當前提交
2ddd26a88f
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/datawizard/coherency.c

+ 4 - 1
src/datawizard/coherency.c

@@ -338,7 +338,10 @@ static int determine_request_path(starpu_data_handle_t handle,
 		/* The destination node should only allocate the data, no transfer is required */
 		STARPU_ASSERT(max_len >= 1);
 		src_nodes[0] = STARPU_MAIN_RAM; // ignored
-		dst_nodes[0] = dst_node;
+		if (starpu_node_get_kind(dst_node) == STARPU_DISK_RAM)
+			dst_nodes[0] = src_node;
+		else
+			dst_nodes[0] = dst_node;
 		handling_nodes[0] = dst_node;
 		return 1;
 	}