X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbenchmark.cpp;h=ca40b24845b02f7ddf74dd9c3103c86b9c31c6f0;hp=d79726497e085d3bef9d0f80b695a9b4d54b405b;hb=92bada1a32c7ebd5f5b4438bd85bb003d20bd046;hpb=fa49311b362a1ab6e4bd5263c7782b19fa59c41f diff --git a/src/benchmark.cpp b/src/benchmark.cpp index d7972649..ca40b248 100644 --- a/src/benchmark.cpp +++ b/src/benchmark.cpp @@ -84,9 +84,9 @@ void benchmark(const string& commandLine) { } csStr >> threads; csVal >> val; - if (val < 1 || val > THREAD_MAX) + if (val < 1 || val > MAX_THREADS) { - cerr << "The number of threads must be between 1 and " << THREAD_MAX << endl; + cerr << "The number of threads must be between 1 and " << MAX_THREADS << endl; Application::exit_with_failure(); } set_option_value("Hash", ttSize); @@ -155,7 +155,7 @@ void benchmark(const string& commandLine) { cerr << "\nBench position: " << cnt << '/' << positions.size() << endl << endl; if (limitType == "perft") totalNodes += perft(pos, maxDepth * OnePly); - else if (!think(pos, true, false, 0, dummy, dummy, 0, maxDepth, maxNodes, secsPerPos, moves)) + else if (!think(pos, false, false, 0, dummy, dummy, 0, maxDepth, maxNodes, secsPerPos, moves)) break; totalNodes += nodes_searched(); }