Forráskód Böngészése

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

Cyril Roelandt 13 éve
szülő
commit
2d3db3eeb9
1 módosított fájl, 6 hozzáadás és 0 törlés
  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 */
 }