hi,
I'd like to add multithreading to my new engine.
I started reading something and looking inside some multithread engine to start understand the topic.
could you please point me to some easy implementation/ easy to read code , paper, documentation and so on?
I think I'll start letting more than one thread search the starting position indendently just to see if I can control all the thread and whether the data structure are correct or not.
but in the future I'd like to implement a real mt search
thank you all
multithread search paper and documentation
Moderators: hgm, Rebel, chrisw
-
- Posts: 138
- Joined: Tue Aug 23, 2011 10:25 pm
- Location: Germany
Re: multithread search paper and documentation
A good starting point to get an overview is http://chessprogramming.wikispaces.com/Parallel+Search
nanos gigantium humeris insidentes
-
- Posts: 4185
- Joined: Tue Mar 14, 2006 11:34 am
- Location: Ethiopia
Re: multithread search paper and documentation
Hashtable is your friend. First try sharing it using processes and see what you get. Then go for ABDADA if you are up to it. You might find the easy SMP discussions started by Dan Homan useful.
-
- Posts: 1971
- Joined: Wed Jul 13, 2011 9:04 pm
- Location: Madrid, Spain.
Re: Multithread search paper and documentation.
Hello Marco:
Viper
Good luck!
Regards from Spain.
Ajedrecista.
I am not a programmer but I have read many times that Viper (a weak version of Glaurung) is very instructive for add SMP to an engine. I do not know if you have looked at Viper source code... anyway, here is the link:elcabesa wrote:hi,
I'd like to add multithreading to my new engine.
I started reading something and looking inside some multithread engine to start understand the topic.
could you please point me to some easy implementation/ easy to read code , paper, documentation and so on?
I think I'll start letting more than one thread search the starting position indendently just to see if I can control all the thread and whether the data structure are correct or not.
but in the future I'd like to implement a real mt search
thank you all
Viper
Good luck!
Regards from Spain.
Ajedrecista.
-
- Posts: 855
- Joined: Sun May 23, 2010 1:32 pm
Re: Multithread search paper and documentation.
thank you all
I'm already reading CPwiki
I'm already reading CPwiki
-
- Posts: 1600
- Joined: Mon Feb 21, 2011 9:48 am
Re: Multithread search paper and documentation.
Bobcat would be an easy way to implement in your engine, performance is not impressive, but ... learn ...
https://github.com/Bobcat/bobcat
Also a few months ago there was a discussion in the forum where it was C + +11, with SMP instructions, but can not remember the engine,
You might like ...
Luck ..
https://github.com/Bobcat/bobcat
Also a few months ago there was a discussion in the forum where it was C + +11, with SMP instructions, but can not remember the engine,
You might like ...
Luck ..
-
- Posts: 855
- Joined: Sun May 23, 2010 1:32 pm
Re: multithread search paper and documentation
I can't find dan homan thread, has anyone a link?
-
- Posts: 558
- Joined: Sat Mar 25, 2006 8:27 pm
-
- Posts: 689
- Joined: Mon Apr 19, 2010 7:07 pm
- Location: Sweden
- Full name: Peter Osterlund
Re: Multithread search paper and documentation.
Maybe you are thinking of this: http://talkchess.com/forum/viewtopic.php?t=48752velmarin wrote:Also a few months ago there was a discussion in the forum where it was C + +11, with SMP instructions, but can not remember the engine
-
- Posts: 1600
- Joined: Mon Feb 21, 2011 9:48 am
Re: Multithread search paper and documentation.
Yes, Thanks, I'll put in favorites ...petero2 wrote:Maybe you are thinking of this: http://talkchess.com/forum/viewtopic.php?t=48752velmarin wrote:Also a few months ago there was a discussion in the forum where it was C + +11, with SMP instructions, but can not remember the engine