瀏覽代碼

FIx test_vector_interface, which used to fail with --disable-cpu

Cyril Roelandt 13 年之前
父節點
當前提交
2d3db3eeb9
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      tests/datawizard/interfaces/test_interfaces.c

+ 6 - 0
tests/datawizard/interfaces/test_interfaces.c

@@ -463,8 +463,11 @@ run_cuda(int async)
 	summary.cuda_to_cuda_async = UNTESTED;
 #endif /* !HAVE_CUDA_MEMCPY_PEER */
 
+#ifdef STARPU_USE_CPU
 	err = cuda_to_ram();
 	set_field(&summary, async, CUDA_TO_CPU, err);
+#endif /* !STARPU_USE_CPU */
+
 #endif /* !STARPU_USE_CUDA */
 }
 
@@ -480,8 +483,11 @@ run_opencl(int async)
 	if (err != SUCCESS)
 		return;
 
+#if STARPU_USE_CPU
 	err = opencl_to_ram();
 	set_field(&summary, async, OPENCL_TO_CPU, err);
+#endif /*!STARPU_USE_CPU */
+
 #endif /* !STARPU_USE_OPENCL */
 }