Browse Source

move declaration of internal function _starpu_sched_find_worker_combinations() into src directory

Nathalie Furmento 13 years ago
parent
commit
a65546ae4a

+ 0 - 2
include/starpu_scheduler.h

@@ -151,8 +151,6 @@ void starpu_sched_set_max_priority(int max_prio);
 
 /* Register a new combined worker and get its identifier */
 int starpu_combined_worker_assign_workerid(int nworkers, int workerid_array[]);
-/* Initialize combined workers */
-void _starpu_sched_find_worker_combinations(struct starpu_machine_topology_s *topology);
 /* Get the description of a combined worker */
 int starpu_combined_worker_get_description(int workerid, int *worker_size, int **combined_workerid);
 /* Variant of starpu_worker_may_execute_task compatible with combined workers */

+ 21 - 0
src/sched_policies/detect_combined_workers.h

@@ -0,0 +1,21 @@
+/* StarPU --- Runtime system for heterogeneous multicore architectures.
+ *
+ * Copyright (C) 2011 Centre National de la Recherche Scientifique
+ *
+ * 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
+ * the Free Software Foundation; either version 2.1 of the License, or (at
+ * your option) any later version.
+ *
+ * StarPU is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * See the GNU Lesser General Public License in COPYING.LGPL for more details.
+ */
+
+#include <starpu.h>
+
+/* Initialize combined workers */
+void _starpu_sched_find_worker_combinations(struct starpu_machine_topology_s *topology);
+

+ 1 - 0
src/sched_policies/parallel_greedy.c

@@ -18,6 +18,7 @@
 #include <core/workers.h>
 #include <sched_policies/fifo_queues.h>
 #include <common/barrier.h>
+#include <sched_policies/detect_combined_workers.h>
 
 /* the former is the actual queue, the latter some container */
 static struct starpu_fifo_taskq_s *fifo;

+ 1 - 0
src/sched_policies/parallel_heft.c

@@ -23,6 +23,7 @@
 #include <core/perfmodel/perfmodel.h>
 #include <starpu_parameters.h>
 #include <common/barrier.h>
+#include <sched_policies/detect_combined_workers.h>
 
 static pthread_mutex_t big_lock;