Browse Source

do not count combined workers is the last worker awake check

Olivier Aumage 7 years ago
parent
commit
9a22b9dffd
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/core/sched_ctx.c

+ 4 - 0
src/core/sched_ctx.c

@@ -2155,6 +2155,10 @@ unsigned _starpu_sched_ctx_last_worker_awake(struct _starpu_worker *worker)
 				int workerid = workers->get_next(workers, &it);
 				if(workerid != worker->workerid)
 				{
+					if(starpu_worker_is_combined_worker(workerid))
+					{
+						continue;
+					}
 					/* The worker status is intendedly checked
 					 * without taking locks. If multiple workers
 					 * are concurrently assessing whether they are