Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Initalize the SMPI options before creating the processes
[simgrid.git] / 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();