소스 검색

Export starpu_worker_set_sched_condition

Cédric Augonnet 15 년 전
부모
커밋
bb022881dd
3개의 변경된 파일4개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 0
      include/starpu.h
  2. 3 3
      include/starpu_scheduler.h
  3. 0 2
      src/core/workers.h

+ 1 - 0
include/starpu.h

@@ -33,6 +33,7 @@ typedef unsigned long long uint64_t;
 #include <starpu_data.h>
 #include <starpu_perfmodel.h>
 #include <starpu_task.h>
+#include <starpu_scheduler.h>
 #include <starpu_expert.h>
 
 #ifdef __cplusplus

+ 3 - 3
include/starpu_scheduler.h

@@ -24,6 +24,8 @@
 #include <hwloc.h>
 #endif
 
+struct starpu_task;
+
 struct starpu_machine_topology_s {
 	unsigned nworkers;
 
@@ -50,8 +52,6 @@ struct starpu_machine_topology_s {
 	unsigned workers_opencl_gpuid[STARPU_NMAXWORKERS];
 };
 
-
-
 struct starpu_sched_policy_s {
 	/* create all the queues */
 	void (*init_sched)(struct starpu_machine_topology_s *, struct starpu_sched_policy_s *);
@@ -79,6 +79,6 @@ struct starpu_sched_policy_s {
 	const char *policy_description;
 };
 
-
+void starpu_worker_set_sched_condition(int workerid, pthread_cond_t *sched_cond, pthread_mutex_t *sched_mutex);
 
 #endif // __STARPU_SCHEDULER_H__

+ 0 - 2
src/core/workers.h

@@ -147,6 +147,4 @@ void _starpu_worker_set_status(int workerid, starpu_worker_status status);
 /* TODO move */
 unsigned _starpu_execute_registered_progression_hooks(void);
 
-void starpu_worker_set_sched_condition(int workerid, pthread_cond_t *sched_cond, pthread_mutex_t *sched_mutex);
-
 #endif // __WORKERS_H__