- INFO1("Usage: %s script_file", argv[0]);
- INFO1("example: %s sd_platform_script.lua", argv[0]);
+ XBT_INFO("Usage: %s script_file", argv[0]);
+ XBT_INFO("example: %s sd_platform_script.lua", argv[0]);
computation_amount2 = 1000000;
communication_amount12 = 2000000;
communication_amount21 = 3000000;
computation_amount2 = 1000000;
communication_amount12 = 2000000;
communication_amount21 = 3000000;
route = SD_route_get_list(w1, w2);
route_size = SD_route_get_size(w1, w2);
for (i = 0; i < route_size; i++) {
route = SD_route_get_list(w1, w2);
route_size = SD_route_get_size(w1, w2);
for (i = 0; i < route_size; i++) {
SD_link_get_name(route[i]),
SD_link_get_current_latency(route[i]),
SD_link_get_current_bandwidth(route[i]));
}
SD_link_get_name(route[i]),
SD_link_get_current_latency(route[i]),
SD_link_get_current_bandwidth(route[i]));
}
SD_route_get_current_latency(w1, w2),
SD_route_get_current_bandwidth(w1, w2));
SD_route_get_current_latency(w1, w2),
SD_route_get_current_bandwidth(w1, w2));
communication_amount12, name1, name2,
SD_route_get_communication_time(w1, w2, communication_amount12));
communication_amount12, name1, name2,
SD_route_get_communication_time(w1, w2, communication_amount12));
communication_amount21, name2, name1,
SD_route_get_communication_time(w2, w1, communication_amount21));
communication_amount21, name2, name1,
SD_route_get_communication_time(w2, w1, communication_amount21));
SD_task_get_execution_time(task, workstation_number,
workstation_list, computation_amount,
communication_amount));
SD_task_get_execution_time(task, workstation_number,
workstation_list, computation_amount,
communication_amount));
changed_tasks = SD_simulate(-1.0);
xbt_dynar_foreach(changed_tasks, ctr, task) {
changed_tasks = SD_simulate(-1.0);
xbt_dynar_foreach(changed_tasks, ctr, task) {
xbt_dynar_get_cpy(changed_tasks, 0, &checkD);
xbt_dynar_get_cpy(changed_tasks, 1, &checkB);
xbt_dynar_get_cpy(changed_tasks, 0, &checkD);
xbt_dynar_get_cpy(changed_tasks, 1, &checkB);
checkB == taskB, "Unexpected simulation results");
xbt_dynar_free_container(&changed_tasks);
checkB == taskB, "Unexpected simulation results");
xbt_dynar_free_container(&changed_tasks);