RoundRobin and ChessGUI

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

Moderator: Ras

User avatar
Matthias Gemuh
Posts: 3245
Joined: Thu Mar 09, 2006 9:10 am

Re: multithread engines

Post by Matthias Gemuh »

SzG wrote:
Thanks, book seems ok now, only not used for some reason. :shock:

Other problems remained, I can see thread defaults are set to 2 in the engine uci files.


I think the book will be used normally for new tournaments.
If you must resume a tournaments setup with the buggy 0.094, let me know.
ChessGUI picks out all the booklines that shall be used only during setup,
so a tournament that was setup with buggy 0.094 is in trouble.

Look into debug file and tell us how many threads GUI is telling Hiarcs to use.

Best,
Matthias.
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de
User avatar
Matthias Gemuh
Posts: 3245
Joined: Thu Mar 09, 2006 9:10 am

Re: multithread engines

Post by Matthias Gemuh »

SzG wrote:
Matthias Gemuh wrote: Look into debug file and tell us how many threads GUI is telling Hiarcs to use.

Best,
Matthias.
Here is an excerpt from the debug file.

================ SendFirstCommands(HIARCS 12 2CPU), nProtocol = 1, EngineCodeHex = 20000120 ====
SendFirstCommands UCI
SendToEng1Time 0000000062293710 : Eng1 (HIARCS 12 2CPU) -> uci
.
Scheduling StartEngineTimerEvent() for HIARCS 12 2CPU at 0000000062293710.
Waiting for HIARCS 12 2CPU.
Eng1 (HIARCS 12 2CPU) <- HIARCS by Mark John Uniacke
Eng1 (HIARCS 12 2CPU) <- Copyright (c) 1992-2008 Mark Uniacke, Applied Computer Concepts Ltd. All rights reserved.
Eng1 (HIARCS 12 2CPU) <- id name HIARCS 12 MP
Eng1 (HIARCS 12 2CPU) <- id author Mark John Uniacke
Eng1 (HIARCS 12 2CPU) <- option name Ponder type check default true
Eng1 (HIARCS 12 2CPU) <- option name Licensed To type combo default Gabor Szots var Gabor Szots
Eng1 (HIARCS 12 2CPU) <- option name Core Threads type spin min 1 max 4 default 4
Eng1 (HIARCS 12 2CPU) <- option name OwnBook type check default true

It looks that the engine is sent the command to use 4 CPU's and its own book. At the same time, the engine ChsGUI.uci looks like this:

option name Ponder type check default false
option name Licensed To type combo default var Gabor Szots
option name Core Threads type spin default 2 min 1 max 4
option name OwnBook type check default false

Now it looks that the engine is set to 2 CPU's and no own book. :?


"It looks that the engine is sent the command to use 4 CPU's and its own..."
No, it is Hiarcs saying it will use those options if GUI does not change them.

"Now it looks that the engine is set to 2 CPU's and no own book."
GUI is here telling Hiarcs that user changed the options.

Check whether you set Hiarcs to use own book.


Matthias.
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de
User avatar
Matthias Gemuh
Posts: 3245
Joined: Thu Mar 09, 2006 9:10 am

Re: multithread engines

Post by Matthias Gemuh »

Matthias Gemuh wrote: "It looks that the engine is sent the command to use 4 CPU's and its own..."
No, it is Hiarcs saying it will use those options if GUI does not change them.

"Now it looks that the engine is set to 2 CPU's and no own book."
GUI is here telling Hiarcs that user changed the options.

Check whether you set Hiarcs to use own book.


Matthias.

"option name Core Threads type spin default 2 min 1 max 4"
I suspect that Hiarcs parses this legal command wrongly and expects only
"option name Core Threads type spin min 1 max 4 default 2"

I shall try that in another bugfix.

Matthias.
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de
User avatar
Matthias Gemuh
Posts: 3245
Joined: Thu Mar 09, 2006 9:10 am

Re: multithread engines

Post by Matthias Gemuh »

SzG wrote:
Matthias Gemuh wrote: Check whether you set Hiarcs to use own book.
Matthias.
No, it is set not to use its own book and threads are set to 2.

Then set it to use own book. That leaves us with CPU problem alone ?

"option name Core Threads type spin default 2 min 1 max 4"
I suspect that Hiarcs parses this legal command wrongly and expects only
"option name Core Threads type spin min 1 max 4 default 2"


Matthias.
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de
User avatar
Matthias Gemuh
Posts: 3245
Joined: Thu Mar 09, 2006 9:10 am

Re: multithread engines

Post by Matthias Gemuh »

Matthias Gemuh wrote:
"option name Core Threads type spin default 2 min 1 max 4"
I suspect that Hiarcs parses this legal command wrongly and expects only
"option name Core Threads type spin min 1 max 4 default 2"

I shall try that in another bugfix.

Matthias.

Hi Gabor,
download ChessGUI again and try this:
- delete ChsGUI.uci in directories of Hiarcs and Zappa
- play test game Hiarcs vs. Zappa to create new ChsGUI.uci
- go edit number of threads through tournament setup window
Does Hiarcs then use correct number of threads ?

Best,
Matthias.
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de
User avatar
Matthias Gemuh
Posts: 3245
Joined: Thu Mar 09, 2006 9:10 am

Re: multithread engines

Post by Matthias Gemuh »

SzG wrote:
I'm sorry, Matthias, nothing changed. Although in the ChsGUI.uci files there are the correct numbers of threads (2), both engines use all 4 cores.
Thanks for your efforts. ChessGUI has improved much in the recent few days.

Best wishes,

P.S. Take a rest.

Hi Gabor,
my computer has only one core, so I cannot test CPU threads here.
Can you
- play Hiars-Zappa in a GUI where they use 2 cores each
- play Hiars-Zappa in ChessGUI where they should use 2 cores each
- send me both debugs ?
Best,
Matthias.
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de
User avatar
Matthias Gemuh
Posts: 3245
Joined: Thu Mar 09, 2006 9:10 am

Re: multithread engines

Post by Matthias Gemuh »

SzG wrote:
Matthias, I tried to send you the requested debugs but the mail delivery system told me the recipient was unknown. I used the e-mail address I found on your site.

You can find my address in my profile so if you send me a message I will send the files in my reply.

EDIT: Oops, I may have used the wrong address. I resent the letter to the spam address.

spam address is fine.
The threads problem will be solved tonight :D
mgemuh at yahoo dot com

Matthias.
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de
User avatar
Matthias Gemuh
Posts: 3245
Joined: Thu Mar 09, 2006 9:10 am

Re: multithread engines

Post by Matthias Gemuh »

Matthias Gemuh wrote: spam address is fine.
The threads problem will be solved tonight :D
mgemuh at yahoo dot com

Matthias.


Is fixed ! Was a ChessGUI misunderstanding.
Thanks for the feedback.

Matthias.
My engine was quite strong till I added knowledge to it.
http://www.chess.hylogic.de