- /* There is no need to free that! */
-/* free(communication_amount); */
-/* free(computation_amount); */
+
+ XBT_INFO("Finally, trick the ptask to do a 'remote execution', on host %s", MSG_host_get_name(slaves[1]));
+ computation_amounts = xbt_new0(double, 1);
+ computation_amounts[0] = 1e9; // 1 Gflop
+ msg_host_t *remote = xbt_new(msg_host_t,1);
+ remote[0] = slaves[1];
+ ptask = MSG_parallel_task_create("remote exec", 1, remote, computation_amounts, NULL/* no comm */, NULL /* no data */);
+ MSG_parallel_task_execute(ptask);
+ MSG_task_destroy(ptask);
+ free(remote);