Release of XBoard 4.9.0 soon

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

Moderator: Ras

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

Re: Release of XBoard 4.9.0 soon

Post by hgm »

I don't completely understand what you were doing. In an 'old-style' two-player match 'cycles' should be ignored, and the duration of the match is taken from gamesPerPairing. In real tourneys all pairings between the same engines play cycles x gamesPerPairing games, and each next game (or each two games) are taken from the next line or position in the file. How you distribute the total number of games over cycles and gamesPerPairing only determines the order in which the games are played (and then only if there are more than two participants to the tourney). E.g. if you play 4 cycles and 4 games per pairing in a round-robin, each engine will play each other engine 16 times. They will play 4 consecutive games, 2 from line 1, and then play 2 games from line 2, and then two other engines will play (using these same two lines) untill all have played all others (which finishes the first cycle). Then the second cycle starts, and all engines now play from line 3 and 4 in every pairing, etc.
User avatar
Werner
Posts: 3068
Joined: Wed Mar 08, 2006 10:09 pm
Location: Germany
Full name: Werner Schüle

Re: Release of XBoard 4.9.0 soon

Post by Werner »

hgm wrote:I don't completely understand what you were doing. In an 'old-style' two-player match 'cycles' should be ignored, and the duration of the match is taken from gamesPerPairing. In real tourneys all pairings between the same engines play cycles x gamesPerPairing games, and each next game (or each two games) are taken from the next line or position in the file. How you distribute the total number of games over cycles and gamesPerPairing only determines the order in which the games are played (and then only if there are more than two participants to the tourney). E.g. if you play 4 cycles and 4 games per pairing in a round-robin, each engine will play each other engine 16 times. They will play 4 consecutive games, 2 from line 1, and then play 2 games from line 2, and then two other engines will play (using these same two lines) untill all have played all others (which finishes the first cycle). Then the second cycle starts, and all engines now play from line 3 and 4 in every pairing, etc.
Thanks, it works here now. I even started a 2nd Winboard and loaded the same .trn file. I hope, the tourney is ready in half the time.
Werner
Guenther
Posts: 4718
Joined: Wed Oct 01, 2008 6:33 am
Location: Regensburg, Germany
Full name: Guenther Simon

Re: Release of XBoard 4.9.0 soon

Post by Guenther »

hgm wrote:I don't completely understand what you were doing. In an 'old-style' two-player match 'cycles' should be ignored, and the duration of the match is taken from gamesPerPairing. In real tourneys all pairings between the same engines play cycles x gamesPerPairing games, and each next game (or each two games) are taken from the next line or position in the file. How you distribute the total number of games over cycles and gamesPerPairing only determines the order in which the games are played (and then only if there are more than two participants to the tourney). E.g. if you play 4 cycles and 4 games per pairing in a round-robin, each engine will play each other engine 16 times. They will play 4 consecutive games, 2 from line 1, and then play 2 games from line 2, and then two other engines will play (using these same two lines) untill all have played all others (which finishes the first cycle). Then the second cycle starts, and all engines now play from line 3 and 4 in every pairing, etc.
Oops, yes I meant games per matches/pairings not cycles.
User avatar
hgm
Posts: 28543
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Release of XBoard 4.9.0 soon

Post by hgm »

Werner wrote:I even started a 2nd Winboard and loaded the same .trn file. I hope, the tourney is ready in half the time.
Indeed, that is the idea. You can start as many 'worker agents' as you like on the tourney, and start or stop them at will when you need (part of) the computer capacity for other purposes. (Clicking Machine Match in the Mode menu will finish the current game before stopping.) If none are running the tourney is simly suspended. Double-clicking the .trn file is the simplest way to launch new worker agents on the tourney.
User avatar
Werner
Posts: 3068
Joined: Wed Mar 08, 2006 10:09 pm
Location: Germany
Full name: Werner Schüle

Re: Release of XBoard 4.9.0 soon

Post by Werner »

Hi,
I am sorry, I have some more troubles with the setting of uci engines.
I want to make a match between
Deep Shredder 12 x64 1CPU and
Stockfish 1.5.1 x64 2CPU

How can I individually set the number of CPUs for each engine?
I tried with Threads=2 as command line parameter, but then engine crashes.
Is there an easy way? Why is this not shown in engine configuration ?

regards
Werner
Guenther
Posts: 4718
Joined: Wed Oct 01, 2008 6:33 am
Location: Regensburg, Germany
Full name: Guenther Simon

Re: Release of XBoard 4.9.0 soon

Post by Guenther »

Werner wrote:Hi, I am sorry, I have some more troubles ... t&start=20

Post 23 from above thread(HGM):
But it does not have separate Thread controls in the Engine Settings dialogs. I cannot help seeing such 'core odds' games as a specialist application, for which you can expect people to go 'the extra mile'. I mean, where would it stop? Would you also want it possible to play 'hash-size odds' games, or 'tablebase-cache odds' games?

