Skip to content

Commit b1c296a

Browse files
Merge remote-tracking branch 'origin/master' into tmep_placer_class
2 parents b760d03 + c246f54 commit b1c296a

File tree

37 files changed

+964
-765
lines changed

37 files changed

+964
-765
lines changed

libs/libvtrutil/src/vtr_ndmatrix.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ class NdMatrixProxy {
3434
* @param dim_stride: The stride of this dimension (i.e. how many element in memory between indicies of this dimension)
3535
* @param start: Pointer to the start of the sub-matrix this proxy represents
3636
*/
37-
NdMatrixProxy<T, N>(const size_t* dim_sizes, const size_t* dim_strides, T* start)
37+
NdMatrixProxy(const size_t* dim_sizes, const size_t* dim_strides, T* start)
3838
: dim_sizes_(dim_sizes)
3939
, dim_strides_(dim_strides)
4040
, start_(start) {}
4141

42-
NdMatrixProxy<T, N>& operator=(const NdMatrixProxy<T, N>& other) = delete;
42+
NdMatrixProxy& operator=(const NdMatrixProxy& other) = delete;
4343

4444
///@brief const [] operator
4545
const NdMatrixProxy<T, N - 1> operator[](size_t index) const {
@@ -76,12 +76,12 @@ class NdMatrixProxy<T, 1> {
7676
* @param dim_stride: The stride of this dimension (i.e. how many element in memory between indicies of this dimension)
7777
* @param start: Pointer to the start of the sub-matrix this proxy represents
7878
*/
79-
NdMatrixProxy<T, 1>(const size_t* dim_sizes, const size_t* dim_stride, T* start)
79+
NdMatrixProxy(const size_t* dim_sizes, const size_t* dim_stride, T* start)
8080
: dim_sizes_(dim_sizes)
8181
, dim_strides_(dim_stride)
8282
, start_(start) {}
8383

84-
NdMatrixProxy<T, 1>& operator=(const NdMatrixProxy<T, 1>& other) = delete;
84+
NdMatrixProxy& operator=(const NdMatrixProxy& other) = delete;
8585

8686
///@brief const [] operator
8787
const T& operator[](size_t index) const {
@@ -407,3 +407,4 @@ using Matrix = NdMatrix<T, 2>;
407407

408408
} // namespace vtr
409409
#endif
410+

vpr/src/base/SetupVPR.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,6 @@ void SetupPackerOpts(const t_options& Options,
552552

553553
//TODO: document?
554554
PackerOpts->global_clocks = true; /* DEFAULT */
555-
PackerOpts->hill_climbing_flag = false; /* DEFAULT */
556555

557556
PackerOpts->allow_unrelated_clustering = Options.allow_unrelated_clustering;
558557
PackerOpts->connection_driven = Options.connection_driven_clustering;

vpr/src/base/ShowSetup.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,6 @@ static void ShowPackerOpts(const t_packer_opts& PackerOpts) {
706706
}
707707
VTR_LOG("PackerOpts.connection_driven: %s", (PackerOpts.connection_driven ? "true\n" : "false\n"));
708708
VTR_LOG("PackerOpts.global_clocks: %s", (PackerOpts.global_clocks ? "true\n" : "false\n"));
709-
VTR_LOG("PackerOpts.hill_climbing_flag: %s", (PackerOpts.hill_climbing_flag ? "true\n" : "false\n"));
710709
VTR_LOG("PackerOpts.inter_cluster_net_delay: %f\n", PackerOpts.inter_cluster_net_delay);
711710
VTR_LOG("PackerOpts.timing_driven: %s", (PackerOpts.timing_driven ? "true\n" : "false\n"));
712711
VTR_LOG("PackerOpts.target_external_pin_util: %s", vtr::join(PackerOpts.target_external_pin_util, " ").c_str());

vpr/src/base/vpr_types.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,6 @@ struct t_packer_opts {
790790
std::string sdc_file_name;
791791
std::string output_file;
792792
bool global_clocks;
793-
bool hill_climbing_flag;
794793
bool timing_driven;
795794
enum e_cluster_seed cluster_seed_type;
796795
float alpha;

vpr/src/pack/attraction_groups.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "attraction_groups.h"
2+
#include "globals.h"
23

34
AttractionInfo::AttractionInfo(bool attraction_groups_on) {
45
const auto& floorplanning_ctx = g_vpr_ctx.floorplanning();

vpr/src/pack/attraction_groups.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010

1111
#include "vtr_strong_id.h"
1212
#include "vtr_vector.h"
13-
#include "atom_netlist.h"
14-
#include "globals.h"
13+
#include "atom_netlist_fwd.h"
1514

1615
/**
1716
* @file
@@ -78,7 +77,7 @@ class AttractionInfo {
7877

7978
void add_attraction_group(const AttractionGroup& group_info);
8079

81-
int num_attraction_groups();
80+
int num_attraction_groups() const;
8281

8382
int get_att_group_pulls() const;
8483

@@ -118,7 +117,7 @@ inline void AttractionInfo::set_atom_attraction_group(const AtomBlockId atom_id,
118117
attraction_groups[group_id].group_atoms.push_back(atom_id);
119118
}
120119

121-
inline int AttractionInfo::num_attraction_groups() {
120+
inline int AttractionInfo::num_attraction_groups() const {
122121
return attraction_groups.size();
123122
}
124123

vpr/src/pack/cluster_legalizer.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,13 @@ class ClusterLegalizer {
421421
return cluster.pr;
422422
}
423423

424+
/// @brief Gets the current number of molecules in the cluster.
425+
inline size_t get_num_molecules_in_cluster(LegalizationClusterId cluster_id) const {
426+
VTR_ASSERT_SAFE(cluster_id.is_valid() && (size_t)cluster_id < legalization_clusters_.size());
427+
const LegalizationCluster& cluster = legalization_clusters_[cluster_id];
428+
return cluster.molecules.size();
429+
}
430+
424431
/// @brief Gets the ID of the cluster that contains the given atom block.
425432
inline LegalizationClusterId get_atom_cluster(AtomBlockId blk_id) const {
426433
VTR_ASSERT_SAFE(blk_id.is_valid() && (size_t)blk_id < atom_cluster_.size());

0 commit comments

Comments
 (0)