mpi init changes for coll
This commit was SVN r1122.
Этот коммит содержится в:
родитель
ec7b437428
Коммит
21408ee4d3
@ -98,11 +98,16 @@ int lam_mpi_init(int argc, char **argv, int requested, int *provided)
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* Query the coll */
|
||||
|
||||
if (LAM_SUCCESS != (ret = mca_coll_base_query()))
|
||||
return ret;
|
||||
|
||||
/* initialize error handlers */
|
||||
if (LAM_SUCCESS != (ret = lam_errhandler_init())) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
/* initialize groups */
|
||||
if (LAM_SUCCESS != (ret = lam_group_init())) {
|
||||
return ret;
|
||||
@ -155,6 +160,20 @@ int lam_mpi_init(int argc, char **argv, int requested, int *provided)
|
||||
*provided = lam_mpi_thread_provided;
|
||||
lam_mpi_thread_multiple = (lam_mpi_thread_provided == MPI_THREAD_MULTIPLE);
|
||||
|
||||
/* Init coll for the comms */
|
||||
|
||||
if (LAM_ERROR == mca_coll_base_init_comm(MPI_COMM_SELF))
|
||||
return LAM_ERROR;
|
||||
|
||||
if (LAM_ERROR == mca_coll_base_init_comm(MPI_COMM_WORLD))
|
||||
return LAM_ERROR;
|
||||
|
||||
/* Wait for everyone to initialize */
|
||||
/* Change the Barrier call to the backend call */
|
||||
|
||||
if (MPI_SUCCESS != (ret = MPI_Barrier(MPI_COMM_WORLD)))
|
||||
return ret;
|
||||
|
||||
/* All done */
|
||||
|
||||
lam_mpi_initialized = true;
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user