X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fbenchmark.cpp;h=baa90140f9bff30af9613dc9e3cb2a2586210ae8;hb=af110e02ec96cdb46cf84c68252a1da15a902395;hp=2abb9c8fbb5f868c78597c3dc4b93879821dffe3;hpb=b60f9cc4515cdfb657a0166abb29a60257cc59e1;p=stockfish
diff --git a/src/benchmark.cpp b/src/benchmark.cpp
index 2abb9c8f..baa90140 100644
--- a/src/benchmark.cpp
+++ b/src/benchmark.cpp
@@ -16,6 +16,8 @@
along with this program. If not, see .
*/
+#include "benchmark.h"
+
#include
#include
#include
@@ -151,24 +153,15 @@ vector setup_bench(const Position& current, istream& is) {
list.emplace_back("setoption name Hash value " + ttSize);
list.emplace_back("ucinewgame");
- size_t posCounter = 0;
-
for (const string& fen : fens)
if (fen.find("setoption") != string::npos)
list.emplace_back(fen);
else
{
- if (evalType == "classical" || (evalType == "mixed" && posCounter % 2 == 0))
- list.emplace_back("setoption name Use NNUE value false");
- else if (evalType == "NNUE" || (evalType == "mixed" && posCounter % 2 != 0))
- list.emplace_back("setoption name Use NNUE value true");
list.emplace_back("position fen " + fen);
list.emplace_back(go);
- ++posCounter;
}
- list.emplace_back("setoption name Use NNUE value true");
-
return list;
}