Просмотр исходного кода

src: move definition of _starpu_create_task_alias in src/core/parallel_task.h

   the function is implemented in src/core/parallel_task.c
Nathalie Furmento лет назад: 12
Родитель
Сommit
e5ce977497

+ 9 - 0
src/core/parallel_task.h

@@ -13,3 +13,12 @@
  *
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
+
+#ifndef __PARALLEL_TASK_H__
+#define __PARALLEL_TASK_H__
+
+#include <starpu.h>
+
+struct starpu_task *_starpu_create_task_alias(struct starpu_task *task);
+
+#endif /* __PARALLEL_TASK_H__ */

+ 1 - 0
src/core/sched_policy.c

@@ -25,6 +25,7 @@
 #include <profiling/profiling.h>
 #include <common/barrier.h>
 #include <core/debug.h>
+#include <core/parallel_task.h>
 
 static int use_prefetch = 0;
 

+ 0 - 2
src/core/task.h

@@ -52,8 +52,6 @@ void _starpu_task_declare_deps_array(struct starpu_task *task, unsigned ndeps, s
  * to a task). */
 struct _starpu_job *_starpu_get_job_associated_to_task(struct starpu_task *task);
 
-struct starpu_task *_starpu_create_task_alias(struct starpu_task *task);
-
 /* Submits starpu internal tasks to the initial context */
 int _starpu_task_submit_internally(struct starpu_task *task);
 

+ 1 - 0
src/sched_policies/parallel_eager.c

@@ -20,6 +20,7 @@
 #include <sched_policies/fifo_queues.h>
 #include <common/barrier.h>
 #include <sched_policies/detect_combined_workers.h>
+#include <core/parallel_task.h>
 
 struct _starpu_peager_data
 {

+ 1 - 0
src/sched_policies/parallel_heft.c

@@ -25,6 +25,7 @@
 #include <starpu_parameters.h>
 #include <common/barrier.h>
 #include <sched_policies/detect_combined_workers.h>
+#include <core/parallel_task.h>
 
 #ifndef DBL_MIN
 #define DBL_MIN __DBL_MIN__