X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbenchmark.cpp;h=0417313cbb6bf3ac22ba5733cd77bda68fc3212f;hp=b9cd4058aca8296eca14d9fe18aa7b2242a0e1a4;hb=cc04a745e2f6aca12ac8373c85ae0ccafac07ffb;hpb=2f99de0c6c3b9eb7531ec34dbbaf026697cb4fe4 diff --git a/src/benchmark.cpp b/src/benchmark.cpp index b9cd4058..0417313c 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -83,7 +83,12 @@ void benchmark(istringstream& is) { else limits.depth = atoi(limit.c_str()); - if (fenFile != "default") + if (fenFile == "current") + { + fens.clear(); + fens.push_back(Search::RootPosition.to_fen()); + } + else if (fenFile != "default") { fens.clear(); string fen; @@ -107,7 +112,7 @@ void benchmark(istringstream& is) { for (size_t i = 0; i < fens.size(); i++) { - Position pos(fens[i], false, 0); + Position pos(fens[i], false, Threads.main_thread()); cerr << "\nPosition: " << i + 1 << '/' << fens.size() << endl;