Selaa lähdekoodia

sched_ctx: fix parallel workers simulation

Force workers to update before going to sleep in parallel sect creation.
Léo Villeveygoux 8 vuotta sitten
vanhempi
commit
35422a04ab
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      src/core/sched_ctx.c

+ 3 - 0
src/core/sched_ctx.c

@@ -2394,6 +2394,9 @@ static void _starpu_sched_ctx_put_workers_to_sleep(unsigned sched_ctx_id, unsign
             {
                 STARPU_PTHREAD_MUTEX_LOCK(&sched_ctx->parallel_sect_mutex[workerid]);
                 sched_ctx->parallel_sect[workerid] = 1;
+#ifdef STARPU_SIMGRID
+                starpu_wake_worker(workerid);
+#endif
                 STARPU_PTHREAD_MUTEX_UNLOCK(&sched_ctx->parallel_sect_mutex[workerid]);
             }
         }