Cyril Roelandt %!s(int64=13) %!d(string=hai) anos
pai
achega
76ebf2d560
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      tests/datawizard/interfaces/test_interfaces.c

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

@@ -494,8 +494,12 @@ run_opencl(int async)
 static void
 run_async(void)
 {
+#ifdef STARPU_USE_CUDA
 	run_cuda(1);
+#endif /* !STARPU_USE_CUDA */
+#ifdef STARPU_USE_OPENCL
 	run_opencl(1);
+#endif /* !STARPU_USE_OPENCL */
 }
 
 static void
@@ -523,8 +527,12 @@ run_sync(void)
 
 	handle->ops->copy_methods = &new_copy_methods;
 
+#ifdef STARPU_USE_CUDA
 	run_cuda(0);
+#endif /* !STARPU_USE_CUDA */
+#ifdef STARPU_USE_OPENCL
 	run_opencl(0);
+#endif /* !STARPU_USE_OPENCL */
 
 	handle->ops->copy_methods = old_copy_methods;
 }