Bring back info for finished evalsave. Update tests with the new message.

This commit is contained in:
Tomasz Sobczyk
2020-10-24 13:46:34 +02:00
committed by nodchip
parent 4b72658409
commit b882423005
2 changed files with 6 additions and 2 deletions

View File

@@ -247,7 +247,10 @@ namespace Eval::NNUE {
// save merit function parameters to a file
void save_eval(std::string dir_name) {
auto eval_dir = Path::combine(Options["EvalSaveDir"], dir_name);
std::cout << "INFO (save_eval): Saving current evaluation file in " << eval_dir << std::endl;
auto out = sync_region_cout.new_region();
out << "INFO (save_eval): Saving current evaluation file in " << eval_dir << std::endl;
// mkdir() will fail if this folder already exists, but
// Apart from that. If not, I just want you to make it.
@@ -263,5 +266,6 @@ namespace Eval::NNUE {
#ifndef NDEBUG
assert(result);
#endif
out << "INFO (save_eval): Saving current evaluation file in " << eval_dir << std::endl;
}
} // namespace Eval::NNUE