- try {
- proc = opt::loba_algorithms.new_instance(opt::loba_algo, argc, argv);
-
- proc_mutex->acquire();
- ++proc_counter;
- proc_mutex->release();
-
- result = proc->run();
-
- proc_mutex->acquire();
- loads.push(proc->get_real_load());
- comps.push(proc->get_comp_amount());
- data_send_amount.push(proc->get_data_send_amount());
- data_recv_amount.push(proc->get_data_recv_amount());
- data_send_count.push(proc->get_data_send_count());
- data_recv_count.push(proc->get_data_recv_count());
- ctrl_send_amount.push(proc->get_ctrl_send_amount());
- ctrl_recv_amount.push(proc->get_ctrl_recv_amount());
- ctrl_send_count.push(proc->get_ctrl_send_count());
- ctrl_recv_count.push(proc->get_ctrl_recv_count());
-
- // Synchronization barrier...
- // The goal is to circumvent a limitation in SimGrid (at least
- // in version 3.5): a process must be alive when another one
- // destroys a communication they had together.
-
- --proc_counter;
- proc_cond->broadcast();
- while (proc_counter > 0)
- proc_cond->wait(*proc_mutex);
- proc_mutex->release();
-
- delete proc;
- }
- catch (const std::invalid_argument& e) {
- THROW1(arg_error, 0, "%s", e.what());
- }
- catch (const std::exception& e) {
- THROW1(0, 0, "%s", e.what());
- }
+
+ proc = opt::loba_algorithms.new_instance(opt::loba_algo, argc, argv);
+
+ proc_mutex->acquire();
+ ++proc_counter;
+ proc_mutex->release();
+
+ result = proc->run();
+
+ proc_mutex->acquire();
+ loads.push(proc->get_real_load());
+ comps.push(proc->get_comp_amount());
+ comp_iterations.push(proc->get_comp_iter());
+ all_comp_iterations.push(proc->get_all_comp_iter());
+ iter_deviation.push(proc->get_iter_deviation());
+ data_send_amount.push(proc->get_data_send_amount());
+ data_recv_amount.push(proc->get_data_recv_amount());
+ data_send_count.push(proc->get_data_send_count());
+ data_recv_count.push(proc->get_data_recv_count());
+ ctrl_send_amount.push(proc->get_ctrl_send_amount());
+ ctrl_recv_amount.push(proc->get_ctrl_recv_amount());
+ ctrl_send_count.push(proc->get_ctrl_send_count());
+ ctrl_recv_count.push(proc->get_ctrl_recv_count());
+ idle_duration.push(proc->get_idle_duration());
+ double c = proc->get_convergence();
+ if (c != -1.0)
+ convergence.push(c);
+
+ // Synchronization barrier...
+ // The goal is to circumvent a limitation in SimGrid (at least
+ // in version 3.5): a process must be alive when another one
+ // destroys a communication they had together.
+
+ --proc_counter;
+ proc_cond->broadcast();
+ while (proc_counter > 0)
+ proc_cond->wait(*proc_mutex);
+ proc_mutex->release();
+
+ delete proc;
+