Browse Source

examples/basic_examples/multiformat.c: fix code when cpu is disabled

Nathalie Furmento 13 years ago
parent
commit
17ff8f196d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      examples/basic_examples/multiformat.c

+ 2 - 0
examples/basic_examples/multiformat.c

@@ -135,9 +135,11 @@ create_and_submit_task(unsigned int dev)
 	struct starpu_task *task = starpu_task_create();
 	switch (dev)
 	{
+#ifdef STARPU_USE_CPU
 		case STARPU_CPU:
 			task->cl = &cpu_cl;
 			break;
+#endif
 #ifdef STARPU_USE_CUDA
 		case STARPU_CUDA:
 			task->cl = &cuda_cl;