Skip to content

Commit 60766b9

Browse files
committed
fractional epsilon hack
1 parent 877d43f commit 60766b9

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

apps/test_suite_runner/PartitioningTestSuiteRunner.hpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,15 @@ int PartitioningTestSuiteRunner<GraphType>::Run(int argc, char *argv[]) {
148148
continue;
149149
}
150150

151-
instance.SetMaxWorkWeightViaImbalanceFactor(static_cast<double>(arch.CommunicationCosts()) / 100.0);
151+
double epsilon = static_cast<double>(arch.CommunicationCosts());
152+
if (epsilon > 100.0) { // hack to get fractional epsilon with the current setup. g = 250 => 2.5
153+
epsilon /= 100.0;
154+
std::cout << "Adjusting epsilon: " << epsilon << std::endl;
155+
} else {
156+
std::cout << "Using epsilon: " << epsilon << std::endl;
157+
}
158+
159+
instance.SetMaxWorkWeightViaImbalanceFactor(epsilon / 100.0);
152160

153161
for (auto &algorithmConfigPair : this->parser_.scheduler_) {
154162
const pt::ptree &algoConfig = algorithmConfigPair.second;

0 commit comments

Comments
 (0)