Mentions légales du service

Skip to content
Snippets Groups Projects
Commit bb99caf0 authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

Move rank/comm_size initialization to upper level for all runtimes

parent 2a7605a2
No related branches found
No related tags found
1 merge request!92Fix issue #8 and #4 - gitlab parsec
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment