Browse Source

src: define prototype for _starpu_sched_pre_exec_hook

Nathalie Furmento 13 years ago
parent
commit
84681134d5
2 changed files with 4 additions and 1 deletions
  1. 2 0
      src/core/sched_policy.h
  2. 2 1
      src/drivers/driver_common/driver_common.c

+ 2 - 0
src/core/sched_policy.h

@@ -40,4 +40,6 @@ void _starpu_wait_on_sched_event(void);
 struct starpu_task *_starpu_create_conversion_task(starpu_data_handle_t handle,
 						   unsigned int node);
 
+void _starpu_sched_pre_exec_hook(struct starpu_task *task);
+
 #endif // __SCHED_POLICY_H__

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

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010, 2011  Université de Bordeaux 1
- * Copyright (C) 2010, 2011  Centre National de la Recherche Scientifique
+ * Copyright (C) 2010, 2011, 2012  Centre National de la Recherche Scientifique
  * Copyright (C) 2011  Télécom-SudParis
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -24,6 +24,7 @@
 #include <core/debug.h>
 #include <drivers/driver_common/driver_common.h>
 #include <starpu_top.h>
+#include <core/sched_policy.h>
 
 void _starpu_driver_start_job(struct _starpu_worker *args, struct _starpu_job *j, struct timespec *codelet_start, int rank)
 {