Skip to content

Commit ce5e6fb

Browse files
author
MohamedElgammal
committed
Removing debugging code
1 parent 041e0f1 commit ce5e6fb

File tree

5 files changed

+5
-23
lines changed

5 files changed

+5
-23
lines changed

vpr/src/pack/pack.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ bool try_pack(t_packer_opts* packer_opts,
4848
std::unordered_map<AtomBlockId, t_pb_graph_node*> expected_lowest_cost_pb_gnode; //The molecules associated with each atom block
4949
const t_model* cur_model;
5050
t_clustering_data clustering_data;
51-
//int num_models;
5251
std::vector<t_pack_patterns> list_of_packing_patterns;
53-
//std::unique_ptr<t_pack_molecule, decltype(&free_pack_molecules)> list_of_pack_molecules(nullptr, free_pack_molecules);
5452
VTR_LOG("Begin packing '%s'.\n", packer_opts->circuit_file_name.c_str());
5553

5654
/* determine number of models in the architecture */

vpr/src/pack/prepack.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,6 @@ static t_pack_molecule* try_create_molecule(t_pack_patterns* list_of_pack_patter
931931
AtomBlockId blk_id) {
932932
t_pack_molecule* molecule;
933933

934-
//auto& atom_ctx = g_vpr_ctx.atom();
935934
auto& atom_mutable_ctx = g_vpr_ctx.mutable_atom();
936935

937936
auto pack_pattern = &list_of_pack_patterns[pack_pattern_index];

vpr/src/pack/prepack.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,4 @@ t_pack_molecule* alloc_and_load_pack_molecules(t_pack_patterns* list_of_pack_pat
1919
std::unordered_map<AtomBlockId, t_pb_graph_node*>& expected_lowest_cost_pb_gnode,
2020
const int num_packing_patterns);
2121

22-
//void free_pack_molecules(t_pack_molecule* list_of_pack_molecules);
23-
2422
#endif

vpr/src/pack/re_cluster_util.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99
#include "cluster_util.h"
1010
/**
1111
* @file
12-
* @brief This files defines some helper functions for the re-clustering
12+
* @brief This files defines some helper functions for the re-clustering API
1313
*
14-
* API that uses to move atoms between clusters after the cluster is done.
14+
* Re-clustering API is used to move atoms between clusters after the cluster is done.
15+
* This can be very used in iteratively improve the packed solution after the initial clustering is done.
16+
* It can also be used during placement to allow fine-grained moves that can move a BLE or a single FF/LUT.
17+
*
1518
* Note: Some of the helper functions defined here might be useful in different places in VPR.
1619
*
1720
*/

vpr/src/place/place.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,14 +1064,6 @@ static void placement_inner_loop(const t_annealing_state* state,
10641064
blocks_affected, delay_model, criticalities, setup_slacks,
10651065
placer_opts, move_type_stat, place_algorithm, timing_bb_factor, manual_move_enabled);
10661066

1067-
/*
1068-
* ClusterBlockId cluster = blocks_affected.moved_blocks[0].block_num;
1069-
* std::vector<AtomBlockId> atoms = cluster_to_atoms(cluster);
1070-
* ClusterBlockId cluster2 = atom_to_cluster(atoms[0]);
1071-
* VTR_LOG("### %d, %d \n", cluster, cluster2);
1072-
* //check_cluster_atoms(blocks_affected.moved_blocks[0].block_num);
1073-
*/
1074-
10751067
if (swap_result == ACCEPTED) {
10761068
/* Move was accepted. Update statistics that are useful for the annealing schedule. */
10771069
stats->single_swap_update(*costs);
@@ -1230,14 +1222,6 @@ static float starting_t(const t_annealing_state* state, t_placer_costs* costs, t
12301222
placer_opts, move_type_stat, placer_opts.place_algorithm,
12311223
REWARD_BB_TIMING_RELATIVE_WEIGHT, manual_move_enabled);
12321224

1233-
/******************** Elgammal ************************/
1234-
/*
1235-
* auto& atom_ctx = g_vpr_ctx.atom();
1236-
* std::vector<AtomBlockId> atom_id = cluster_to_atoms(blocks_affected.moved_blocks[0].block_num);
1237-
* VTR_LOG(" # %zu,%zu, %zu\n", blocks_affected.moved_blocks[0].block_num, atom_id[0], atom_ctx.atom_molecules.find(atom_id[0])->second->num_blocks);
1238-
*/
1239-
/******************************************************/
1240-
12411225
if (swap_result == ACCEPTED) {
12421226
num_accepted++;
12431227
av += costs->cost;

0 commit comments

Comments
 (0)