Browse Source

src: include core/task.h when needed

Nathalie Furmento 8 years ago
parent
commit
bf074a7831

+ 2 - 1
src/core/perfmodel/perfmodel.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2009-2016  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2016  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017  CNRS
  * Copyright (C) 2011  Télécom-SudParis
  * Copyright (C) 2016, 2017  Inria
  * Copyright (C) 2016  Uppsala University
@@ -30,6 +30,7 @@
 #include <core/jobs.h>
 #include <core/workers.h>
 #include <datawizard/datawizard.h>
+#include <core/task.h>
 
 #ifdef STARPU_HAVE_WINDOWS
 #include <windows.h>

+ 1 - 0
src/core/perfmodel/perfmodel_history.c

@@ -37,6 +37,7 @@
 #include <starpu_parameters.h>
 #include <common/uthash.h>
 #include <limits.h>
+#include <core/task.h>
 
 #ifdef STARPU_HAVE_WINDOWS
 #include <windows.h>

+ 1 - 0
src/core/sched_ctx.c

@@ -19,6 +19,7 @@
 #include <core/sched_ctx.h>
 #include <common/utils.h>
 #include <stdarg.h>
+#include <core/task.h>
 
 starpu_pthread_rwlock_t changing_ctx_mutex[STARPU_NMAX_SCHED_CTXS];
 

+ 1 - 0
src/core/sched_policy.c

@@ -24,6 +24,7 @@
 #include <profiling/profiling.h>
 #include <common/barrier.h>
 #include <core/debug.h>
+#include <core/task.h>
 
 static int use_prefetch = 0;
 static double idle[STARPU_NMAXWORKERS];

+ 1 - 1
src/drivers/driver_common/driver_common.c

@@ -29,7 +29,7 @@
 #include <core/sched_policy.h>
 #include <top/starpu_top_core.h>
 #include <core/debug.h>
-
+#include <core/task.h>
 
 #define BACKOFF_MAX 32  /* TODO : use parameter to define them */
 #define BACKOFF_MIN 1

+ 1 - 0
src/sched_policies/component_heft.c

@@ -27,6 +27,7 @@
 #include "helper_mct.h"
 #include <float.h>
 #include <core/sched_policy.h>
+#include <core/task.h>
 
 #define NTASKS 5
 

+ 2 - 1
src/sched_policies/component_mct.c

@@ -22,11 +22,12 @@
 #include "helper_mct.h"
 #include <float.h>
 #include <core/sched_policy.h>
+#include <core/task.h>
 
 static int mct_push_task(struct starpu_sched_component * component, struct starpu_task * task)
 {
 	STARPU_ASSERT(component && task && starpu_sched_component_is_mct(component));
-	struct _starpu_mct_data * d = component->data;	
+	struct _starpu_mct_data * d = component->data;
 	struct starpu_sched_component * best_component = NULL;
 
 	/* Estimated task duration for each child */

+ 1 - 0
src/sched_policies/component_random.c

@@ -18,6 +18,7 @@
 #include <starpu_sched_component.h>
 #include <core/workers.h>
 #include <core/sched_policy.h>
+#include <core/task.h>
 
 static double compute_relative_speedup(struct starpu_sched_component * component)
 {

+ 2 - 1
src/sched_policies/component_work_stealing.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2013  INRIA
- * Copyright (C) 2013, 2016  CNRS
+ * Copyright (C) 2013, 2016, 2017  CNRS
  * Copyright (C) 2013  Simon Archipoff
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -23,6 +23,7 @@
 #include <starpu.h>
 #include <core/workers.h>
 #include <core/sched_policy.h>
+#include <core/task.h>
 
 #include "prio_deque.h"
 

+ 2 - 1
src/sched_policies/parallel_heft.c

@@ -3,7 +3,7 @@
  * Copyright (C) 2012 INRIA
  * Copyright (C) 2010-2017  Université de Bordeaux
  * Copyright (C) 2011  Télécom-SudParis
- * Copyright (C) 2016  CNRS
+ * Copyright (C) 2016, 2017  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -26,6 +26,7 @@
 #include <starpu_parameters.h>
 #include <core/detect_combined_workers.h>
 #include <core/sched_policy.h>
+#include <core/task.h>
 
 #ifndef DBL_MIN
 #define DBL_MIN __DBL_MIN__

+ 2 - 1
src/sched_policies/random_policy.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010-2014, 2016  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013, 2014, 2016  CNRS
+ * Copyright (C) 2010, 2011, 2012, 2013, 2014, 2016, 2017  CNRS
  * Copyright (C) 2016  Inria
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -24,6 +24,7 @@
 #include <core/sched_policy.h>
 #include <sched_policies/fifo_queues.h>
 #include <core/debug.h>
+#include <core/task.h>
 
 static int _random_push_task(struct starpu_task *task, unsigned prio)
 {

+ 1 - 0
src/sched_policies/work_stealing_policy.c

@@ -26,6 +26,7 @@
 #include <starpu_scheduler.h>
 #include <core/sched_policy.h>
 #include <core/debug.h>
+#include <core/task.h>
 
 /* Experimental (dead) code which needs to be tested, fixed... */
 /* #define USE_OVERLOAD */