소스 검색

Fix build

Cyril Roelandt 13 년 전
부모
커밋
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
 static void
 run_async(void)
 run_async(void)
 {
 {
+#ifdef STARPU_USE_CUDA
 	run_cuda(1);
 	run_cuda(1);
+#endif /* !STARPU_USE_CUDA */
+#ifdef STARPU_USE_OPENCL
 	run_opencl(1);
 	run_opencl(1);
+#endif /* !STARPU_USE_OPENCL */
 }
 }
 
 
 static void
 static void
@@ -523,8 +527,12 @@ run_sync(void)
 
 
 	handle->ops->copy_methods = &new_copy_methods;
 	handle->ops->copy_methods = &new_copy_methods;
 
 
+#ifdef STARPU_USE_CUDA
 	run_cuda(0);
 	run_cuda(0);
+#endif /* !STARPU_USE_CUDA */
+#ifdef STARPU_USE_OPENCL
 	run_opencl(0);
 	run_opencl(0);
+#endif /* !STARPU_USE_OPENCL */
 
 
 	handle->ops->copy_methods = old_copy_methods;
 	handle->ops->copy_methods = old_copy_methods;
 }
 }