Browse Source

include: starpu_scheduler.h is no longer automatically included by
starpu.h, it has to be manually included when needed

Nathalie Furmento 12 years ago
parent
commit
d56555097b

+ 2 - 0
ChangeLog

@@ -176,6 +176,8 @@ Changes:
   * Rename function starpu_free_buffer_on_node to starpu_free_on_node
   * Rename getter and setter functions for minimum and maximum task
     priorities
+  * starpu_scheduler.h is no longer automatically included by
+    starpu.h, it has to be manually included when needed
 
 Small changes:
   * STARPU_NCPU should now be used instead of STARPU_NCPUS. STARPU_NCPUS is

+ 1 - 0
examples/scheduler/dummy_sched.c

@@ -16,6 +16,7 @@
  */
 
 #include <starpu.h>
+#include <starpu_scheduler.h>
 
 #define NTASKS	32000
 #define FPRINTF(ofile, fmt, ...) do { if (!getenv("STARPU_SSILENT")) {fprintf(ofile, fmt, ## __VA_ARGS__); }} while(0)

+ 0 - 1
include/starpu.h

@@ -55,7 +55,6 @@ typedef UINT_PTR uintptr_t;
 #include <util/starpu_task_list_inline.h>
 #endif
 #include <starpu_task_util.h>
-#include <starpu_scheduler.h>
 #include <starpu_sched_ctx.h>
 #include <starpu_expert.h>
 #include <starpu_rand.h>

+ 1 - 0
src/sched_policies/stack_queues.c

@@ -18,6 +18,7 @@
 /* Stack queues, ready for use by schedulers */
 
 #include <starpu.h>
+#include <starpu_scheduler.h>
 #include <sched_policies/stack_queues.h>
 #include <errno.h>
 #include <common/utils.h>

+ 1 - 0
tests/perfmodels/regression_based.c

@@ -18,6 +18,7 @@
 
 #include <config.h>
 #include <starpu.h>
+#include <starpu_scheduler.h>
 #include "../helper.h"
 
 #ifdef STARPU_USE_CUDA

+ 1 - 0
tests/sched_policies/data_locality.c

@@ -15,6 +15,7 @@
  */
 
 #include <starpu.h>
+#include <starpu_scheduler.h>
 
 #include "../helper.h"
 

+ 1 - 0
tests/sched_policies/execute_all_tasks.c

@@ -15,6 +15,7 @@
  */
 
 #include <starpu.h>
+#include <starpu_scheduler.h>
 #include <core/jobs.h>
 #include "../helper.h"
 

+ 1 - 0
tests/sched_policies/simple_cpu_gpu_sched.c

@@ -15,6 +15,7 @@
  */
 
 #include <starpu.h>
+#include <starpu_scheduler.h>
 #include "../helper.h"
 
 /*

+ 1 - 0
tests/sched_policies/simple_deps.c

@@ -16,6 +16,7 @@
 
 #include <unistd.h>
 #include <starpu.h>
+#include <starpu_scheduler.h>
 #include "../helper.h"
 
 /*

+ 2 - 0
tools/starpu_machine_display.c

@@ -13,9 +13,11 @@
  *
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
+
 #include <config.h>
 #include <stdio.h>
 #include <starpu.h>
+#include <starpu_scheduler.h>
 
 #define PROGNAME "starpu_machine_display"