RuyDos with support for syzygy tablebases

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

Moderators: hgm, Rebel, chrisw

AlvaroBegue
Posts: 931
Joined: Tue Mar 09, 2010 3:46 pm
Location: New York
Full name: Álvaro Begué (RuyDos)

RuyDos with support for syzygy tablebases

Post by AlvaroBegue »

Hi,

I have just uploaded RuyDos version 1.0.11 here: https://bitbucket.org/alonamaloh/ruydos

The main novelty for this version is support for syzygy tablebases. I also made hash size a UCI option.

It would be great if someone could take a moment to download it and check that these new options work correctly. Any feedback will be much appreciated.

Thanks!
Álvaro.
thunderstruck
Posts: 50
Joined: Tue Jul 19, 2016 10:19 am

Re: RuyDos with support for syzygy tablebases

Post by thunderstruck »

Hi Álvaro,

I just compiled Ruydos 1.0.11 for Linux because your Linux executable doesn't work on my processor(popcount) Illegal instruction (core dumped).
The Hash option shows up in cutechess GUI.
I see that the RAM usage when Hash is set to 128 MB is approx. 273 MB and when I set it to 256 MB the RAM usage is approx. 401 MB.
There's each time a difference of 145 MB.
Is this normal?

Kind regards,

Antonio
AlvaroBegue
Posts: 931
Joined: Tue Mar 09, 2010 3:46 pm
Location: New York
Full name: Álvaro Begué (RuyDos)

Re: RuyDos with support for syzygy tablebases

Post by AlvaroBegue »

Antonio,

I suspect the memory consumption reported by the OS is not very precise, because of the details of how memory allocation actually works.

Do you see the same behavior with, say, stockfish?
thunderstruck
Posts: 50
Joined: Tue Jul 19, 2016 10:19 am

Re: RuyDos with support for syzygy tablebases

Post by thunderstruck »

Hi Álvaro,

I see only 26 MB difference in RAM usage with stockfish at 128 and 256 MB.

Kind regards,

Antonio
User avatar
Guenther
Posts: 4605
Joined: Wed Oct 01, 2008 6:33 am
Location: Regensburg, Germany
Full name: Guenther Simon

Re: RuyDos with support for syzygy tablebases

Post by Guenther »

AlvaroBegue wrote:Hi,

I have just uploaded RuyDos version 1.0.11 here: https://bitbucket.org/alonamaloh/ruydos

The main novelty for this version is support for syzygy tablebases. I also made hash size a UCI option.

It would be great if someone could take a moment to download it and check that these new options work correctly. Any feedback will be much appreciated.

Thanks!
Álvaro.
I noticed something strange here. Had already running 1.02 here via Polyglot under WB.
Now version 1.0.11 crashes immediately when Polyglot invokes it, but
strangely it runs from command line with 'uci' and 'go'.

Edit: The culprit is obviously sending the syzygy path variable, because
deleting that last line from the polyglot.ini file makes the crash go away.
Any idea? What does it expect to be sended?
(No problem with that entry for all other uci programs using syzygy)

Code: Select all

1498212445.014 POLYGLOT *** LOGFILE OPENED ***
1498212445.015 POLYGLOT *** LOGFILE OPENED ***
1498212445.015 PolyGlot 2.0.3 by Fabien Letouzey.
1498212445.015 POLYGLOT *** START ***
1498212445.015 POLYGLOT INI file "polyglot.ini"
1498212445.027 Adapter->Engine: uci
1498212445.120 Engine->Adapter: id name RuyDos 1.0.11
1498212445.120 Engine->Adapter: id author Alvaro Begue & Jose Manuel Moran
1498212445.120 Engine->Adapter: option name Hash type spin default 128 min 1 max 16384
1498212445.120 Engine->Adapter&#58; option name SyzygyPath type string default <empty>
1498212445.120 Engine->Adapter&#58; uciok
1498212445.120 POLYGLOG OPTIONS 
1498212445.120 POLYGLOT &#91;PolyGlot&#93; EngineName="RuyDos_1011-64"
1498212445.120 POLYGLOT &#91;PolyGlot&#93; EngineDir="."
1498212445.120 POLYGLOT &#91;PolyGlot&#93; EngineCommand="RuyDos1011-64.exe"
1498212445.120 POLYGLOT &#91;PolyGlot&#93; Log="true"
1498212445.120 POLYGLOT &#91;PolyGlot&#93; LogFile="RuyDos_1011-64.log"
1498212445.120 POLYGLOT &#91;PolyGlot&#93; RepeatPV="false"
1498212445.120 POLYGLOT &#91;Engine&#93; Hash="256"
1498212445.120 POLYGLOT &#91;Engine&#93; SyzygyPath="C&#58;\Syzygy_5"
1498212445.120 POLYGLOT Setting PolyGlot option "EngineName=RuyDos_1011-64"
1498212445.120 POLYGLOT Setting PolyGlot option "EngineDir=."
1498212445.120 POLYGLOT Setting PolyGlot option "EngineCommand=RuyDos1011-64.exe"
1498212445.120 POLYGLOT Setting PolyGlot option "Log=true"
1498212445.120 POLYGLOT *** SWITCHING LOGFILE ***
1498212445.120 POLYGLOT NEW LOGFILE "RuyDos_1011-64.log"
1498212445.121 POLYGLOT *** LOGFILE OPENED ***
1498212445.121 POLYGLOT Setting PolyGlot option "LogFile=RuyDos_1011-64.log"
1498212445.121 POLYGLOT *** SWITCHING LOGFILE ***
1498212445.121 POLYGLOT NEW LOGFILE "RuyDos_1011-64.log"
1498212445.121 POLYGLOT *** LOGFILE OPENED ***
1498212445.121 POLYGLOT Setting PolyGlot option "RepeatPV=false"
1498212445.121 Adapter->Engine&#58; setoption name Hash value 256
1498212445.121 Adapter->Engine&#58; setoption name SyzygyPath value C&#58;\Syzygy_5
1498212445.121 POLYGLOT *** Mainloop started ***
1498212448.225 POLYGLOT *** Mainloop has ended ***
1498212448.225 POLYGLOT Closing engine.
1498212448.225 Adapter->Engine&#58; EOF
1498212448.225 POLYGLOT Waiting for child process to exit.
1498212448.347 POLYGLOT pipex_exit&#40;)&#58; RuyDos1011-64.exe&#58; child exited unexpectedly.
1498212448.363 POLYGLOT *** QUIT ***
1498212448.563 POLYGLOT Calling exit

