Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit e4cecc3

Browse files
author
Theodoros Theodoridis
committed
[genetic tuning] Do not print confusing stats
Each generation includes two evalution phases (marked with *): 1) Benchmarking of candidates * 2) Breeding 3) Benchmarking of new candidates and selection * Except for the first generation usually most of the candidates of step 1) will have been evaluated during step 3) of the previous generation. This commit removed the "Jobs(Compiled,GPU) (0,0)/0" that was printed during step 1) of almost every generation. In theory it is possible not to have enough valid candidates to form a new generation. In those cases step 1) will be run and the progress message will be printed
1 parent 4956b84 commit e4cecc3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/autotuner/genetic_tuning_harness.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,9 @@ void GeneticTunerHarness::runOneGeneration(size_t generation) {
540540
[](const std::unique_ptr<CandidateConfiguration>& c) {
541541
return c->runtime != Duration::zero();
542542
});
543+
if (std::distance(firstNew, population.end()) == 0) {
544+
return;
545+
}
543546
GeneticSearch::Population newCandidates(
544547
std::distance(firstNew, population.end()));
545548
std::move(firstNew, population.end(), newCandidates.begin());

0 commit comments

Comments
 (0)