Skip to content

Commit e1400a9

Browse files
committed
update defaults to match config from paper & ensure it compiles
1 parent 8c8a9bf commit e1400a9

5 files changed

Lines changed: 14 additions & 14 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ option(KAHYPAR_STATIC_LINK_DEPENDENCIES "In static build, also link dependencies
8888
option(KAHYPAR_STATIC_LINK_TBB "In static build, also link TBB statically. Note that this is not officially supported!" OFF)
8989
option(KAHYPAR_INSTALL_CLI "Provide a target to install an executable binary `mtkahypar`." OFF)
9090
option(KAHYPAR_BUILD_DEBIAN_PACKAGE "Provide a target to build a debian package." OFF)
91-
option(KAHYPAR_MINIMAL_COMPILATION "Only compile minimal set of files for a working multilevel partitioner." OFF)
91+
option(KAHYPAR_MINIMAL_COMPILATION "Only compile minimal set of files for a working multilevel partitioner." ON)
9292

9393
# dependencies
9494
option(KAHYPAR_DOWNLOAD_BOOST "Download boost automatically and compile required libraries." OFF)

CMakePresets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
"KAHYPAR_ENABLE_EXTENDED_INSTRUCTIONS": "ON",
3434
"KAHYPAR_ENABLE_ARCH_COMPILE_OPTIMIZATIONS": "ON",
3535
"KAHYPAR_ENABLE_GRAPH_PARTITIONING_FEATURES": "ON",
36-
"KAHYPAR_ENABLE_HIGHEST_QUALITY_FEATURES": "ON",
36+
"KAHYPAR_ENABLE_HIGHEST_QUALITY_FEATURES": "OFF",
3737
"KAHYPAR_ENABLE_SOED_METRIC": "ON",
3838
"KAHYPAR_ENABLE_LARGE_K_PARTITIONING_FEATURES": "ON",
39-
"KAHYPAR_ENABLE_STEINER_TREE_METRIC": "ON",
39+
"KAHYPAR_ENABLE_STEINER_TREE_METRIC": "OFF",
4040
"KAHYPAR_ENABLE_EXPERIMENTAL_FEATURES": "OFF",
4141
"KAHYPAR_ENABLE_TESTING": "OFF",
4242
"KAHYPAR_USE_ADDRESS_SANITIZER": "OFF",

mt-kahypar/io/command_line_options.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ namespace mt_kahypar {
621621
((initial_partitioning ? "i-r-rebalancing-rounds": "r-rebalancing-rounds"),
622622
po::value<size_t>((!initial_partitioning ? &context.refinement.rebalancing.max_rounds :
623623
&context.initial_partitioning.refinement.rebalancing.max_rounds))->value_name(
624-
"<int>")->default_value(0),
624+
"<int>")->default_value(10),
625625
"Multiconstraint: maximum number of rebalancing rounds.")
626626
((initial_partitioning ? "i-r-rebalancing-any-progress": "r-rebalancing-any-progress"),
627627
po::value<bool>((!initial_partitioning ? &context.refinement.rebalancing.allow_any_progress :
@@ -671,7 +671,7 @@ namespace mt_kahypar {
671671
((initial_partitioning ? "i-r-reduced-target-weight-block": "r-reduced-target-weight-block"),
672672
po::value<double>((!initial_partitioning ? &context.refinement.rebalancing.reduced_weight_from_block :
673673
&context.initial_partitioning.refinement.rebalancing.reduced_weight_from_block))->value_name(
674-
"<double>")->default_value(0.0),
674+
"<double>")->default_value(0.0025),
675675
"Multiconstraint: factor of block weight for target reduction of L1 metric.")
676676
((initial_partitioning ? "i-r-rebalancing-use-deadlock-fallback": "r-rebalancing-use-deadlock-fallback"),
677677
po::value<bool>((!initial_partitioning ? &context.refinement.rebalancing.use_deadlock_fallback :
@@ -686,7 +686,7 @@ namespace mt_kahypar {
686686
((initial_partitioning ? "i-r-rebalancing-use-binpacking-fallback": "r-rebalancing-use-binpacking-fallback"),
687687
po::value<bool>((!initial_partitioning ? &context.refinement.rebalancing.use_binpacking_fallback :
688688
&context.initial_partitioning.refinement.rebalancing.use_binpacking_fallback))->value_name(
689-
"<bool>")->default_value(true),
689+
"<bool>")->default_value(false),
690690
"Multiconstraint: whether to use a binpacking fallback if rebalancing does not succeed.")
691691
((initial_partitioning ? "i-r-rebalancing-binpacking-fallback-only-toplevel": "r-rebalancing-binpacking-fallback-only-toplevel"),
692692
po::value<bool>((!initial_partitioning ? &context.refinement.rebalancing.binpacking_fallback_only_toplevel :
@@ -696,7 +696,7 @@ namespace mt_kahypar {
696696
((initial_partitioning ? "i-r-rebalancing-fallback-use-locking": "r-rebalancing-fallback-use-locking"),
697697
po::value<bool>((!initial_partitioning ? &context.refinement.rebalancing.fallback_use_locking :
698698
&context.initial_partitioning.refinement.rebalancing.fallback_use_locking))->value_name(
699-
"<bool>")->default_value(true),
699+
"<bool>")->default_value(false),
700700
"Multiconstraint: whether to use locking for the 'deadlock breaking' fallback.")
701701
((initial_partitioning ? "i-r-rebalancing-binpacking-use-locking": "r-rebalancing-binpacking-use-locking"),
702702
po::value<bool>((!initial_partitioning ? &context.refinement.rebalancing.binpacking_use_locking :
@@ -771,7 +771,7 @@ namespace mt_kahypar {
771771
((initial_partitioning ? "i-r-rebalancing-fallback-rounds": "r-rebalancing-fallback-rounds"),
772772
po::value<size_t>((!initial_partitioning ? &context.refinement.rebalancing.fallback_rounds :
773773
&context.initial_partitioning.refinement.rebalancing.fallback_rounds))->value_name(
774-
"<size_t>")->default_value(3),
774+
"<size_t>")->default_value(1),
775775
"Multiconstraint: maximum number of attempted 'deadlock' fallback rounds")
776776
((initial_partitioning ? "i-r-rebalancing-binpacking-tasks": "r-rebalancing-binpacking-tasks"),
777777
po::value<size_t>((!initial_partitioning ? &context.refinement.rebalancing.bin_packing_tasks :

mt-kahypar/io/presets.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ std::vector<option> load_quality_preset() {
208208
create_option("r-lp-he-size-activation-threshold", "100"),
209209
create_option("r-lp-relative-improvement-threshold", "0.001"),
210210
// main -> refinement -> fm
211-
create_option("r-fm-type", "unconstrained_fm"),
211+
create_option("r-fm-type", "kway_fm"),
212212
create_option("r-fm-multitry-rounds", "10"),
213213
create_option("r-fm-unconstrained-rounds", "8"),
214214
create_option("r-fm-rollback-parallel", "true"),

mt-kahypar/partition/context.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ std::ostream& operator<<(std::ostream& out, const DeterministicRefinementParamet
235235

236236
struct RebalancingParameters {
237237
RebalancingAlgorithm algorithm = RebalancingAlgorithm::do_nothing;
238-
size_t max_rounds = 0;
238+
size_t max_rounds = 10;
239239
bool allow_any_progress = true;
240240
bool reduced_weight_fallback = true;
241241
bool allow_multiple_moves = true;
@@ -245,14 +245,14 @@ struct RebalancingParameters {
245245
bool require_fitting_weight = false;
246246
double negative_progress_penalty = 1.0;
247247
double reduced_target_weight_factor = 0.0; // relative to average node weight
248-
double reduced_weight_from_block = 0.0; // relative to block weight
248+
double reduced_weight_from_block = 0.0025; // relative to block weight
249249

250250
// fallback for multiconstraint
251251
bool use_deadlock_fallback = true;
252252
bool deadlock_fallback_only_toplevel = false;
253-
bool use_binpacking_fallback = true;
253+
bool use_binpacking_fallback = false;
254254
bool binpacking_fallback_only_toplevel = false;
255-
bool fallback_use_locking = true;
255+
bool fallback_use_locking = false;
256256
bool binpacking_use_locking = true;
257257
bool fallback_full_locking = false;
258258
double fallback_weight_threshold = 0.7; // relative to max block weight
@@ -264,7 +264,7 @@ struct RebalancingParameters {
264264
RbFallbackNodeSelectionPolicy fallback_node_selection = RbFallbackNodeSelectionPolicy::by_internal_imbalance;
265265
bool fallback_relative_block_priority = false;
266266
RbFallbackBlockSelectionPolicy fallback_block_selection = RbFallbackBlockSelectionPolicy::by_progress;
267-
size_t fallback_rounds = 3;
267+
size_t fallback_rounds = 1;
268268
size_t bin_packing_tasks = 10;
269269

270270
// deterministic rebalancer

0 commit comments

Comments
 (0)