Skip to content

Commit b613790

Browse files
author
shypark98
committed
fix sort
Signed-off-by: shypark98 <[email protected]>
1 parent e0fe0a4 commit b613790

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/par/src/ArtNetSpec.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,12 @@ void PartitionMgr::Partitioning(const std::shared_ptr<TritonPart>& triton_part,
454454
// Make the iteration order stable
455455
std::vector<odb::dbNet*> cluster_nets_sorted(cluster_nets.begin(),
456456
cluster_nets.end());
457-
std::sort(cluster_nets_sorted.begin(), cluster_nets_sorted.end());
457+
// std::sort(cluster_nets_sorted.begin(), cluster_nets_sorted.end());
458+
std::sort(
459+
cluster_nets_sorted.begin(),
460+
cluster_nets_sorted.end(),
461+
[](odb::dbNet* a, odb::dbNet* b) { return a->getName() < b->getName(); });
462+
458463
for (odb::dbNet* net : cluster_nets_sorted) {
459464
int driver_id = -1;
460465
std::set<int> loads_id;

0 commit comments

Comments
 (0)