CkPttn 1.2.4
Loading...
Searching...
No Matches
MidLvlKWayPartMgr.hpp
Go to the documentation of this file.
1
6#pragma once
7
8#include <cstdint>
9#include <netlistx/netlist.hpp>
10#include <span>
11
21 public:
24
31 MidLvlKWayPartMgr(double bal_tol, std::uint8_t num_parts);
32
39 void optimize(std::span<std::uint8_t> part, const SimpleNetlist& hyprgraph);
40
41 private:
43 double bal_tol_;
45 std::uint8_t num_parts_;
47 static constexpr int max_passes = 5;
49 static constexpr size_t max_pair_modules = 15;
50};
Mid-Level K-Way Partition Manager.
Definition MidLvlKWayPartMgr.hpp:20
MidLvlKWayPartMgr(double bal_tol, std::uint8_t num_parts)
Constructs a new MidLvlKWayPartMgr object.
int total_cost
Total cost of the current partitioning solution.
Definition MidLvlKWayPartMgr.hpp:23
void optimize(std::span< std::uint8_t > part, const SimpleNetlist &hyprgraph)
Optimizes the partition using exhaustive mid-level k-way search.
Netlist data structure.
Definition netlist.hpp:31