Browse Source

restore component_worker exception, now that the mask or-ing is suppressed

Olivier Aumage 8 years ago
parent
commit
789d1fc956
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/sched_policies/component_sched.c

+ 4 - 0
src/sched_policies/component_sched.c

@@ -271,6 +271,10 @@ void _starpu_sched_component_update_workers(struct starpu_sched_component * comp
 void _starpu_sched_component_update_workers_in_ctx(struct starpu_sched_component * component, unsigned sched_ctx_id)
 {
 	STARPU_ASSERT(component);
+	/* worker components are shared among sched_ctxs, thus we do not apply the sched_ctx worker mask to them.
+	 * per-ctx filtering is performed higher in the tree */
+	if(starpu_sched_component_is_worker(component))
+		return;
 	struct starpu_bitmap * workers_in_ctx = _starpu_get_worker_mask(sched_ctx_id);
 	starpu_bitmap_unset_and(component->workers_in_ctx,component->workers, workers_in_ctx);
 	int i;