The datatype should be initialized as soon as possible. Inside we detect the local architecture and
create the local convertor. They will get used on the ompi_proc_init. This commit was SVN r6680.
Этот коммит содержится в:
родитель
dc2a3d7917
Коммит
8e0d8a0e99
@ -139,8 +139,15 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided)
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Initialize OMPI procs */
|
||||
/* initialize datatypes. This step should be done early as it will create the local convertor
|
||||
* and local arch used in the proc init.
|
||||
*/
|
||||
if (OMPI_SUCCESS != (ret = ompi_ddt_init())) {
|
||||
error = "ompi_ddt_init() failed";
|
||||
goto error;
|
||||
}
|
||||
|
||||
/* Initialize OMPI procs */
|
||||
if (OMPI_SUCCESS != (ret = ompi_proc_init())) {
|
||||
error = "mca_proc_init() failed";
|
||||
goto error;
|
||||
@ -259,12 +266,6 @@ int ompi_mpi_init(int argc, char **argv, int requested, int *provided)
|
||||
goto error;
|
||||
}
|
||||
|
||||
/* initialize datatypes */
|
||||
if (OMPI_SUCCESS != (ret = ompi_ddt_init())) {
|
||||
error = "ompi_ddt_init() failed";
|
||||
goto error;
|
||||
}
|
||||
|
||||
/* initialize ops */
|
||||
if (OMPI_SUCCESS != (ret = ompi_op_init())) {
|
||||
error = "ompi_op_init() failed";
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user