Browse Source

Fix compilation if CUDA is not available

Cédric Augonnet 15 years ago
parent
commit
d6d00f1f8b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      examples/pi/pi.c

+ 2 - 0
examples/pi/pi.c

@@ -93,7 +93,9 @@ int main(int argc, char **argv)
 	struct starpu_codelet_t cl = {
 		.where = STARPU_CPU|STARPU_CUDA,
 		.cpu_func = cpu_kernel,
+#ifdef STARPU_USE_CUDA
 		.cuda_func = cuda_kernel,
+#endif
 		.nbuffers = 3,
 		.model = NULL /* TODO */
 	};