Setting threads for Stockfish 6 in Arena

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

Howard E
Posts: 261
Joined: Wed Mar 08, 2006 8:49 pm

Setting threads for Stockfish 6 in Arena

Post by Howard E »

How do I set the number of threads for Stockfish in Arena?
Under the engine configuration there is no thread switch.
snino64
Posts: 35
Joined: Mon Oct 05, 2009 2:38 pm

Re: Setting threads for Stockfish 6 in Arena

Post by snino64 »

This process is common for engines of the same type:
Engines → Manage → UCI → Common max. CPU cores settings → select
Engines → Manage → Winboard → Max. CPU cores → select

Stockfish is a UCI engine, so you should choose the <engines - manage - UCI - Common cores max settings> and set the number of cores you want to use, considering cores your computer
gordonr
Posts: 194
Joined: Thu Aug 06, 2009 8:04 pm
Location: UK

Re: Setting threads for Stockfish 6 in Arena

Post by gordonr »

I agree with setting a common UCI usage but I recently wanted to run an engine match between two UCI engines while having different hash settings. Only when I unticked the common hash setting was I able to then set a specific value in each engine's own config. I wonder if this works the same for threads (sorry, I can't try right now).
User avatar
hgm
Posts: 27857
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Setting threads for Stockfish 6 in Arena

Post by hgm »

Really strange design, that UCI engines obey a different Threads setting than WinBoard engines...
Sedat Canbaz
Posts: 3018
Joined: Thu Mar 09, 2006 11:58 am
Location: Antalya/Turkey

Re: Setting threads for Stockfish 6 in Arena

Post by Sedat Canbaz »

Howard E wrote:How do I set the number of threads for Stockfish in Arena?
Under the engine configuration there is no thread switch.

Here is the configuration:
1) Open Arena GUI
2) Click from the menu tab 'Engines'
3) Manage
4) Select Stockfish
5) Start this engine right now
6) Right-Click over Stockfish

And then you can increase the cores (the default is 1)

Note also you need to restart the engine to take effects

Image


Hopes helps,
Sedat
User avatar
hgm
Posts: 27857
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Setting threads for Stockfish 6 in Arena

Post by hgm »

Sedat Canbaz wrote:Note also you need to restart the engine to take effects
Is this a Stockfish bug or an Arena bug?
User avatar
lucasart
Posts: 3232
Joined: Mon May 31, 2010 1:29 pm
Full name: lucasart

Re: Setting threads for Stockfish 6 in Arena

Post by lucasart »

hgm wrote:Really strange design, that UCI engines obey a different Threads setting than WinBoard engines...
Has nothing to do with UCI. UCI-wise it's just

Code: Select all

setoption name Threads value X
If Arena doesn't allow to set UCI options normally, then Arena is at fault, not SF nor UCI.
Theory and practice sometimes clash. And when that happens, theory loses. Every single time.
User avatar
lucasart
Posts: 3232
Joined: Mon May 31, 2010 1:29 pm
Full name: lucasart

Re: Setting threads for Stockfish 6 in Arena

Post by lucasart »

hgm wrote:
Sedat Canbaz wrote:Note also you need to restart the engine to take effects
Is this a Stockfish bug or an Arena bug?
Firstly the "bug" would have to be confirmed, because we're dealing with users who don't understand what they're doing...

And if it is confirmed it can only be an Arena bug, because once you send:

Code: Select all

setoption name Threads value X
SF immediately resizes the thread pool.
Theory and practice sometimes clash. And when that happens, theory loses. Every single time.
User avatar
velmarin
Posts: 1600
Joined: Mon Feb 21, 2011 9:48 am

Re: Setting threads for Stockfish 6 in Arena

Post by velmarin »

Howard E wrote:How do I set the number of threads for Stockfish in Arena?
Under the engine configuration there is no thread switch.

The problem is in the general settings.
You have certainly set to the tab "Engines", "Configure", "UCI"
marked the
"Common max. CPU cores settings" to 1, can do
  and will operate normally.
rcmaddox
Posts: 181
Joined: Mon Oct 14, 2013 8:59 pm
Location: Winder, GA
Full name: Robert C. Maddox

Re: Setting threads for Stockfish 6 in Arena

Post by rcmaddox »

Sedat Canbaz wrote:
Howard E wrote:How do I set the number of threads for Stockfish in Arena?
Under the engine configuration there is no thread switch.

Here is the configuration:
1) Open Arena GUI
2) Click from the menu tab 'Engines'
3) Manage
4) Select Stockfish
5) Start this engine right now
6) Right-Click over Stockfish

And then you can increase the cores (the default is 1)

Note also you need to restart the engine to take effects

Image


Hopes helps,
Sedat
I think you're describing how it works in Arena 3.0.

In version 3.5, you have a common setting for the number of threads. The thread setting doesn't appear in the configurable UCI options, as shown in your graphic.