Test epd for Linux ?

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

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
User avatar
hgm
Posts: 23714
Joined: Fri Mar 10, 2006 9:06 am
Location: Amsterdam
Full name: H G Muller
Contact:

Re: Test epd for Linux ?

Post by hgm » Mon Mar 28, 2016 9:08 am

Canoike wrote:I have found what was wrong : old version of polyglot. So I went to http://hgm.nubati.net/cgi-bin/gitweb.cgi and compiled it, version 1.4.70b. I also downloaded from this forum version 2.0.3.
If you are interested in having the source of 2.0.3: it is in the 'learn' branch of this same on-line repository. The 1.4.70b version works well for this purpose too, however; the only important things that would not work is seeing tablebase hits in the thinking output, and excluding moves from analysis.
The command line is : ./xboard -epd -fd "/home/User/temp/xboard-aae9525/" -fcp "/home/User/temp/xboard-aae9525/polyglot". Polyglot.ini for Stockfish.
OK, in the version I just pushed this could be slightly simplified, because it now copied the directory of the engine as well when the second engine defaults to the first:

./xboard -epd -fd "/home/User/temp/xboard-aae9525/" -fcp "./polyglot"

If Polyglot would have been installed compliantly (by "sudo make install") the -fUCI / -sUCI options would work, and you could use

./xboard -epd -fd "/home/User/temp/xboard-aae9525/" -fcp "./stockfish20160315" -fUCI

You then would not have to prepare a polyglot.ini file, but could set any Stockfish parameters you wanted different from the default through the Engine Settings dialog, and press the 'Polyglot Save' button there to make sure these become permanent.

If Stockfish would also have been compliantly installed you would not have had to specify a directory, and the command

./xboard -epd -fcp stockfish20160315 -fUCI

would suffice. Even if youwanted to use the uninstalled Stockfish in a private directory, you could install it with the Load Engine dialog by browsing to /home/User/temp/xboard-aae9525/stockfish20160315 for the 'Engine comand', and erasing the '.' from the 'Engine directory' text entry, ticking the 'UCI' checkbox and giving it a 'Nickname' like 'mystockfish'. Once you have done that, (and the settings were saved!), you could start the EPD suite by

./xboard -epd -fe mystockfish

and XBoard would remember what directory it had to use, and that the engine was UCI.
In the last GUI, go to
*** "Tournament options", "Pause between match games" set to 1000 msec. "Default number of game match" set to 1500 ( I have 1500 positions). "File with start position" put the name of the EPD. "Position number" set to -1 to go to the next position when the time is over "Time control" "fixed max", set the time for each position. Validate
Note that the match pause and default number of games would have to be set only once, as XBoard remembers those settings. The .epd file, and '-1' for the position number to force auto-increent, would have to be specified every time, though. So when you run the same test suite often (e.g. after changing engine settings) it might bemore convenient to set them from the command line with the -lpf ans -lpi options, and recall the command with the arrow keys.

./xboard -epd -fe mystockfish -lpf STS1.epd -lpi -1 -st 0:10

(The -st 0:10 would take care of the fixed-max time control.)
*** "Common engine settings" : the number of CPU is reset to 1 each time you start the GUI. Do not forget to set it.
This is also something that XBoard should remember, and thus has to be done only one time.
*** "Mode : Machine match" and the tests can begin.
You see twice the same engine as first and second engine.
Indeed, the second engine would still be started, although it would never be set to think. This is a consequence of the hasty implementation of running the EPD suite as a match. I hope to be able to fix that in future versions.

User avatar
hgm
Posts: 23714
Joined: Fri Mar 10, 2006 9:06 am
Location: Amsterdam
Full name: H G Muller
Contact:

Re: Test epd for Linux ?

Post by hgm » Mon Mar 28, 2016 7:59 pm

I think I managed to disable all references to the second engine in -epd mode, in the latest version. I could run the test suite with an invalid engine name in the -scp option, so it seems to work.

Canoike
Posts: 97
Joined: Tue Jan 17, 2012 7:08 pm

Re: Test epd for Linux ?

Post by Canoike » Mon Mar 28, 2016 10:36 pm

hgm wrote:I think I managed to disable all references to the second engine in -epd mode, in the latest version. I could run the test suite with an invalid engine name in the -scp option, so it seems to work.
Which one must I download from here http://hgm.nubati.net/cgi-bin/gitweb.cg ... ;a=summary ?

User avatar
hgm
Posts: 23714
Joined: Fri Mar 10, 2006 9:06 am
Location: Amsterdam
Full name: H G Muller
Contact:

Re: Test epd for Linux ?

Post by hgm » Tue Mar 29, 2016 6:04 am

Indeed, that is always the place where the latest version of XBoard/WinBoard can be found.

Post Reply