Przeglądaj źródła

Initialize only one worker set when mpi thread multiple is disabled to prevent error when we join the driver threads

Corentin Salingue 9 lat temu
rodzic
commit
bf703a3667
1 zmienionych plików z 2 dodań i 6 usunięć
  1. 2 6
      src/core/workers.c

+ 2 - 6
src/core/workers.c

@@ -891,12 +891,8 @@ static void _starpu_launch_drivers(struct _starpu_machine_config *pconfig)
                     &worker_set_zero->mutex);
         STARPU_PTHREAD_MUTEX_UNLOCK(&worker_set_zero->mutex);
 
-        int mpidevice;
-        for (mpidevice = 0; mpidevice < pconfig->topology.nmpidevices; mpidevice++)
-        {
-            mpi_worker_set[mpidevice].started = 1;
-            mpi_worker_set[mpidevice].worker_thread = mpi_worker_set[0].worker_thread;
-        }
+        worker_set_zero.started = 1;
+        worker_set_zero.worker_thread = mpi_worker_set[0].worker_thread;
 
     }