|
@@ -1,6 +1,6 @@
|
|
/*
|
|
/*
|
|
* This file is part of the StarPU Handbook.
|
|
* This file is part of the StarPU Handbook.
|
|
- * Copyright (C) 2009--2011 Universit@'e de Bordeaux 1
|
|
|
|
|
|
+ * Copyright (C) 2009--2011 Universit@'e de Bordeaux
|
|
* Copyright (C) 2010, 2011, 2012, 2013, 2014 Centre National de la Recherche Scientifique
|
|
* Copyright (C) 2010, 2011, 2012, 2013, 2014 Centre National de la Recherche Scientifique
|
|
* Copyright (C) 2011, 2012 Institut National de Recherche en Informatique et Automatique
|
|
* Copyright (C) 2011, 2012 Institut National de Recherche en Informatique et Automatique
|
|
* See the file version.doxy for copying conditions.
|
|
* See the file version.doxy for copying conditions.
|
|
@@ -126,6 +126,26 @@ Check if the worker specified by workerid can execute the codelet.
|
|
Schedulers need to call it before assigning a task to a worker,
|
|
Schedulers need to call it before assigning a task to a worker,
|
|
otherwise the task may fail to execute.
|
|
otherwise the task may fail to execute.
|
|
|
|
|
|
|
|
+\fn int starpu_worker_can_execute_task_impl(unsigned workerid, struct starpu_task *task, unsigned *impl_mask)
|
|
|
|
+\ingroup API_Scheduling_Policy
|
|
|
|
+Check if the worker specified by workerid can execute the codelet and returns
|
|
|
|
+which implementation numbers can be used.
|
|
|
|
+Schedulers need to call it before assigning a task to a worker,
|
|
|
|
+otherwise the task may fail to execute.
|
|
|
|
+This should be preferred rather than calling starpu_worker_can_execute_task for
|
|
|
|
+each and every implementation. It can also be used with impl_mask == NULL to
|
|
|
|
+check for at least one implementation without determining which.
|
|
|
|
+
|
|
|
|
+\fn int starpu_worker_can_execute_task_first_impl(unsigned workerid, struct starpu_task *task, unsigned *nimpl)
|
|
|
|
+\ingroup API_Scheduling_Policy
|
|
|
|
+Check if the worker specified by workerid can execute the codelet and returns
|
|
|
|
+the first implementation which can be used.
|
|
|
|
+Schedulers need to call it before assigning a task to a worker,
|
|
|
|
+otherwise the task may fail to execute.
|
|
|
|
+This should be preferred rather than calling starpu_worker_can_execute_task for
|
|
|
|
+each and every implementation. It can also be used with impl_mask == NULL to
|
|
|
|
+check for at least one implementation without determining which.
|
|
|
|
+
|
|
\fn uint32_t starpu_task_footprint(struct starpu_perfmodel *model, struct starpu_task *task, struct starpu_perfmodel_arch *arch, unsigned nimpl)
|
|
\fn uint32_t starpu_task_footprint(struct starpu_perfmodel *model, struct starpu_task *task, struct starpu_perfmodel_arch *arch, unsigned nimpl)
|
|
\ingroup API_Scheduling_Policy
|
|
\ingroup API_Scheduling_Policy
|
|
Returns the footprint for a given task, taking into account user-provided
|
|
Returns the footprint for a given task, taking into account user-provided
|