Commit bb99caf0 authored by Mathieu Faverge's avatar Mathieu Faverge

Move rank/comm_size initialization to upper level for all runtimes

parent 2a7605a2
......@@ -105,6 +105,10 @@ int MORSE_InitPar(int ncpus, int ncudas, int nthreads_per_worker)
# endif
#endif
RUNTIME_init( morse, ncpus, ncudas, nthreads_per_worker );
morse->my_mpi_rank = RUNTIME_comm_rank( morse );
morse->mpi_comm_size = RUNTIME_comm_size( morse );
return MORSE_SUCCESS;
}
......
......@@ -102,8 +102,6 @@ int RUNTIME_init( MORSE_context_t *morse,
MPI_Initialized( &flag );
#endif
starpu_mpi_init(NULL, NULL, !flag);
morse->my_mpi_rank = RUNTIME_comm_rank( morse );
morse->mpi_comm_size = RUNTIME_comm_size( morse );
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment