Skip to content

Commit

Permalink
Disable printing a warning about --auto-schedule.
Browse files Browse the repository at this point in the history
We should print a warning about --auto-schedule not
being enabled. If we do that we also need to change
the unit test setups for scheduler tests.
  • Loading branch information
strRM committed Nov 13, 2024
1 parent 5187f90 commit d70d25c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ast2ram/utility/SipsMetric.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,12 @@ std::unique_ptr<SipsMetric> SipsMetric::create(const std::string& heuristic, con
if (tu.getAnalysis<ast::analysis::ProfileUseAnalysis>().hasAutoSchedulerStats()) {
return mk<SelingerProfileSipsMetric>(tu);
} else {
// TODO: enable this, but if we do the scheduler tests won't run as they do now
#if 0
std::cerr << "WARNING: `--auto-schedule` cannot be used due to missing scheduler stats; falling back "
"to heuristic '"
<< heuristic << "'" << ::std::endl;
#endif
}
}
if (heuristic == "strict")
Expand Down

0 comments on commit d70d25c

Please sign in to comment.