Page 1 of 1

Glaurung CCT8 (source code)

PostPosted: 28 Feb 2006, 00:08
by Tord Romstad
Hi all,

The source code for GlaurungCCT8 can now be downloaded from my site. Binaries for Windows, Linux and Mac OS X will be added in the next few days. This is almost the exact version which played in the CCT, except that a tiny quiescence bug has been fixed, and that the program finally sends information about hash usage to the GUI. It's funny, Glaurung has been available for download for about one and a half year, and nobody ever complained about the missing hash usage information. Then, suddenly, two people complained during the same day. :)

The changes compared to Glaurung 1.0.2 are rather unexciting, unless you happen to have a computer with more than one CPU:

  • Parallel search has been added, using the technique known as the "Young Brothers Wait Concept" (or at least something very similar). This is limited to two CPUs so far, support for bigger numbers of CPUs will be added in a later version. Of course the current version will also work on a computer with more than two CPUs, but no more than two will be used.
  • Several minor bugs which were found during implementation of the parallel search have been fixed. Nothing big, and not likely to have any influence on playing strength.
  • Several new bugs were without doubt added during implementation of the parallel search. I hope these also don't have any big influence on the playing strength, but before I find them I cannot know. :-)


Please note that this version almost requires at least two CPUs (or a single dual-core CPU). It will be ridiculously slow with the default settings. If you reduce the "Number of threads" UCI parameter to 1, it will work reasonably well on a single-CPU computer, but it will still be a bit slower and probably weaker than Glaurung 1.0.2. In other words, those of you without a dual shouldn't upgrade, but rather wait for the next Glaurung version.

I have two goals with this version: The first is to show that parallel search is nowhere near as difficult to do than most people seem to believe, and that YBWC isn't necessarily harder than ABDADA and other shared hash table algorithms. I hope we will see many new parallel engines in the next few months, and that my source code will make the job a bit easier for some of the programmers.

The second goal is to try to put an end to the awful naming convention of adding "Deep" in front of the name for parallel versions of chess engines. I wish people would either leave the engine name unchanged (like Crafty, Diep, Zappa and Scorpio, among others), add a simple "SMP" at the end, or do something more creative ("ParSOS" is a fabulous name!). The "Deep" prefix is embarassingly silly, especially for those of us who have been around long enough to remember how it all started.

Tord

Re: Glaurung CCT8 (source code)

PostPosted: 28 Feb 2006, 00:19
by Tord Romstad
I forgot: A big thanks to Alessandro Scotti, Bruno Lucas, Dann Corbit and Fritz Reul for assisting me in making my thread code Windows compatible! Without their help, Glaurung CCT8 would still be a Unix-only program.

Tord

Re: Glaurung CCT8 (source code)

PostPosted: 28 Feb 2006, 12:41
by Tord Romstad
Hi all,

I just spotted a bug in my code which may sometimes have serious consequences: Whenever a thread is stopped because the other thread has found a beta cutoff at a split point further up in the tree, and the thread which is stopped happens to be in the qsearch, an incorrect draw score will be stored to the hash table. Because there are still no binaries of Glaurung CCT8 and serious testing has not yet commenced, I have taken the liberty to correct the bug and update the source code without changing the version name.

Please download again.

Tord

Re: Glaurung CCT8 (source code)

PostPosted: 28 Feb 2006, 16:28
by Mihail Croitor
i tried to compile under win32 (Dev-CPP, gcc), shure exe will not work under win64 (cleared all MSC)
Glaurung CCT8 Win32

Re: Glaurung CCT8 (source code)

PostPosted: 28 Feb 2006, 22:02
by Jim Ablett
Win32 Intel profile guided optimized build here >

http://www.ihud.com/file.php?file=28020 ... -intel.zip


Jim.

Glaurung CCT8 (source code + binaries)

PostPosted: 28 Feb 2006, 23:15
by Tord Romstad
Hi all,

You can now download Glaurung CCT8 binaries for Windows and Mac OS X from my Glaurung page. Thanks to Bryan Hofmann for the Windows executables!

I remind you again that this Glaurung version is only for computers with at least two CPUs. Those with a single CPU should keep using Glaurung 1.0.2.

Tord

Re: Glaurung CCT8 (source code + binaries)

PostPosted: 01 Mar 2006, 00:47
by Alessandro Scotti
Tord Romstad wrote:I remind you again that this Glaurung version is only for computers with at least two CPUs. Those with a single CPU should keep using Glaurung 1.0.2.


Ok so Apple has made the first step today with the Duo-based Mac Mini.
Now... how to convince wife?!?!

Re: Glaurung CCT8 (source code + binaries)

PostPosted: 01 Mar 2006, 00:57
by Tord Romstad
Alessandro Scotti wrote:Ok so Apple has made the first step today with the Duo-based Mac Mini.
Now... how to convince wife?!?!

You already have one of the G4 Mac Minis, don't you? The Duo-based Minis look exactly the same, I think. Just buy it without telling your wife, replace the old machine with the new one while she isn't watching, and hide the G4 Mini at some place she isn't likely to find it. :wink:

Tord