The point is that there already exits a not-so-difficult kludge to force engines to run with other settings than the common GUI settings. Just install the engine with the extra XBoard option -initString to overrule the settings commands that the GUI would send. (Which would have been sent before the "new" command.) E.g.

-initString "memory 64\ncores 2\nnew\nrandom"

This can be added through the Edit Engine List menu dialog of the GUI, so it is not really a big deal.
So you need to overrule the one engine, which doesn't have the threads number you specified in 'Common Engine'.

-initString "ncores %\nnew\nrandom"

replace % with your number (new and random seems to be the normally sent initialisation string according to the specs)
https://www.gnu.org/software/xboard/engine-intf.html#8
User avatar
hgm
Posts: 28543
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Release of XBoard 4.9.0 soon

Post by hgm »

Note this has to be:

-initString "cores %\nnew\nrandom"

(The 'n' in the example you quoted was not part of the cores command, but part of the '\n' newline specified directly before it.)

You would have to write that command as 'Special WinBoard option' in the Load Engine dialog when you are installing an engine you don't want to obey the general setting for the number of CPUs specified in the Common Engine dialog, but run at a fixed number of cores. (When you already installed the engine, you can use the 'Edit Engine list' menu item to append this option to the line for that engine.)
User avatar
Werner
Posts: 3068
Joined: Wed Mar 08, 2006 10:09 pm
Location: Germany
Full name: Werner Schüle

Re: Release of XBoard 4.9.0 soon

Post by Werner »

hgm wrote:Note this has to be:
-initString "cores %\nnew\nrandom"
(The 'n' in the example you quoted was not part of the cores command, but part of the '\n' newline specified directly before it.)
You would have to write that command as 'Special WinBoard option' in the Load Engine dialog when you are installing an engine you don't want to obey the general setting for the number of CPUs specified in the Common Engine dialog, but run at a fixed number of cores. (When you already installed the engine, you can use the 'Edit Engine list' menu item to append this option to the line for that engine.)
This is the line I got:
"Stockfish 1.5.1 x64 2CPU" -fcp "stockfish_151_intel_x64.exe" -fd "C:\Users\Werner\Arena\Engines\Stockfish\stockfish_151_ja" -fn "Stockfish 1.5.1 x64 2CPU" -fUCI -initString "cores 2\nnew\nrandom"

Thanks, it works here now - not with a click - with knowledge (after starting the GUI new). But when I add a memory command, both engines use only one core:
"Stockfish 1.5.1 x64 2CPU" -fcp "stockfish_151_intel_x64.exe" -fd "C:\Users\Werner\Arena\Engines\Stockfish\stockfish_151_ja" -fn "Stockfish 1.5.1 x64 2CPU" -fUCI -initString "memory 512\cores 2\nnew\nrandom"

I am learning how to use Winboard to replace other GUIs when I have problems with an engine there.
Werner
User avatar
hgm
Posts: 28543
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Release of XBoard 4.9.0 soon

Post by hgm »

Werner wrote:Thanks, it works here now - not with a click - with knowledge (after starting the GUI new).
Well, sorry about that. Core odds really seems a very outlandish application to me, and I did not build any support for that in WinBoard. Supporting too much will confuse people to the point of not being able to use it anymore. Normally people want the engines to use all cores they have available, and when they want to weaken one engine time odds (which is supported) is a better method than core odds.
But when I add a memory command, both engines use only one core:
"Stockfish 1.5.1 x64 2CPU" -fcp "stockfish_151_intel_x64.exe" -fd "C:\Users\Werner\Arena\Engines\Stockfish\stockfish_151_ja" -fn "Stockfish 1.5.1 x64 2CPU" -fUCI -initString "memory 512\cores 2\nnew\nrandom"

I am learning how to use Winboard to replace other GUIs when I have problems with an engine there.
Well, you omitted an n: '\n' is an 'escape' for a newline, but after the 512 you just wrote a backslash. Not sure how WinBoard would interpret that, but in any case it will not take a new line at that point, so 'cores' or 'ores' will be appended somewhere to the memory size, and not recognized as an individual command. The correct string would be:

-initString "memory 512\ncores 2\nnew\nrandom"

But why do you want to need a 'memory' command in there? Do you also want the two engines to play with different hash-table size?
User avatar
Werner
Posts: 3068
Joined: Wed Mar 08, 2006 10:09 pm
Location: Germany
Full name: Werner Schüle

Re: Release of XBoard 4.9.0 soon

Post by Werner »

Thanks,
Looks not easy :oops:
CEGT rules: 1core 256 mb, 4 or 2core 512 mb.
We seldom use different cores, e.g. an engine is very strong and needs more opponents which are not much weaker. I think a result 100 - 0 is not good for the list.
...and sorry, we tester are not normal
Werner