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

Commit f340b60

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 d832583 commit f340b60

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tc/autotuner/genetic_tuning_harness.cc

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

0 commit comments

Comments
 (0)