ソースを参照

fix data source test

Pierre-André Wacrenier 14 年 前
コミット
510b6aaf2b
共有1 個のファイルを変更した4 個の追加5 個の削除を含む
  1. 4 5
      src/datawizard/coherency.c

+ 4 - 5
src/datawizard/coherency.c

@@ -54,11 +54,10 @@ uint32_t _starpu_select_src_node(starpu_data_handle handle)
 
 			/* however GPU are expensive sources, really !
 			 * 	other should be ok */
-			if (_starpu_get_node_kind(i) != STARPU_CUDA_RAM)
-				break;
-			if (_starpu_get_node_kind(i) != STARPU_OPENCL_RAM)
-				break;
-
+		 
+			if (_starpu_get_node_kind(i) != STARPU_CUDA_RAM && _starpu_get_node_kind(i) != STARPU_OPENCL_RAM)	
+				break ;
+		 
 			/* XXX do a better algorithm to distribute the memory copies */
 			/* TODO : use the "requesting_node" as an argument to do so */
 		}