|
@@ -542,7 +542,7 @@ This function creates a scheduling context which uses the scheduling policy indi
|
|
|
The return value represents the identifier of the context that has just been created. It will be further used to indicate the context the tasks will be submitted to. The return value should be at most @code{STARPU_NMAX_SCHED_CTXS}.
|
|
|
@end deftypefun
|
|
|
|
|
|
-@deftypefun void starpu_delete_sched_ctx (unsigned @var{sched_ctx_id}, unsigned @var{inheritor_sched_ctx_id})
|
|
|
+@deftypefun void starpu_delete_sched_ctx (unsigned @var{sched_ctx_id}, unsigned @var{inheritor_sched_ctx_id})
|
|
|
Delete scheduling context @var{sched_ctx_id} and lets scheduling context @var{inheritor_sched_ctx_id} take over its workers.
|
|
|
@end deftypefun
|
|
|
|
|
@@ -554,8 +554,8 @@ This function adds dynamically the workers indicated in the first argument to th
|
|
|
This function removes the workers indicated in the first argument from the context indicated in the last argument. The last argument cannot be greater than @code{STARPU_NMAX_SCHED_CTXS}.
|
|
|
@end deftypefun
|
|
|
|
|
|
-A scheduling context manages a collection of workers that can be memorized using different data structures. Thus, a generic structure is available in order to simplify the choice of its type.
|
|
|
-Only the list data structure is available but further data structures(like tree) implementations are foreseen.
|
|
|
+A scheduling context manages a collection of workers that can be memorized using different data structures. Thus, a generic structure is available in order to simplify the choice of its type.
|
|
|
+Only the list data structure is available but further data structures(like tree) implementations are foreseen.
|
|
|
|
|
|
@deftp {Data Type} {struct starpu_sched_ctx_worker_collection}
|
|
|
@table @asis
|
|
@@ -566,7 +566,7 @@ The number of workerids
|
|
|
@item @code{pthread_key_t cursor_key} (optional)
|
|
|
The cursor needed to iterate the collection (depending on the data structure)
|
|
|
@item @code{int type}
|
|
|
-The type of structure (currently WORKER_LIST is the only one available)
|
|
|
+The type of structure (currently WORKER_LIST is the only one available)
|
|
|
@item @code{unsigned (*has_next)(struct starpu_sched_ctx_worker_collection *workers)}
|
|
|
Checks if there is a next worker
|
|
|
@item @code{int (*get_next)(struct starpu_sched_ctx_worker_collection *workers)}
|
|
@@ -594,7 +594,7 @@ Creates a worker collection of the type indicated by the last parameter for the
|
|
|
@deftypefun void starpu_delete_worker_collection_for_sched_ctx (unsigned @var{sched_ctx_id})
|
|
|
Deletes the worker collection of the specified scheduling context
|
|
|
@end deftypefun
|
|
|
-
|
|
|
+
|
|
|
@deftypefun struct starpu_sched_ctx_worker_collection* starpu_get_worker_collection_of_sched_ctx (unsigned @var{sched_ctx_id})
|
|
|
Returns the worker collection managed by the indicated context
|
|
|
@end deftypefun
|
|
@@ -696,7 +696,7 @@ Description of the policy.
|
|
|
@end table
|
|
|
@end deftp
|
|
|
|
|
|
-@deftypefun void starpu_worker_set_sched_condition (unsigned @var{sched_ctx_id}, int @var{workerid}, {pthread_cond_t *}@var{sched_cond}, pthread_mutex_t *@var{sched_mutex})
|
|
|
+@deftypefun void starpu_worker_set_sched_condition (unsigned @var{sched_ctx_id}, int @var{workerid}, pthread_mutex_t *@var{sched_mutex}, {pthread_cond_t *}@var{sched_cond})
|
|
|
This function specifies the condition variable associated to a worker per context
|
|
|
When there is no available task for a worker, StarPU blocks this worker on a
|
|
|
condition variable. This function specifies which condition variable (and the
|
|
@@ -708,13 +708,13 @@ The initialization method of a scheduling strategy (@code{init_sched}) must
|
|
|
call this function once per worker.
|
|
|
@end deftypefun
|
|
|
|
|
|
-@deftypefun void starpu_worker_get_sched_condition (unsigned @var{sched_ctx_id}, int @var{workerid}, {pthread_cond_t **}@var{sched_cond}, {pthread_mutex_t **}@var{sched_mutex})
|
|
|
+@deftypefun void starpu_worker_get_sched_condition (unsigned @var{sched_ctx_id}, int @var{workerid}, {pthread_mutex_t **}@var{sched_mutex}, {pthread_cond_t **}@var{sched_cond})
|
|
|
This function returns the condition variables associated to a worker in a context
|
|
|
It is used in the policy to access to the local queue of the worker
|
|
|
@end deftypefun
|
|
|
|
|
|
-@deftypefun void starpu_set_sched_ctx_policy_data (unsigned @var{sched_ctx}, {void*} @var{policy_data})
|
|
|
-Each scheduling policy uses some specific data (queues, variables, additional condition variables).
|
|
|
+@deftypefun void starpu_set_sched_ctx_policy_data (unsigned @var{sched_ctx_id}, {void *} @var{policy_data})
|
|
|
+Each scheduling policy uses some specific data (queues, variables, additional condition variables).
|
|
|
It is memorize through a local structure. This function assigns it to a scheduling context.
|
|
|
@end deftypefun
|
|
|
|