Skip to content

Commit cbaa8f4

Browse files
committed
removed functions related to gathering noc stats, no longer needed
1 parent baf04e5 commit cbaa8f4

File tree

3 files changed

+0
-54
lines changed

3 files changed

+0
-54
lines changed

vpr/src/place/noc_place_utils.cpp

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ static vtr::vector<NocTrafficFlowId, double> traffic_flow_aggregate_bandwidth_co
1010
static std::vector<NocTrafficFlowId> affected_traffic_flows;
1111
/*********************************************************** *****************************/
1212

13-
/*********** NoC Placement Stats ***********/
14-
static NocPlaceStats noc_place_stats;
15-
/*******************************************/
16-
1713
void initial_noc_placement(void) {
1814
// need to get placement information about where the router cluster blocks are palced on the device
1915
const auto& place_ctx = g_vpr_ctx.placement();
@@ -545,46 +541,13 @@ e_create_move propose_router_swap(t_pl_blocks_to_be_moved& blocks_affected, floa
545541
return create_move;
546542
}
547543

548-
/* Below are functions related to modifying and printing the NoC placement
549-
* statistical data */
550-
void initialize_noc_placement_stats(const t_placer_opts& placer_opts) {
551-
// initially there are no router blocks moved
552-
noc_place_stats.number_of_noc_router_moves = 0;
553-
554-
// allocate the space to keep track of how many of each move type caused a router block to move
555-
noc_place_stats.number_of_noc_router_moves_per_move_type.resize(placer_opts.place_static_move_prob.size() + 1, 0);
556-
557-
return;
558-
}
559-
560544
void update_noc_placement_stats(int move_type) {
561545
noc_place_stats.number_of_noc_router_moves++;
562546
noc_place_stats.number_of_noc_router_moves_per_move_type[move_type]++;
563547

564548
return;
565549
}
566550

567-
void print_noc_placement_stats(void) {
568-
float moves;
569-
std::string move_name;
570-
571-
VTR_LOG("\n\nTotal number of NoC router block moves: %d\n", noc_place_stats.number_of_noc_router_moves);
572-
VTR_LOG("\nPercentage of different move types that cause NoC router block moves:\n");
573-
574-
for (size_t i = 0; i < noc_place_stats.number_of_noc_router_moves_per_move_type.size(); i++) {
575-
moves = noc_place_stats.number_of_noc_router_moves_per_move_type[i];
576-
if (moves != 0) {
577-
move_name = move_type_to_string(e_move_type(i));
578-
VTR_LOG(
579-
"\t%.17s move: %2.2f %%\n",
580-
move_name.c_str(), 100 * moves / noc_place_stats.number_of_noc_router_moves);
581-
}
582-
}
583-
VTR_LOG("\n");
584-
585-
return;
586-
}
587-
588551
void write_noc_placement_file(std::string file_name) {
589552
// we need the clustered netlist to get the names of all the NoC router cluster blocks
590553
auto& cluster_ctx = g_vpr_ctx.clustering();

vpr/src/place/noc_place_utils.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@ constexpr double MAX_INV_NOC_LATENCY_COST = 1.e12;
2424
// So this value represents the lowest possible latency cost.
2525
constexpr double MIN_EXPECTED_NOC_LATENCY_COST = 1.e-12;
2626

27-
/* Stores statistical data about how the NoC blocks were moved during placement
28-
*/
29-
struct NocPlaceStats {
30-
int number_of_noc_router_moves;
31-
std::vector<int> number_of_noc_router_moves_per_move_type;
32-
};
33-
3427
/* Defines how the links found in a traffic flow are updated in terms
3528
* of their bandwidth usage.
3629
*/

vpr/src/place/place.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -753,11 +753,6 @@ void try_place(const Netlist<>& net_list,
753753
move_type_stat.accepted_moves.resize((get_num_agent_types()) * (placer_opts.place_static_move_prob.size()), 0);
754754
move_type_stat.rejected_moves.resize((get_num_agent_types()) * (placer_opts.place_static_move_prob.size()), 0);
755755

756-
// if the noc option was turned on then setup the noc placement stats datastructure
757-
if (noc_opts.noc) {
758-
initialize_noc_placement_stats(placer_opts);
759-
}
760-
761756
/* Get the first range limiter */
762757
first_rlim = (float)max(device_ctx.grid.width() - 1,
763758
device_ctx.grid.height() - 1);
@@ -1621,11 +1616,6 @@ static e_move_result try_swap(const t_annealing_state* state,
16211616

16221617
costs->noc_aggregate_bandwidth_cost += noc_aggregate_bandwidth_delta_c;
16231618
costs->noc_latency_cost += noc_latency_delta_c;
1624-
1625-
// if a noc router block was moved, update the NoC related stats
1626-
if (number_of_affected_noc_traffic_flows != 0) {
1627-
update_noc_placement_stats((int)move_type);
1628-
}
16291619
}
16301620

16311621
//Highlights the new block when manual move is selected.

0 commit comments

Comments
 (0)