Skip to content

Commit 619d9e7

Browse files
removed unused arguments
1 parent e752132 commit 619d9e7

File tree

6 files changed

+7
-9
lines changed

6 files changed

+7
-9
lines changed

vpr/src/place/initial_noc_placement.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ static void noc_routers_anneal(const t_noc_opts& noc_opts) {
240240
}
241241

242242
if (checkpoint.get_cost() < costs.cost) {
243-
checkpoint.restore_checkpoint(noc_opts, costs);
243+
checkpoint.restore_checkpoint(costs);
244244
}
245245
}
246246

vpr/src/place/noc_place_checkpoint.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void NoCPlacementCheckpoint::save_checkpoint(double cost) {
3232
cost_ = cost;
3333
}
3434

35-
void NoCPlacementCheckpoint::restore_checkpoint(const t_noc_opts& noc_opts, t_placer_costs& costs) {
35+
void NoCPlacementCheckpoint::restore_checkpoint(t_placer_costs& costs) {
3636
const auto& noc_ctx = g_vpr_ctx.noc();
3737
const auto& device_ctx = g_vpr_ctx.device();
3838
auto& place_ctx = g_vpr_ctx.mutable_placement();
@@ -68,7 +68,7 @@ void NoCPlacementCheckpoint::restore_checkpoint(const t_noc_opts& noc_opts, t_pl
6868
}
6969

7070
// Re-initialize routes and static variables that keep track of NoC-related costs
71-
reinitialize_noc_routing(noc_opts, costs);
71+
reinitialize_noc_routing(costs);
7272
}
7373

7474
bool NoCPlacementCheckpoint::is_valid() const {

vpr/src/place/noc_place_checkpoint.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,9 @@ class NoCPlacementCheckpoint {
4343
/**
4444
* @brief Loads the save checkpoint into global placement data structues.
4545
*
46-
* @param noc_opts: Contains weighting factors for different NoC cost terms
4746
* @param costs: Used to load NoC related costs for the checkpoint
4847
*/
49-
void restore_checkpoint(const t_noc_opts& noc_opts, t_placer_costs& costs);
48+
void restore_checkpoint(t_placer_costs& costs);
5049

5150
/**
5251
* @brief Indicates whether the object is empty or it has already stored a

vpr/src/place/noc_place_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void initial_noc_routing(void) {
6666
return;
6767
}
6868

69-
void reinitialize_noc_routing(const t_noc_opts& noc_opts, t_placer_costs& costs) {
69+
void reinitialize_noc_routing(t_placer_costs& costs) {
7070
// used to access NoC links and modify them
7171
auto& noc_ctx = g_vpr_ctx.mutable_noc();
7272

vpr/src/place/noc_place_utils.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,9 @@ void initial_noc_routing(void);
7070
* traffic flow routes, and static variable in noc_place_utils.cpp are no
7171
* longer valid and need to be re-initialized.
7272
*
73-
* @param noc_opts NoC-related options used to calculated NoC costs
7473
* @param costs Used to get aggregate bandwidth and latency costs.
7574
*/
76-
void reinitialize_noc_routing(const t_noc_opts& noc_opts, t_placer_costs& costs);
75+
void reinitialize_noc_routing(t_placer_costs& costs);
7776

7877
/**
7978
* @brief Goes through all the cluster blocks that were moved

vpr/src/place/place_checkpoint.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void restore_best_placement(t_placement_checkpoint& placement_checkpoint,
6363
* and need to be re-computed from scratch.
6464
*/
6565
if (noc_opts.noc) {
66-
reinitialize_noc_routing(noc_opts, costs);
66+
reinitialize_noc_routing(costs);
6767
}
6868

6969
VTR_LOG("\nCheckpoint restored\n");

0 commit comments

Comments
 (0)