From: Gabriel Corona Date: Fri, 29 Aug 2014 08:52:14 +0000 (+0200) Subject: [mc] Initalize the SMPI options before creating the processes X-Git-Tag: v3_12~850^2~2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/598215cad967693167027b2bc7404110098f9e91?hp=d312823dc3f5b95d6f74bfef503637257a9c10ba [mc] Initalize the SMPI options before creating the processes This is necessary because the MC code handling the creation of processes needs to be aware of the SMPI options. This look like a huge mix of the different layers (SMPI, MC, SIMIX). --- diff --git a/src/smpi/smpi_global.c b/src/smpi/smpi_global.c index 4aa048971a..f1710f3cbd 100644 --- a/src/smpi/smpi_global.c +++ b/src/smpi/smpi_global.c @@ -617,14 +617,14 @@ int smpi_main(int (*realmain) (int argc, char *argv[]), int argc, char *argv[]) SIMIX_global_init(&argc, argv); + smpi_init_options(); + // parse the platform file: get the host list SIMIX_create_environment(argv[1]); SIMIX_comm_set_copy_data_callback(&smpi_comm_copy_buffer_callback); SIMIX_function_register_default(realmain); SIMIX_launch_application(argv[2]); - smpi_init_options(); - smpi_global_init(); smpi_check_options();