Skip to content
Snippets Groups Projects
Commit 577a9022 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

replace 'wait' with 'implicit' in scheduler_addtask, as we weren't using the...

replace 'wait' with 'implicit' in scheduler_addtask, as we weren't using the former and could use the latter.
parent 4fcf5535
No related branches found
No related tags found
1 merge request!343Subset sorting
...@@ -751,12 +751,13 @@ void scheduler_splittasks(struct scheduler *s) { ...@@ -751,12 +751,13 @@ void scheduler_splittasks(struct scheduler *s) {
* @param type The type of the task. * @param type The type of the task.
* @param subtype The sub-type of the task. * @param subtype The sub-type of the task.
* @param flags The flags of the task. * @param flags The flags of the task.
* @param wait The number of unsatisfied dependencies of this task. * @param implicit If true, only use this task to unlock dependencies, i.e.
* this task is never enqueued.
* @param ci The first cell to interact. * @param ci The first cell to interact.
* @param cj The second cell to interact. * @param cj The second cell to interact.
*/ */
struct task *scheduler_addtask(struct scheduler *s, enum task_types type, struct task *scheduler_addtask(struct scheduler *s, enum task_types type,
enum task_subtypes subtype, int flags, int wait, enum task_subtypes subtype, int flags, int implicit,
struct cell *ci, struct cell *cj) { struct cell *ci, struct cell *cj) {
#ifdef SWIFT_DEBUG_CHECKS #ifdef SWIFT_DEBUG_CHECKS
...@@ -778,11 +779,11 @@ struct task *scheduler_addtask(struct scheduler *s, enum task_types type, ...@@ -778,11 +779,11 @@ struct task *scheduler_addtask(struct scheduler *s, enum task_types type,
t->type = type; t->type = type;
t->subtype = subtype; t->subtype = subtype;
t->flags = flags; t->flags = flags;
t->wait = wait; t->wait = 0;
t->ci = ci; t->ci = ci;
t->cj = cj; t->cj = cj;
t->skip = 1; /* Mark tasks as skip by default. */ t->skip = 1; /* Mark tasks as skip by default. */
t->implicit = 0; t->implicit = implicit;
t->weight = 0; t->weight = 0;
t->rank = 0; t->rank = 0;
t->nr_unlock_tasks = 0; t->nr_unlock_tasks = 0;
......
...@@ -133,7 +133,7 @@ void scheduler_reset(struct scheduler *s, int nr_tasks); ...@@ -133,7 +133,7 @@ void scheduler_reset(struct scheduler *s, int nr_tasks);
void scheduler_ranktasks(struct scheduler *s); void scheduler_ranktasks(struct scheduler *s);
void scheduler_reweight(struct scheduler *s, int verbose); void scheduler_reweight(struct scheduler *s, int verbose);
struct task *scheduler_addtask(struct scheduler *s, enum task_types type, struct task *scheduler_addtask(struct scheduler *s, enum task_types type,
enum task_subtypes subtype, int flags, int wait, enum task_subtypes subtype, int flags, int implicit,
struct cell *ci, struct cell *cj); struct cell *ci, struct cell *cj);
void scheduler_splittasks(struct scheduler *s); void scheduler_splittasks(struct scheduler *s);
struct task *scheduler_done(struct scheduler *s, struct task *t); struct task *scheduler_done(struct scheduler *s, struct task *t);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment