Browse Source

Fix the build by adding a _starpu_cpu_discover_devices macro.

Cyril Roelandt 12 years ago
parent
commit
febe37d46f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/drivers/cpu/driver_cpu.h

+ 4 - 0
src/drivers/cpu/driver_cpu.h

@@ -28,11 +28,15 @@
 
 #include <starpu.h>
 
+#ifdef STARPU_USE_CPU
 void *_starpu_cpu_worker(void *);
 int _starpu_run_cpu(struct starpu_driver *);
 int _starpu_cpu_driver_init(struct starpu_driver *);
 int _starpu_cpu_driver_run_once(struct starpu_driver *);
 int _starpu_cpu_driver_deinit(struct starpu_driver *);
 void _starpu_cpu_discover_devices(struct _starpu_machine_config *config);
+#else
+#define _starpu_cpu_discover_devices(config) ((void) config)
+#endif /* !STARPU_USE_CPU */
 
 #endif //  __DRIVER_CPU_H__