소스 검색

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;
 	}