Browse Source

disable HG checking on wsd->last_pop_child

Olivier Aumage 8 years ago
parent
commit
d49112cefb
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/sched_policies/component_work_stealing.c

+ 3 - 1
src/sched_policies/component_work_stealing.c

@@ -47,8 +47,10 @@ struct _starpu_work_stealing_data
 static struct starpu_task *  steal_task_round_robin(struct starpu_sched_component *component, int workerid)
 {
 	struct _starpu_work_stealing_data *wsd = component->data;
+	STARPU_HG_DISABLE_CHECKING(wsd->last_pop_child);
 	unsigned i = wsd->last_pop_child;
-	wsd->last_pop_child = (wsd->last_pop_child + 1) % component->nchildren;
+	wsd->last_pop_child = (i + 1) % component->nchildren;
+	STARPU_HG_ENABLE_CHECKING(wsd->last_pop_child);
 	/* If the worker's queue have no suitable tasks, let's try
 	 * the next ones */
 	struct starpu_task * task = NULL;