Browse Source

ignore races in work stealing heuristic variables

Samuel Thibault 9 years ago
parent
commit
570d0de6ca
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/sched_policies/work_stealing_policy.c

+ 2 - 0
src/sched_policies/work_stealing_policy.c

@@ -691,6 +691,8 @@ static void initialize_ws_policy(unsigned sched_ctx_id)
 
 	ws->last_pop_worker = 0;
 	ws->last_push_worker = 0;
+	STARPU_HG_DISABLE_CHECKING(ws->last_pop_worker);
+	STARPU_HG_DISABLE_CHECKING(ws->last_push_worker);
 	ws->select_victim = select_victim;
 
 	unsigned nw = starpu_worker_get_count();