Skip to content

Commit 90addfb

Browse files
make format
1 parent 46a089e commit 90addfb

File tree

6 files changed

+11
-18
lines changed

6 files changed

+11
-18
lines changed

vpr/src/base/stats.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ static void get_channel_occupancy_stats(const Netlist<>& net_list, bool /***/) {
267267
}
268268

269269
void write_channel_occupancy_table(const std::string_view filename,
270-
const vtr::Matrix<int>& occupancy,
271-
const std::vector<int>& capacity_list) {
270+
const vtr::Matrix<int>& occupancy,
271+
const std::vector<int>& capacity_list) {
272272
constexpr int w_coord = 6;
273273
constexpr int w_value = 12;
274274
constexpr int w_percent = 12;

vpr/src/base/stats.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ void print_device_utilization(const float target_device_utilization);
6969
*/
7070
void write_channel_occupancy_table(const std::string_view filename,
7171
const vtr::Matrix<int>& occupancy,
72-
const std::vector<int>& capacity_list);
72+
const std::vector<int>& capacity_list);

vpr/src/place/annealer.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -682,17 +682,15 @@ void PlacementAnnealer::outer_loop_update_timing_info() {
682682
|| (annealing_state_.rlim / MoveGenerator::first_rlim) < placer_opts_.congestion_acceptance_rate_trigger) {
683683
costs_.congestion_cost = net_cost_handler_.estimate_routing_chann_util();
684684

685-
686685
if (!congestion_modeling_started_) {
687686
VTR_LOG("Congestion modeling started. %f %f\n", placer_opts_.congestion_factor, placer_opts_.timing_tradeoff);
688687
placer_opts_.congestion_factor = congestion_factor_;
689688
placer_opts_.congestion_factor /= 1.f + congestion_factor_;
690-
// placer_opts_.congestion_factor /= 1.f + placer_opts_.congestion_factor;
689+
// placer_opts_.congestion_factor /= 1.f + placer_opts_.congestion_factor;
691690
placer_opts_.timing_tradeoff /= 1.f + congestion_factor_;
692691
VTR_LOG("Congestion modeling started. %f %f\n", placer_opts_.congestion_factor, placer_opts_.timing_tradeoff);
693692
congestion_modeling_started_ = true;
694693
}
695-
696694
}
697695

698696
// Update the cost normalization factors

vpr/src/place/net_cost_handler.cpp

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,14 @@ NetCostHandler::NetCostHandler(const t_placer_opts& placer_opts,
155155
alloc_and_load_chan_w_factors_for_place_cost_();
156156

157157
chanx_util_ = vtr::Matrix<double>({{
158-
device_ctx.grid.width(), //[0 .. device_ctx.grid.width() - 1] (length of x channel)
159-
device_ctx.grid.height() //[0 .. device_ctx.grid.height() - 1] (# x channels)
158+
device_ctx.grid.width(), //[0 .. device_ctx.grid.width() - 1] (length of x channel)
159+
device_ctx.grid.height() //[0 .. device_ctx.grid.height() - 1] (# x channels)
160160
}},
161161
0);
162162

163163
chany_util_ = vtr::Matrix<double>({{
164-
device_ctx.grid.width(), //[0 .. device_ctx.grid.width() - 1] (# y channels)
165-
device_ctx.grid.height() //[0 .. device_ctx.grid.height() - 1] (length of y channel)
164+
device_ctx.grid.width(), //[0 .. device_ctx.grid.width() - 1] (# y channels)
165+
device_ctx.grid.height() //[0 .. device_ctx.grid.height() - 1] (length of y channel)
166166
}},
167167
0);
168168

@@ -342,8 +342,6 @@ std::tuple<double, double, double> NetCostHandler::comp_per_layer_bb_cost_(e_cos
342342
}
343343
}
344344

345-
346-
347345
return {cost, expected_wirelength, cong_cost};
348346
}
349347

@@ -1438,8 +1436,8 @@ double NetCostHandler::get_net_cube_cong_cost_(ClusterNetId net_id, bool use_ts)
14381436
float x_chan_cong = (x_chan_util < threshold) ? 0.0f : x_chan_util - threshold;
14391437
float y_chan_cong = (y_chan_util < threshold) ? 0.0f : y_chan_util - threshold;
14401438

1441-
// return (distance_x * x_chan_cong) + (distance_y * y_chan_cong);
1442-
return x_chan_cong + y_chan_cong;
1439+
// return (distance_x * x_chan_cong) + (distance_y * y_chan_cong);
1440+
return x_chan_cong + y_chan_cong;
14431441
}
14441442

14451443
double NetCostHandler::get_net_per_layer_bb_cost_(ClusterNetId net_id, bool use_ts) {
@@ -1772,15 +1770,13 @@ double NetCostHandler::estimate_routing_chann_util() {
17721770
std::tie(chanx_width_, chany_width_) = calculate_channel_width();
17731771
}
17741772

1775-
17761773
for (size_t x = 0; x < chanx_util_.dim_size(0); ++x) {
17771774
for (size_t y = 0; y < chanx_util_.dim_size(1); ++y) {
17781775
if (chanx_width_[0][x][y] > 0) {
17791776
chanx_util_[x][y] /= chanx_width_[0][x][y];
17801777
} else {
17811778
chanx_util_[x][y] = 1.;
17821779
}
1783-
17841780
}
17851781
}
17861782

vpr/src/place/net_cost_handler.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ class NetCostHandler {
251251
vtr::NdMatrix<int, 3> chanx_width_;
252252
vtr::NdMatrix<int, 3> chany_width_;
253253

254-
255254
/**
256255
* @brief The matrix below is used to calculate a chanz_place_cost_fac based on the average channel width in
257256
* the cross-die-layer direction over a 2D (x,y) region. We don't assume the inter-die connectivity is the same at all (x,y) locations, so we

vpr/src/place/placer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Placer::Placer(const Netlist<>& net_list,
123123
} else {
124124
VTR_ASSERT(placer_opts.place_algorithm == e_place_algorithm::BOUNDING_BOX_PLACE);
125125
// Timing cost is not used
126-
costs_.timing_cost = std::numeric_limits<double>::quiet_NaN();;
126+
costs_.timing_cost = std::numeric_limits<double>::quiet_NaN();
127127
}
128128

129129
costs_.update_norm_factors();

0 commit comments

Comments
 (0)