瀏覽代碼

ignore races in work stealing heuristic variables

Samuel Thibault 9 年之前
父節點
當前提交
570d0de6ca
共有 1 個文件被更改,包括 2 次插入0 次删除
  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_pop_worker = 0;
 	ws->last_push_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;
 	ws->select_victim = select_victim;
 
 
 	unsigned nw = starpu_worker_get_count();
 	unsigned nw = starpu_worker_get_count();