Skip to content

Commit

Permalink
Fixing bug that wrongly disabled routing predcitor
Browse files Browse the repository at this point in the history
Routing iteration predictor was incorrectly disabled for all but the smallest of circuits.
  • Loading branch information
Oleg Petelin committed May 2, 2016
1 parent 475308c commit a3a7317
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vpr/SRC/route/route_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ bool feasible_routing(void) {
int predict_success_route_iter(const std::vector<double>& historical_overuse_ratio, const t_router_opts& router_opts) {

// invalid condition for prediction
if (router_opts.routing_failure_predictor == OFF || num_nets > MIN_NETS_TO_ACTIVATE_PREDICTOR) return 0;
if (router_opts.routing_failure_predictor == OFF || num_nets < MIN_NETS_TO_ACTIVATE_PREDICTOR) return 0;

// use the last 5 iterations in prediction
size_t itry {historical_overuse_ratio.size() - 1};
Expand Down

0 comments on commit a3a7317

Please sign in to comment.