瀏覽代碼

Fixing multiformat_handle_conversion

Cyril Roelandt 13 年之前
父節點
當前提交
675b5d9b72
共有 1 個文件被更改,包括 12 次插入6 次删除
  1. 12 6
      tests/datawizard/interfaces/multiformat/advanced/multiformat_handle_conversion.c

+ 12 - 6
tests/datawizard/interfaces/multiformat/advanced/multiformat_handle_conversion.c

@@ -138,11 +138,14 @@ test_cuda(void)
 #ifdef STARPU_USE_CPU
 	expected_stats.cpu = 1;
 #endif /* !STARPU_USE_CPU */
-#ifdef STARPU_USE_CUDA
+#ifdef STARPU_USE_OPENCL
+	expected_stats.opencl = 0;
+	expected_stats.cpu_to_opencl = 0;
+	expected_stats.opencl_to_cpu = 0;
+#endif /* !STARPU_USE_OPENCL */
+	expected_stats.cuda = 2;
 	expected_stats.cpu_to_cuda = 2;
 	expected_stats.cuda_to_cpu = 2;
-	expected_stats.cpu_to_cuda = 2;
-#endif /* !STARPU_USE_CUDA */
 
 	return compare_stats(&expected_stats, &global_stats);
 }
@@ -180,11 +183,14 @@ test_opencl(void)
 #ifdef STARPU_USE_CPU
 	expected_stats.cpu = 1;
 #endif /* !STARPU_USE_CPU */
-#ifdef STARPU_USE_OPENCl
+#ifdef STARPU_USE_CUDA
+	expected_stats.cuda = 0;
+	expected_stats.cpu_to_cuda = 0;
+	expected_stats.cuda_to_cpu = 0;
+#endif /* !STARPU_USE_CUDA */
+	expected_stats.opencl = 2;
 	expected_stats.cpu_to_opencl = 2;
 	expected_stats.opencl_to_cpu = 2;
-	expected_stats.cpu_to_opencl = 2;
-#endif /* !STARPU_USE_OPENCL */
 
 	return compare_stats(&expected_stats, &global_stats);
 }