Tuning #97

Merged
rektdie merged 7 commits from tuning into main 2025-09-07 19:44:51 +02:00
2 changed files with 28 additions and 1 deletions
Showing only changes of commit cb9051c477 - Show all commits

No files matched your search

+22
View File
@@ -66,3 +66,25 @@ inline void PrintTunables() {
#undef X_INT #undef X_INT
} }
inline void PrintTunablesUCI() {
#define X_DOUBLE(name, default_val, min_val, max_val, step_val) \
std::cout << "option name " #name \
<< " type string default " << name \
<< " min " << min_val \
<< " max " << max_val \
<< std::endl;
#define X_INT(name, default_val, min_val, max_val, step_val) \
std::cout << "option name " #name \
<< " type spin default " << name \
<< " min " << min_val \
<< " max " << max_val \
<< std::endl;
TUNABLE_LIST
#undef X_DOUBLE
#undef X_INT
}
+6 -1
View File
@@ -201,6 +201,11 @@ static void PrintEngineInfo() {
std::cout << "id author rektdie" << std::endl; std::cout << "id author rektdie" << std::endl;
std::cout << "option name Hash type spin default 8 min 1 max 1024" << std::endl; std::cout << "option name Hash type spin default 8 min 1 max 1024" << std::endl;
std::cout << "option name Threads type spin default 1 min 1 max 1" << std::endl; std::cout << "option name Threads type spin default 1 min 1 max 1" << std::endl;
#ifdef TUNING
PrintTunablesUCI();
#endif
std::cout << "uciok" << std::endl; std::cout << "uciok" << std::endl;
} }
@@ -310,4 +315,4 @@ void UCILoop(Board &board) {
continue; continue;
} }
} }
} }