Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
amin1377 committed Aug 2, 2024
1 parent e434d14 commit 9642bb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vpr/src/route/rr_graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ void create_rr_graph(const t_graph_type graph_type,
short delayless_switch = OPEN;
if (load_rr_graph) {
const auto& rr_switches = device_ctx.rr_graph.rr_switch();
for (int switch_id = 0; switch_id < rr_switches.size(); switch_id++){
for (int switch_id = 0; switch_id < static_cast<int>(rr_switches.size()); switch_id++){
const auto& rr_switch = rr_switches[RRSwitchId(switch_id)];
if (rr_switch.name.find("delayless") != std::string::npos) {
delayless_switch = static_cast<short>(switch_id);
Expand All @@ -762,7 +762,7 @@ void create_rr_graph(const t_graph_type graph_type,
grid,
block_types,
device_ctx.rr_graph,
det_routing_arch->delayless_switch,
delayless_switch,
det_routing_arch->R_minW_nmos,
det_routing_arch->R_minW_pmos,
mutable_device_ctx.rr_graph_builder,
Expand Down Expand Up @@ -794,7 +794,7 @@ void create_rr_graph(const t_graph_type graph_type,
// When this function is called in any stage other than routing, the is_flat flag passed to this function is false, regardless of the flag passed
// through command line. So, the graph corresponding to global resources will be created and written down to file if needed. During routing, if flat-routing
// is enabled, intra-cluster resources will be added to the graph, but this new bigger graph will not be written down.
if (!det_routing_arch->write_rr_graph_filename.empty() && !is_flat) {
if (!det_routing_arch->write_rr_graph_filename.empty()) {
write_rr_graph(&mutable_device_ctx.rr_graph_builder,
&mutable_device_ctx.rr_graph,
device_ctx.physical_tile_types,
Expand Down

0 comments on commit 9642bb4

Please sign in to comment.