Cyril Roelandt лет назад: 13
Родитель
Сommit
76ebf2d560
1 измененных файлов с 8 добавлено и 0 удалено
  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;
 }