Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Initalize the SMPI options before creating the processes
authorGabriel Corona <gabriel.corona@loria.fr>
Fri, 29 Aug 2014 08:52:14 +0000 (10:52 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Fri, 29 Aug 2014 08:52:14 +0000 (10:52 +0200)
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

index 4aa0489..f1710f3 100644 (file)
@@ -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();