Commit 6971dbe2 authored by Mathieu Faverge's avatar Mathieu Faverge

Add mpi protection

parent 54f8c920
......@@ -104,10 +104,13 @@ int MORSE_InitPar(int ncpus, int ncudas, int nthreads_per_worker)
}
# endif
#endif
RUNTIME_init( morse, ncpus, ncudas, nthreads_per_worker );
#if defined(CHAMELEON_USE_MPI)
morse->my_mpi_rank = RUNTIME_comm_rank( morse );
morse->mpi_comm_size = RUNTIME_comm_size( morse );
#endif
return MORSE_SUCCESS;
}
......
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