Skip to content

Commit c36bfb9

Browse files
make format
1 parent 3ca5542 commit c36bfb9

8 files changed

+10
-41
lines changed

vpr/src/base/SetupVPR.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,6 @@ static void SetupRouterOpts(const t_options& Options, t_router_opts* RouterOpts)
489489
RouterOpts->initial_acc_cost_chan_congestion_threshold = Options.router_initial_acc_cost_chan_congestion_threshold;
490490
RouterOpts->initial_acc_cost_chan_congestion_weight = Options.router_initial_acc_cost_chan_congestion_weight;
491491

492-
493492
RouterOpts->max_convergence_count = Options.router_max_convergence_count;
494493
RouterOpts->reconvergence_cpd_threshold = Options.router_reconvergence_cpd_threshold;
495494
RouterOpts->initial_timing = Options.router_initial_timing;

vpr/src/place/net_cost_handler.cpp

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,16 +1762,12 @@ std::pair<vtr::Matrix<double>, vtr::Matrix<double>> NetCostHandler::estimate_rou
17621762
const auto& cluster_ctx = g_vpr_ctx.clustering();
17631763
const auto& device_ctx = g_vpr_ctx.device();
17641764

1765-
auto chanx_util = vtr::Matrix<double>({{
1766-
device_ctx.grid.width(),
1767-
device_ctx.grid.height()
1768-
}},
1765+
auto chanx_util = vtr::Matrix<double>({{device_ctx.grid.width(),
1766+
device_ctx.grid.height()}},
17691767
0);
17701768

1771-
auto chany_util = vtr::Matrix<double>({{
1772-
device_ctx.grid.width(),
1773-
device_ctx.grid.height()
1774-
}},
1769+
auto chany_util = vtr::Matrix<double>({{device_ctx.grid.width(),
1770+
device_ctx.grid.height()}},
17751771
0);
17761772

17771773
for (ClusterNetId net_id : cluster_ctx.clb_nlist.nets()) {
@@ -1813,4 +1809,4 @@ std::pair<vtr::Matrix<double>, vtr::Matrix<double>> NetCostHandler::estimate_rou
18131809
}
18141810

18151811
return {chanx_util, chany_util};
1816-
}
1812+
}

vpr/src/route/connection_router.tpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ float ConnectionRouter<Heap>::compute_node_cost_using_rcv(const t_conn_cost_para
231231
const t_conn_delay_budget* delay_budget = cost_params.delay_budget;
232232
// TODO: This function is not tested for is_flat == true
233233
VTR_ASSERT(is_flat_ != true);
234-
const auto[expected_delay, expected_cong] = router_lookahead_.get_expected_delay_and_cong(to_node, target_node, cost_params, R_upstream);
234+
const auto [expected_delay, expected_cong] = router_lookahead_.get_expected_delay_and_cong(to_node, target_node, cost_params, R_upstream);
235235

236236
float expected_total_cong = expected_cong + backwards_cong;
237237
float expected_total_delay = expected_delay + backwards_delay;

vpr/src/route/route_common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ static float comp_initial_acc_cost(RRNodeId node_id, const t_router_opts& route_
437437
max_util = std::max(max_util, route_ctx.chanx_util[x][y]);
438438
}
439439

440-
} else {
440+
} else {
441441
VTR_ASSERT_SAFE(rr_type == e_rr_type::CHANY);
442442
int x = rr_graph.node_xlow(node_id);
443443
for (int y = rr_graph.node_ylow(node_id); y <= rr_graph.node_yhigh(node_id); y++) {

vpr/src/route/router_delay_profiling.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ bool RouterDelayProfiler::calculate_delay(RRNodeId source_node,
9393
-1,
9494
false,
9595
std::unordered_map<RRNodeId, int>());
96-
96+
9797
std::tie(found_path, std::ignore, cheapest) = router_.timing_driven_route_connection_from_route_tree(
9898
tree.root(),
9999
sink_node,

vpr/src/route/router_lookahead_extended_map.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ void ExtendedMapLookahead::compute(const std::vector<t_segment_inf>& segment_inf
428428
vtr::ScopedStartFinishTimer timer("Computing connection box lookahead map");
429429

430430
// Initialize rr_node_route_inf if not already
431-
// alloc_and_load_rr_node_route_structs();
431+
// alloc_and_load_rr_node_route_structs();
432432

433433
size_t num_segments = segment_inf.size();
434434
std::vector<SampleRegion> sample_regions = find_sample_regions(num_segments);

vpr/src/route/router_lookahead_map.cpp

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -391,32 +391,7 @@ std::pair<float, float> MapLookahead::get_expected_delay_and_cong(RRNodeId from_
391391
} else { /* Change this if you want to investigate route-throughs */
392392
return std::make_pair(0., 0.);
393393
}
394-
395-
// if (!acc_chanx_util_.empty()) {
396-
//
397-
// auto [from_x, from_y] = util::get_adjusted_rr_position(from_node);
398-
// auto [to_x, to_y] = util::get_adjusted_rr_position(to_node);
399-
//
400-
// const auto [min_x, max_x] = std::minmax(from_x, to_x);
401-
// const auto [min_y, max_y] = std::minmax(from_y, to_y);
402-
//
403-
// int distance_x = max_x - min_x + 1;
404-
// int distance_y = max_y - min_y + 1;
405-
// int total_channel_segments = distance_x * distance_y;
406-
//
407-
// float avg_x_chan_util = acc_chanx_util_.get_sum(min_x, min_y, max_x, max_y) / (float)total_channel_segments;
408-
// float avg_y_chan_util = acc_chany_util_.get_sum(min_x, min_y, max_x, max_y) / (float)total_channel_segments;
409-
//
410-
// float x_cong = std::max(avg_x_chan_util - chan_util_threshold_, 0.f);
411-
// float y_cong = std::max(avg_y_chan_util - chan_util_threshold_, 0.f);
412-
//
413-
// float x_factor = (float)distance_x / (float)(distance_x + distance_y);
414-
// float y_factor = 1.f - x_factor;
415-
// float cong = (x_factor * x_cong) + (y_factor * y_cong);
416-
//
417-
// expected_cong_cost *= (1.f + cong) * congestion_weight_;
418-
// }
419-
394+
420395
return std::make_pair(expected_delay_cost, expected_cong_cost);
421396
}
422397

vpr/src/route/router_lookahead_map_utils.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,5 +368,4 @@ void dump_readable_router_lookahead_map(const std::string& file_name, const std:
368368
*/
369369
std::pair<int, int> get_adjusted_rr_position(RRNodeId rr);
370370

371-
372371
} // namespace util

0 commit comments

Comments
 (0)