Skip to content

Commit b7bf7b5

Browse files
conditional inclusion of sat_router
1 parent 3b8795f commit b7bf7b5

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

vpr/src/place/noc_place_utils.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
#include "noc_routing.h"
1212
#include "place_constraints.h"
1313
#include "move_transactions.h"
14+
15+
#ifdef ENABLE_NOC_SAT_ROUTING
1416
#include "sat_routing.h"
17+
#endif
1518

1619
#include <fstream>
1720

@@ -929,6 +932,7 @@ bool noc_routing_has_cycle(const vtr::vector<NocTrafficFlowId, std::vector<NocLi
929932
return has_cycles;
930933
}
931934

935+
#ifdef ENABLE_NOC_SAT_ROUTING
932936
void invoke_sat_router(t_placer_costs& costs, const t_noc_opts& noc_opts, int seed) {
933937

934938
auto traffic_flow_routes = noc_sat_route(true, noc_opts, seed);
@@ -947,6 +951,7 @@ void invoke_sat_router(t_placer_costs& costs, const t_noc_opts& noc_opts, int se
947951
VTR_LOG("SAT routing failed.\n");
948952
}
949953
}
954+
#endif
950955

951956
void print_noc_costs(std::string_view header, const t_placer_costs& costs, const t_noc_opts& noc_opts) {
952957
VTR_LOG("%s. "

vpr/src/place/noc_place_utils.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,9 @@ bool noc_routing_has_cycle(const vtr::vector<NocTrafficFlowId, std::vector<NocLi
578578
* @param noc_opts Contains NoC-related cost weighting factor used in the SAT router.
579579
* @param seed The initialization seed used in the SAT solver.
580580
*/
581+
#ifdef ENABLE_NOC_SAT_ROUTING
581582
void invoke_sat_router(t_placer_costs& costs, const t_noc_opts& noc_opts, int seed);
583+
#endif
582584

583585
/**
584586
* @brief Prints NoC related costs terms and metrics.

vpr/src/place/place.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
#include "cluster_placement.h"
7070

7171
#include "noc_place_utils.h"
72-
#include "sat_routing.h"
7372

7473
/* define the RL agent's reward function factor constant. This factor controls the weight of bb cost *
7574
* compared to the timing cost in the agent's reward function. The reward is calculated as *

0 commit comments

Comments
 (0)