Prechádzať zdrojové kódy

examples/filters/multiformat/opencl.c: fix compilation

Nathalie Furmento 13 rokov pred
rodič
commit
5645d5c161
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 2 0
      examples/filters/multiformat/opencl.c

+ 2 - 0
examples/filters/multiformat/opencl.c

@@ -18,6 +18,7 @@
 #include <starpu_opencl.h>
 #include "multiformat_types.h"
 
+#if defined(STARPU_USE_CPU) && defined(STARPU_USE_OPENCL)
 extern struct starpu_opencl_program opencl_program;
 
 void multiformat_scal_opencl_func(void *buffers[], void *args)
@@ -94,3 +95,4 @@ void multiformat_scal_opencl_func(void *buffers[], void *args)
 
 	starpu_opencl_release_kernel(kernel);
 }
+#endif