Procházet zdrojové kódy

Fix compilation if CUDA is not available

Cédric Augonnet před 15 roky
rodič
revize
d6d00f1f8b
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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 */
 	};