if (action->communication_amount[i * workstation_nb + j] > 0) {
for (k = 0; k < route_size; k++) {
lat += route[k]->lat_current;
- xbt_dict_set(parallel_task_network_link_set, route[k]->name,
- route[k], NULL);
}
lat_current=MAX(lat_current,lat/action->communication_amount[i * workstation_nb + j]);
}
XBT_IN1("(%p)", act);
if (act->suspended != 2) {
- lmm_update_variable_weight(ptask_maxmin_system,action->variable, 1.0);
+ lmm_update_variable_weight(ptask_maxmin_system,act->variable, 1.0);
act->suspended = 0;
}
XBT_OUT;
xbt_swag_t running_actions =
surf_workstation_model->common_public->states.running_action_set;
- double min = generic_maxmin_share_resources2(running_actions,
- xbt_swag_offset(s_action,
- variable),
- ptask_maxmin_system,
- bottleneck_solve);
+ double min = generic_maxmin_share_resources(running_actions,
+ xbt_swag_offset(s_action,
+ variable),
+ ptask_maxmin_system,
+ bottleneck_solve);
xbt_swag_foreach(action, running_actions) {
if (action->latency > 0) {
xbt_dict_new_ext(workstation_nb * workstation_nb * 10);
}
+ xbt_dict_reset(parallel_task_network_link_set);
+
/* Compute the number of affected resources... */
for (i = 0; i < workstation_nb; i++) {
for (j = 0; j < workstation_nb; j++) {
communication_amount[0] = 0.0;
computation_amount[0] = size;
- return execute_parallel_task(1, workstation_list, communication_amount,
+ return execute_parallel_task(1, workstation_list, computation_amount,
communication_amount, 1, -1);
}
"network model type already defined");
model_init_internal();
parse_file(filename);
- WARN0("This model does not take latency into account.");
update_model_description(surf_workstation_model_description,
surf_workstation_model_description_size,