소스 검색

add case ram <-> disk in link support direct transfer

Corentin Salingue 12 년 전
부모
커밋
c4c9e9cc40
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      src/datawizard/coherency.c

+ 7 - 0
src/datawizard/coherency.c

@@ -233,6 +233,13 @@ static int link_supports_direct_transfers(starpu_data_handle_t handle, unsigned
 		return 1;
 	}
 
+	/* Link between disk and ram */
+	if ((starpu_node_get_kind(src_node) == STARPU_DISK_RAM && starpu_node_get_kind(dst_node) == STARPU_CPU_RAM) ||
+	    (starpu_node_get_kind(src_node) == STARPU_CPU_RAM && starpu_node_get_kind(dst_node) == STARPU_DISK_RAM))
+	{
+		return 1;
+	}
+
 	return 0;
 }