From: mstembera Date: Mon, 7 Dec 2015 21:51:43 +0000 (-0800) Subject: Fix MultiPv and Skill in SMP. X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=7904a7d930d4979fcd0bf13d48a6504f97f39a54;hp=8315620522dd268755f32be792802abb62f7366f Fix MultiPv and Skill in SMP. 7 threads, 5+0.1: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 55460 W: 9665 L: 9601 D: 36194 No functional change in normal playing mode --- diff --git a/src/search.cpp b/src/search.cpp index 1e9c5010..3c34f185 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -327,10 +327,11 @@ void MainThread::search() { // Check if there are threads with a better score than main thread. Thread* bestThread = this; - for (Thread* th : Threads) - if ( th->completedDepth > bestThread->completedDepth - && th->rootMoves[0].score > bestThread->rootMoves[0].score) - bestThread = th; + if (Options["MultiPV"] == 1 && !Skill(Options["Skill Level"]).enabled()) + for (Thread* th : Threads) + if ( th->completedDepth > bestThread->completedDepth + && th->rootMoves[0].score > bestThread->rootMoves[0].score) + bestThread = th; // Send new PV when needed. // FIXME: Breaks multiPV, and skill levels