소스 검색

Fix the build by adding a _starpu_cpu_discover_devices macro.

Cyril Roelandt 12 년 전
부모
커밋
febe37d46f
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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__