online datagen | bench 4699541

This commit is contained in:
rektdie committed 2025-11-11 00:52:34 +01:00
1 parent 90bdd3cc96
commit 5754772a70
3 files changed
+310 -35

No files matched your search

+12 -2
View File
@@ -57,14 +57,24 @@ int main(int argc, char* argv[]) {
} else if (std::string(argv[1]) == "datagen") {
int positions = 1;
int threads = 1;
std::string username = "";
if (argc > 2) {
positions = std::stoi(argv[2]) * 1000;
if (argc > 3) {
threads = std::stoi(argv[3]);
if (argc > 4) {
username = argv[4];
}
}
}
DATAGEN::Run(positions, threads);
if (!username.empty()) {
DATAGEN::RunOnline(username, positions, threads);
} else {
DATAGEN::Run(positions, threads);
}
}
} else {
UCILoop(board);