/* connect all traces relative to network */
xbt_dict_foreach(trace_connect_list_link_avail, cursor, trace_name, elm) {
tmgr_trace_t trace = (tmgr_trace_t) xbt_dict_get_or_null(traces_set_list, trace_name);
/* connect all traces relative to network */
xbt_dict_foreach(trace_connect_list_link_avail, cursor, trace_name, elm) {
tmgr_trace_t trace = (tmgr_trace_t) xbt_dict_get_or_null(traces_set_list, trace_name);
xbt_lib_get_or_null(link_lib, elm, SURF_LINK_LEVEL)));
xbt_assert(link, "Cannot connect trace %s to link %s: link undefined",
xbt_lib_get_or_null(link_lib, elm, SURF_LINK_LEVEL)));
xbt_assert(link, "Cannot connect trace %s to link %s: link undefined",
- link->p_stateEvent = tmgr_history_add_trace(history, trace, 0.0, 0, link);
+ link->p_stateEvent = tmgr_history_add_trace(history, trace, 0.0, 0, static_cast<ResourcePtr>(link));
}
xbt_dict_foreach(trace_connect_list_bandwidth, cursor, trace_name, elm) {
tmgr_trace_t trace = (tmgr_trace_t) xbt_dict_get_or_null(traces_set_list, trace_name);
}
xbt_dict_foreach(trace_connect_list_bandwidth, cursor, trace_name, elm) {
tmgr_trace_t trace = (tmgr_trace_t) xbt_dict_get_or_null(traces_set_list, trace_name);
xbt_lib_get_or_null(link_lib, elm, SURF_LINK_LEVEL)));
xbt_assert(link, "Cannot connect trace %s to link %s: link undefined",
xbt_lib_get_or_null(link_lib, elm, SURF_LINK_LEVEL)));
xbt_assert(link, "Cannot connect trace %s to link %s: link undefined",
- link->p_power.event = tmgr_history_add_trace(history, trace, 0.0, 0, link);
+ link->p_power.event = tmgr_history_add_trace(history, trace, 0.0, 0, static_cast<ResourcePtr>(link));
}
xbt_dict_foreach(trace_connect_list_latency, cursor, trace_name, elm) {
tmgr_trace_t trace = (tmgr_trace_t) xbt_dict_get_or_null(traces_set_list, trace_name);
}
xbt_dict_foreach(trace_connect_list_latency, cursor, trace_name, elm) {
tmgr_trace_t trace = (tmgr_trace_t) xbt_dict_get_or_null(traces_set_list, trace_name);
xbt_lib_get_or_null(link_lib, elm, SURF_LINK_LEVEL)));
xbt_assert(link, "Cannot connect trace %s to link %s: link undefined",
xbt_lib_get_or_null(link_lib, elm, SURF_LINK_LEVEL)));
xbt_assert(link, "Cannot connect trace %s to link %s: link undefined",
- link->p_latEvent = tmgr_history_add_trace(history, trace, 0.0, 0, link);
+ link->p_latEvent = tmgr_history_add_trace(history, trace, 0.0, 0, static_cast<ResourcePtr>(link));
498000000, NULL, 0.000015, NULL,
SURF_RESOURCE_ON, NULL,
498000000, NULL, 0.000015, NULL,
SURF_RESOURCE_ON, NULL,
if (p_updateMechanism == UM_LAZY) {
p_actionHeap = xbt_heap_new(8, NULL);
if (p_updateMechanism == UM_LAZY) {
p_actionHeap = xbt_heap_new(8, NULL);
state_initial, state_trace, bw_initial, bw_trace, lat_initial, lat_trace, policy);
state_initial, state_trace, bw_initial, bw_trace, lat_initial, lat_trace, policy);
- xbt_lib_set(link_lib, name, SURF_LINK_LEVEL, static_cast<NetworkCm02LinkPtr>(nw_link));
+ xbt_lib_set(link_lib, name, SURF_LINK_LEVEL, static_cast<ResourcePtr>(nw_link));
TRACE_surf_link_set_utilization(link->m_name,
action->p_category,
(lmm_variable_getvalue(action->p_variable)*
TRACE_surf_link_set_utilization(link->m_name,
action->p_category,
(lmm_variable_getvalue(action->p_variable)*
src->p_name, dst->p_name);
xbt_dynar_foreach(route, i, _link) {
src->p_name, dst->p_name);
xbt_dynar_foreach(route, i, _link) {
if (sg_network_crosstraffic == 1) {
routing_platf->getRouteAndLatency(dst, src, &back_route, NULL);
xbt_dynar_foreach(back_route, i, _link) {
if (sg_network_crosstraffic == 1) {
routing_platf->getRouteAndLatency(dst, src, &back_route, NULL);
xbt_dynar_foreach(back_route, i, _link) {
bandwidth_bound = -1.0;
if (sg_weight_S_parameter > 0) {
xbt_dynar_foreach(route, i, _link) {
bandwidth_bound = -1.0;
if (sg_weight_S_parameter > 0) {
xbt_dynar_foreach(route, i, _link) {
action->m_weight +=
sg_weight_S_parameter /
(link->p_power.peak * link->p_power.scale);
}
}
xbt_dynar_foreach(route, i, _link) {
action->m_weight +=
sg_weight_S_parameter /
(link->p_power.peak * link->p_power.scale);
}
}
xbt_dynar_foreach(route, i, _link) {
double bb = bandwidthFactor(size) * (link->p_power.peak * link->p_power.scale);
bandwidth_bound =
(bandwidth_bound < 0.0) ? bb : min(bandwidth_bound, bb);
double bb = bandwidthFactor(size) * (link->p_power.peak * link->p_power.scale);
bandwidth_bound =
(bandwidth_bound < 0.0) ? bb : min(bandwidth_bound, bb);
"Using a model with a gap (e.g., SMPI) with a platform without links (e.g. vivaldi)!!!");
//link = *(NetworkCm02LinkLmmPtr *) xbt_dynar_get_ptr(route, 0);
"Using a model with a gap (e.g., SMPI) with a platform without links (e.g. vivaldi)!!!");
//link = *(NetworkCm02LinkLmmPtr *) xbt_dynar_get_ptr(route, 0);
gapAppend(size, link, action);
XBT_DEBUG("Comm %p: %s -> %s gap=%f (lat=%f)",
action, src->p_name, dst->p_name, action->m_senderGap,
gapAppend(size, link, action);
XBT_DEBUG("Comm %p: %s -> %s gap=%f (lat=%f)",
action, src->p_name, dst->p_name, action->m_senderGap,
lmm_expand(p_maxminSystem, link->p_constraint, action->p_variable, 1.0);
}
if (sg_network_crosstraffic == 1) {
XBT_DEBUG("Fullduplex active adding backward flow using 5%%");
xbt_dynar_foreach(back_route, i, _link) {
lmm_expand(p_maxminSystem, link->p_constraint, action->p_variable, 1.0);
}
if (sg_network_crosstraffic == 1) {
XBT_DEBUG("Fullduplex active adding backward flow using 5%%");
xbt_dynar_foreach(back_route, i, _link) {
lmm_expand(p_maxminSystem, link->p_constraint, action->p_variable, .05);
}
}
lmm_expand(p_maxminSystem, link->p_constraint, action->p_variable, .05);
}
}
- p_latEvent = tmgr_history_add_trace(history, lat_trace, 0.0, 0, this);
+ p_latEvent = tmgr_history_add_trace(history, lat_trace, 0.0, 0, static_cast<ResourcePtr>(this));
void NetworkCm02LinkLmm::updateState(tmgr_trace_event_t event_type,
double value, double date)
{
void NetworkCm02LinkLmm::updateState(tmgr_trace_event_t event_type,
double value, double date)
{
- /* printf("[" "%lg" "] Asking to update network card \"%s\" with value " */
- /* "%lg" " for event %p\n", surf_get_clock(), nw_link->name, */
+ /* printf("[" "%g" "] Asking to update network card \"%s\" with value " */
+ /* "%g" " for event %p\n", surf_get_clock(), nw_link->name, */
/* value, event_type); */
if (event_type == p_power.event) {
/* value, event_type); */
if (event_type == p_power.event) {