From 598215cad967693167027b2bc7404110098f9e91 Mon Sep 17 00:00:00 2001 From: Gabriel Corona Date: Fri, 29 Aug 2014 10:52:14 +0200 Subject: [PATCH] [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). --- src/smpi/smpi_global.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.20.1