Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
SMPI: Add a global table of processes, which one day will replace the table of hosts
[simgrid.git] / src / smpi / smpi_base.c
index 6af070a..fbc34fb 100644 (file)
@@ -78,6 +78,8 @@ void smpi_process_init()
           smpi_receiver, hdata,
           SIMIX_host_get_name(SIMIX_host_self()), 0, NULL,
           /*props */ NULL);
           smpi_receiver, hdata,
           SIMIX_host_get_name(SIMIX_host_self()), 0, NULL,
           /*props */ NULL);
+
+  smpi_global->main_processes[hdata->index] = SIMIX_process_self();
   return;
 }
 
   return;
 }