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

Commit 74a81c6

Browse files
[C++ API] Remove best options printing from genetic_search.cc
This allows better decoupling of the genetic search from the backend and removes the hardwired Cuda dependency. A generic way of printing the best options was previously added in autotuner-inl.h but will be activated later. As a consequence printing of the best option per generation to LOG(INFO) with the flag --tuner_print_best=1 is temporarily disabled and will be reactivated when we use the new API. The printing of the best options per generation can still be activated with --debug_tuner=1.
1 parent 57ae828 commit 74a81c6

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

tc/autotuner/genetic_search.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -302,12 +302,6 @@ void GeneticSearch::updateParameters() {
302302
// Update failsafe lastBestConf
303303
lastBestConf =
304304
population.size() > 0 ? population.front()->configuration : lastBestConf;
305-
if (FLAGS_tuner_print_best) {
306-
CudaMappingOptions options(
307-
CudaMappingOptions::makeSingleThreadMappingOptions());
308-
lastBestConf.applyToCudaMappingOptions(options);
309-
LOG(INFO) << "Best so far:\n" << options;
310-
}
311305

312306
if (population.size() < kMinCandidatesForBreeding) {
313307
LOG_IF(ERROR, FLAGS_debug_tuner)

0 commit comments

Comments
 (0)