Explorar el Código

Do not require workers to be fresh, in case the init function constructed combined workers

Samuel Thibault hace 6 años
padre
commit
60ac4d915f
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      src/core/sched_ctx.c

+ 1 - 3
src/core/sched_ctx.c

@@ -384,9 +384,7 @@ static void _starpu_add_workers_to_new_sched_ctx(struct _starpu_sched_ctx *sched
 	{
 		int workerid = workerids[i];
 		{
-			int _workerid = workers->add(workers, workerid);
-			STARPU_ASSERT(_workerid >= 0);
-			(void)_workerid;
+			workers->add(workers, workerid);
 		}
 		struct _starpu_worker *worker = _starpu_get_worker_struct(workerid);
 		STARPU_PTHREAD_MUTEX_LOCK_SCHED(&worker->sched_mutex);