- computation_amounts = new double[hosts_count]();
- for (int i = 0; i < hosts_count; i++)
- computation_amounts[i] = 1e9; // 1 Gflop
- simgrid::s4u::this_actor::parallel_execute(hosts_count, hosts.data(), computation_amounts, nullptr /* no comm */);
-
+ computation_amounts.assign(hosts.size(), 1e9 /*1Gflop*/);
+ communication_amounts.clear(); /* no comm */
+ simgrid::s4u::this_actor::parallel_execute(hosts, computation_amounts, communication_amounts);
+
+ /* ------[ test 4 ]----------------- */
+ XBT_INFO("Then, build a parallel task involving only heterogeneous computations and no communication");
+ computation_amounts.resize(hosts.size());
+ for (size_t i = 0; i < hosts_count; i++)
+ computation_amounts[i] = 5 * (i + 1) * 1e8; // 500Mflop, 1Gflop, 1.5Gflop
+ communication_amounts.clear(); /* no comm */
+ simgrid::s4u::this_actor::parallel_execute(hosts, computation_amounts, communication_amounts);
+
+ /* ------[ test 5 ]----------------- */