+ MSG_task_destroy(ptask);
+ /* The arrays communication_amounts and computation_amounts are not to be freed manually */
+
+ XBT_INFO("Then, build a parallel task involving only computations and no communication (1 Gflop per node)");
+ computation_amounts = xbt_new0(double, slaves_count);
+ for (i = 0; i < slaves_count; i++)
+ computation_amounts[i] = 1e9; // 1 Gflop
+ ptask = MSG_parallel_task_create("parallel exec", slaves_count, slaves, computation_amounts, NULL/* no comm */, NULL /* no data */);
+ MSG_parallel_task_execute(ptask);
+ MSG_task_destroy(ptask);