@@ -443,11 +443,11 @@ std::map<t_logical_block_type_ptr, size_t> do_clustering(const t_packer_opts& pa
443
443
*
444
444
*/
445
445
446
- /* This routine returns a map that details the number of used block type instances.
447
- * The bool floorplan_regions_overfull also acts as a return value - it is set to
448
- * true when one or more floorplan regions have more blocks assigned to them than
449
- * they can fit.
450
- */
446
+ /* This routine returns a map that details the number of used block type instances.
447
+ * The bool floorplan_regions_overfull also acts as a return value - it is set to
448
+ * true when one or more floorplan regions have more blocks assigned to them than
449
+ * they can fit.
450
+ */
451
451
452
452
/* ***************************************************************
453
453
* Initialization
@@ -733,7 +733,7 @@ static void print_pack_status(int num_clb,
733
733
int device_width,
734
734
int device_height,
735
735
AttractionInfo& attraction_groups) {
736
- // Print a packing update each time another 4% of molecules have been packed.
736
+ // Print a packing update each time another 4% of molecules have been packed.
737
737
const float print_frequency = 0.04 ;
738
738
739
739
double percentage = (num_molecules_processed / (double )tot_num_molecules) * 100 ;
@@ -777,7 +777,7 @@ static void rebuild_attraction_groups(AttractionInfo& attraction_groups) {
777
777
AttractionGroup new_att_group_info;
778
778
779
779
for (AtomBlockId atom : group.group_atoms ) {
780
- // If the ClusterBlockId is anything other than invalid, the atom has been packed already
780
+ // If the ClusterBlockId is anything other than invalid, the atom has been packed already
781
781
if (atom_ctx.lookup .atom_clb (atom) == ClusterBlockId::INVALID ()) {
782
782
new_att_group_info.group_atoms .push_back (atom);
783
783
}
@@ -1552,16 +1552,15 @@ static enum e_block_pack_status try_pack_molecule(t_cluster_placement_stats* clu
1552
1552
* attraction groups on. */
1553
1553
static void record_molecule_failure (t_pack_molecule* molecule, t_pb* pb) {
1554
1554
// Only have to record the failure for the first atom in the molecule.
1555
- // The convention when checking if a molecule has failed to pack in the cluster
1556
- // is to check whether the first atoms has been recorded as having failed
1557
-
1558
- auto got = pb->pb_stats ->atom_failures .find (molecule->atom_block_ids [0 ]);
1559
- if (got == pb->pb_stats ->atom_failures .end ()) {
1560
- pb->pb_stats ->atom_failures .insert ({molecule->atom_block_ids [0 ], 1 });
1561
- } else {
1562
- got->second ++;
1563
- }
1555
+ // The convention when checking if a molecule has failed to pack in the cluster
1556
+ // is to check whether the first atoms has been recorded as having failed
1564
1557
1558
+ auto got = pb->pb_stats ->atom_failures .find (molecule->atom_block_ids [0 ]);
1559
+ if (got == pb->pb_stats ->atom_failures .end ()) {
1560
+ pb->pb_stats ->atom_failures .insert ({molecule->atom_block_ids [0 ], 1 });
1561
+ } else {
1562
+ got->second ++;
1563
+ }
1565
1564
}
1566
1565
1567
1566
/* *
@@ -2637,8 +2636,8 @@ static t_pack_molecule* get_highest_gain_molecule(t_pb* cur_pb,
2637
2636
* attraction groups were created, explore the attraction groups to see if
2638
2637
* any suitable molecules can be found.
2639
2638
*/
2640
- add_cluster_molecule_candidates_by_attraction_group (cur_pb, cluster_placement_stats_ptr, atom_molecules, attraction_groups,
2641
- feasible_block_array_size, cluster_index, primitive_candidate_block_types);
2639
+ add_cluster_molecule_candidates_by_attraction_group (cur_pb, cluster_placement_stats_ptr, atom_molecules, attraction_groups,
2640
+ feasible_block_array_size, cluster_index, primitive_candidate_block_types);
2642
2641
}
2643
2642
2644
2643
if (cur_pb->pb_stats ->num_feasible_blocks > 0 ) {
@@ -2756,7 +2755,7 @@ static void add_cluster_molecule_candidates_by_attraction_group(t_pb* cur_pb,
2756
2755
if (cur_pb->pb_stats ->pulled_from_atom_groups < num_pulls) {
2757
2756
cur_pb->pb_stats ->pulled_from_atom_groups ++;
2758
2757
} else {
2759
- return ;
2758
+ return ;
2760
2759
}
2761
2760
2762
2761
AttractGroupId grp_id = cur_pb->pb_stats ->attraction_grp_id ;
0 commit comments