How to program multi processor and 64 bit chess engines

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

kaustubh

How to program multi processor and 64 bit chess engines

Post by kaustubh »

How to program multi processor and 64 bit chess engines , is there an open source engine which is 64 bit and multi processor working. :D
Gandalf

Re: How to program multi processor and 64 bit chess engines

Post by Gandalf »

I am hardly an expert in the matter, but from what I am aware you simply optimize your code so that when you tell the compiler to create a 64 bit or SMP executable, it takes advantage of the respective features. In other words, it's just your average code with a few things tweaked to better take advantage of 64 bit CPUs or multiple cores. The compiler does the rest.

Exuse any vagueness that probably comes from my lack of experience. :)
Alessandro Scotti

Re: How to program multi processor and 64 bit chess engines

Post by Alessandro Scotti »

kaustubh wrote:How to program multi processor and 64 bit chess engines , is there an open source engine which is 64 bit and multi processor working. :D
Crafty and Glaurung both support multiple processors, and both take advantage of 64 bit architectures to get a nice speedup.
Volker Pittlik
Posts: 619
Joined: Wed Mar 08, 2006 9:10 pm
Location: Murten / Morat, Switzerland
Full name: Volker Pittlik

Re: How to program multi processor and 64 bit chess engines

Post by Volker Pittlik »

Gandalf wrote:...In other words, it's just your average code with a few things tweaked to better take advantage of 64 bit CPUs or multiple cores. The compiler does the rest...
You must not forget the

Code: Select all

Do_what_I_want
command at the beginning. To become World Champion simply activate the

Code: Select all

Play unbeatable
option in your favorite GUI.

SCNR

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

Re: How to program multi processor and 64 bit chess engines

Post by hgm »

These are compiler switches, isn't it? I always use:

gcc engine.c -Elo=3500
Volker Pittlik
Posts: 619
Joined: Wed Mar 08, 2006 9:10 pm
Location: Murten / Morat, Switzerland
Full name: Volker Pittlik

Re: How to program multi processor and 64 bit chess engines

Post by Volker Pittlik »

hgm wrote:...
gcc engine.c -Elo=3500
This is possibly Rybka's secret.
Vempele

Re: How to program multi processor and 64 bit chess engines

Post by Vempele »

Volker Pittlik wrote:
hgm wrote:...
gcc engine.c -Elo=3500
This is possibly Rybka's secret.
Nah, Vas uses MSVC. That would be:

cl engine.c /Elo:3500
Gandalf

Re: How to program multi processor and 64 bit chess engines

Post by Gandalf »

Funny. Yet, I am still no closer to understanding what is wrong with what I posted... As a guess, should I have said something like "it is an impossibly difficult task that requires you to completely rewrite critical portions of your code"?
Dariusz Orzechowski

Re: How to program multi processor and 64 bit chess engines

Post by Dariusz Orzechowski »

This is rude and pathetic. It's really sad to watch such "experts".

On topic: take a look at the Viper by Tord Romstad. It should fit your needs.

http://www.glaurungchess.com/viper/
Volker Pittlik
Posts: 619
Joined: Wed Mar 08, 2006 9:10 pm
Location: Murten / Morat, Switzerland
Full name: Volker Pittlik

Re: How to program multi processor and 64 bit chess engines

Post by Volker Pittlik »

Dariusz Orzechowski wrote:...It's really sad to watch such "experts"...
Or even worse to answer to them.

P.S. It seems your irony detector is buggy.

eod