Skip to content

Commit 8d40d73

Browse files
make format
1 parent de05313 commit 8d40d73

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

vpr/src/base/stats.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,12 @@ std::pair<vtr::NdMatrix<int, 3>, vtr::NdMatrix<int, 3>> calculate_channel_width(
136136

137137
auto chanx_width = vtr::NdMatrix<int, 3>({{(size_t)device_ctx.grid.get_num_layers(),
138138
device_ctx.grid.width(),
139-
device_ctx.grid.height()
140-
}},
139+
device_ctx.grid.height()}},
141140
0);
142141

143142
auto chany_width = vtr::NdMatrix<int, 3>({{(size_t)device_ctx.grid.get_num_layers(),
144143
device_ctx.grid.width(),
145-
device_ctx.grid.height()
146-
}},
144+
device_ctx.grid.height()}},
147145
0);
148146

149147
for (RRNodeId node_id : rr_graph.nodes()) {

vpr/src/place/net_cost_handler.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,7 +1756,7 @@ std::pair<t_bb, t_bb> NetCostHandler::union_2d_bb_incr(ClusterNetId net_id) cons
17561756
return std::make_pair(merged_num_edge, merged_bb);
17571757
}
17581758

1759-
std::pair<vtr::NdMatrix<double, 3>, vtr::NdMatrix<double, 3>> NetCostHandler::estimate_routing_chann_util() const {
1759+
std::pair<vtr::NdMatrix<double, 3>, vtr::NdMatrix<double, 3>> NetCostHandler::estimate_routing_chann_util() const {
17601760
const auto& cluster_ctx = g_vpr_ctx.clustering();
17611761
const auto& device_ctx = g_vpr_ctx.device();
17621762

@@ -1826,11 +1826,10 @@ std::pair<vtr::NdMatrix<double, 3>, vtr::NdMatrix<double, 3>> NetCostHandler::e
18261826
}
18271827
}
18281828
}
1829-
18301829
}
18311830
}
18321831

1833-
const auto[chanx_width, chany_width] = calculate_channel_width();
1832+
const auto [chanx_width, chany_width] = calculate_channel_width();
18341833

18351834
VTR_ASSERT(chanx_util.size() == chany_util.size());
18361835
VTR_ASSERT(chanx_util.ndims() == chany_util.ndims());
@@ -1855,11 +1854,9 @@ std::pair<vtr::NdMatrix<double, 3>, vtr::NdMatrix<double, 3>> NetCostHandler::e
18551854
VTR_ASSERT_SAFE(chany_width[layer][x][y] == 0);
18561855
chany_util[layer][x][y] = 1.;
18571856
}
1858-
18591857
}
18601858
}
18611859
}
18621860

1863-
18641861
return {chanx_util, chany_util};
18651862
}

0 commit comments

Comments
 (0)