Code: Select all

&#91;PolyGlot&#93;

EngineName = RuyDos_1011-64
EngineDir = .
EngineCommand = RuyDos1011-64.exe
Log = true
LogFile = RuyDos_1011-64.log
RepeatPV=false

&#91;Engine&#93;

Hash = 256
SyzygyPath = C&#58;\Syzygy_5
tried those too, but they crash it either:

Code: Select all

C&#58;\Syzygy_5\
C&#58;/Syzygy_5
C&#58;/Syzygy_5/
Edit2:
RuyDos 1.0.11 also crashes when giving the path in advanced options
under CuteChess...
https://rwbc-chess.de

trollwatch:
Chessqueen + chessica + AlexChess + Eduard + Sylwy
AlvaroBegue
Posts: 931
Joined: Tue Mar 09, 2010 3:46 pm
Location: New York
Full name: Álvaro Begué (RuyDos)

Re: RuyDos with support for syzygy tablebases

Post by AlvaroBegue »

Guenther wrote:[...]
AlvaroBegue wrote:Hi,

I have just uploaded RuyDos version 1.0.11 here: https://bitbucket.org/alonamaloh/ruydos

The main novelty for this version is support for syzygy tablebases. I also made hash size a UCI option.

It would be great if someone could take a moment to download it and check that these new options work correctly. Any feedback will be much appreciated.

Thanks!
Álvaro.
I noticed something strange here. Had already running 1.02 here via Polyglot under WB.
Now version 1.0.11 crashes immediately when Polyglot invokes it, but
strangely it runs from command line with 'uci' and 'go'.

Edit: The culprit is obviously sending the syzygy path variable, because
deleting that last line from the polyglot.ini file makes the crash go away.
Any idea? What does it expect to be sended?
(No problem with that entry for all other uci programs using syzygy)

[...]

Edit2:
RuyDos 1.0.11 also crashes when giving the path in advanced options
under CuteChess...
Oh, that's a good point. I got lazy when it came to detecting and reporting errors. I have some work to do in that department.

Thanks!
AlvaroBegue
Posts: 931
Joined: Tue Mar 09, 2010 3:46 pm
Location: New York
Full name: Álvaro Begué (RuyDos)

Re: RuyDos with support for syzygy tablebases

Post by AlvaroBegue »

thunderstruck wrote:Hi Álvaro,

I see only 26 MB difference in RAM usage with stockfish at 128 and 256 MB.

Kind regards,

Antonio

Yeah, that doesn't make a lot of sense either. I think it's just that `top' is a poor measure of memory usage. I think this part is probably working fine.

Thanks for trying it out!
AlvaroBegue
Posts: 931
Joined: Tue Mar 09, 2010 3:46 pm
Location: New York
Full name: Álvaro Begué (RuyDos)

Re: RuyDos with support for syzygy tablebases

Post by AlvaroBegue »

I modified the code a tiny bit to report whatever the fathom interface says has gone wrong. Unfortunately, it's not much. It will probably just tell you "ERROR: No tablebases found", which isn't very informative.

I don't use Windows, but my memory of programming on MS-DOS around 20 years ago is that both "C:/blah" and "C:\blah" should work.

Does anyone have an idea of how to debug this?
User avatar
Guenther
Posts: 4605
Joined: Wed Oct 01, 2008 6:33 am
Location: Regensburg, Germany
Full name: Guenther Simon

Re: RuyDos with support for syzygy tablebases

Post by Guenther »

AlvaroBegue wrote:I modified the code a tiny bit to report whatever the fathom interface says has gone wrong. Unfortunately, it's not much. It will probably just tell you "ERROR: No tablebases found", which isn't very informative.

I don't use Windows, but my memory of programming on MS-DOS around 20 years ago is that both "C:/blah" and "C:\blah" should work.

Does anyone have an idea of how to debug this?
Just an idea... Does your implementation perhaps expect up to 6men?
My folder (as the name says) is the complete set for 5men!

Anyhow I will download your new attempt now and check what it says.

BTW the download size of 'master' is lying always ;-)

Guenther
https://rwbc-chess.de

trollwatch:
Chessqueen + chessica + AlexChess + Eduard + Sylwy
User avatar
Guenther
Posts: 4605
Joined: Wed Oct 01, 2008 6:33 am
Location: Regensburg, Germany
Full name: Guenther Simon

Re: RuyDos with support for syzygy tablebases

Post by Guenther »

No luck with the latest one. It immediately crashes and no info appears in time.
It also crashes immediately w/o error message when feeding manually at the commandline:

Code: Select all

setoption name SyzygyPath value C&#58;\Syzygy_5
https://rwbc-chess.de

trollwatch:
Chessqueen + chessica + AlexChess + Eduard + Sylwy