Browse Source

Set the baseworkerid in the node to get the good memory node

Corentin Salingue 8 years ago
parent
commit
26b89df518
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/core/topology.c

+ 1 - 0
src/core/topology.c

@@ -965,6 +965,7 @@ _starpu_init_mpi_config (struct _starpu_machine_config *config,
                 config->workers[worker_idx].worker_mask = STARPU_MPI_MS;
                 config->worker_mask |= STARPU_MPI_MS;
         }
+	mpi_ms_nodes[mpi_idx]->baseworkerid = topology->nworkers;
 
         topology->nworkers += topology->nmpicores[mpi_idx];
 }