SD_create_environment(argv[1]);
- const sg_host_t *hosts = sg_host_list();
+ sg_host_t *hosts = sg_host_list();
/* creation of some typed tasks and their dependencies */
/* chain of five tasks, three compute tasks with two data transfers in between */
XBT_INFO("Task '%s' start time: %f, finish time: %f", SD_task_get_name(task), SD_task_get_start_time(task),
SD_task_get_finish_time(task));
}
+ xbt_dynar_free(&changed_tasks);
/* let throttle the communication for taskD if its parent is SD_DONE */
/* the bandwidth is 1.25e8, the data size is 1e7, and we want to throttle the bandwidth by a factor 2.
XBT_DEBUG("Tasks destroyed. Exiting SimDag...");
SD_exit();
+ xbt_free(hosts);
return 0;
}