瀏覽代碼

src: core/task.c: add missign include - core/sched_ctx.h: define function outside ifdef

Nathalie Furmento 11 年之前
父節點
當前提交
e9b6c7eb1a
共有 2 個文件被更改,包括 5 次插入4 次删除
  1. 4 4
      src/core/sched_ctx.h
  2. 1 0
      src/core/task.c

+ 4 - 4
src/core/sched_ctx.h

@@ -175,14 +175,14 @@ void _starpu_sched_ctx_rebind_thread_to_its_cpu(unsigned cpuid);
 /* let the appl know that the worker blocked to execute parallel code */
 void _starpu_sched_ctx_signal_worker_blocked(int workerid);
 
-#ifdef STARPU_USE_SC_HYPERVISOR
-/* Notifies the hypervisor that a tasks was poped from the workers' list */
-void _starpu_sched_ctx_post_exec_task_cb(int workerid, struct starpu_task *task, size_t data_size, uint32_t footprint);
-
 /* If starpu_sched_ctx_set_context() has been called, returns the context
  * id set by its last call, or the id of the initial context */
 unsigned _starpu_sched_ctx_get_current_context();
 
+#ifdef STARPU_USE_SC_HYPERVISOR
+/* Notifies the hypervisor that a tasks was poped from the workers' list */
+void _starpu_sched_ctx_post_exec_task_cb(int workerid, struct starpu_task *task, size_t data_size, uint32_t footprint);
+
 #endif //STARPU_USE_SC_HYPERVISOR
 
 #endif // __SCHED_CONTEXT_H__

+ 1 - 0
src/core/task.c

@@ -31,6 +31,7 @@
 #include <math.h>
 #include <string.h>
 #include <core/debug.h>
+#include <core/sched_ctx.h>
 
 /* XXX this should be reinitialized when StarPU is shutdown (or we should make
  * sure that no task remains !) */