Browse Source

Fix getting the tree in lws

Samuel Thibault 8 years ago
parent
commit
205b2be18c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/sched_policies/work_stealing_policy.c

+ 1 - 1
src/sched_policies/work_stealing_policy.c

@@ -739,7 +739,7 @@ static void lws_add_workers(unsigned sched_ctx_id, int *workerids,
 	 * than traversing the hwloc tree every time a task must be
 	 * stolen */
 	struct starpu_worker_collection *workers = starpu_sched_ctx_get_worker_collection(sched_ctx_id);
-	struct starpu_tree *tree = (struct starpu_tree*)workers->workerids;
+	struct starpu_tree *tree = (struct starpu_tree*)workers->collection_private;
 	int workerid;
 	unsigned i;
 	for (i = 0; i < nworkers; i++)