64bit compile

Discussion of chess software programming and technical issues.

Moderator: Ras

elcabesa
Posts: 858
Joined: Sun May 23, 2010 1:32 pm

Re: 64bit compile

Post by elcabesa »

I tried some bt2460 position but it happens always after lots of nodes.
I'm finding the problem using Thomas idea :)
elcabesa
Posts: 858
Joined: Sun May 23, 2010 1:32 pm

Re: 64bit compile

Post by elcabesa »

in the end I found the bug in the evalutation of the king safety.
I used 64-kingposition instead of 63-kingposition to access an array from the black prospective.

now I have 32 and 64 bit compile with the same nodecount.
I really need to fill eval function with assert :)
User avatar
Steve Maughan
Posts: 1315
Joined: Wed Mar 08, 2006 8:28 pm
Location: Florida, USA

Re: 64bit compile

Post by Steve Maughan »

Excellent!

Finding a bug like that is like finally getting relief from toothache by having the tooth pulled!

Steve
http://www.chessprogramming.net - Juggernaut & Maverick Chess Engine
elcabesa
Posts: 858
Joined: Sun May 23, 2010 1:32 pm

Re: 64bit compile

Post by elcabesa »

ohhh yes
it looks like the 64 bit compile is stronger too :)
elcabesa
Posts: 858
Joined: Sun May 23, 2010 1:32 pm

Re: 64bit compile

Post by elcabesa »

I have another one question that goes a little out of topic...
where can i find a list of linux compatible engines? I'd like to run tournaments and test vajolet against other engines in linux using cutechess-cli.

can i use wine with cutechess-li under linux and make the windws engine run on linux? o souhld i found a group of linux friendly engines? the new vajolet is in the 2300 elo point range (ccrl 40/40)
phenri
Posts: 284
Joined: Tue Aug 13, 2013 9:44 am

Re: 64bit compile

Post by phenri »

mjlef
Posts: 1494
Joined: Thu Mar 30, 2006 2:08 pm

Re: 64bit compile

Post by mjlef »

I suggest modifying the program to print the node counts at each root move, then see which path had the different node count. Then at the next level along whatever move that was and so on.
Tom Likens
Posts: 303
Joined: Sat Apr 28, 2012 6:18 pm
Location: Austin, TX

Re: 64bit compile

Post by Tom Likens »

elcabesa wrote:I have another one question that goes a little out of topic...
where can i find a list of linux compatible engines? I'd like to run tournaments and test vajolet against other engines in linux using cutechess-cli.

can i use wine with cutechess-li under linux and make the windws engine run on linux? o souhld i found a group of linux friendly engines? the new vajolet is in the 2300 elo point range (ccrl 40/40)
Hello Marco,

There's a Linux version of Djinn available here:

http://webpages.charter.net/tlikens/download.html

Both with and without popcnt are available. Linux is my main (i.e. only) development environment. I cross-compile the Windows version using MingW under wine, and it works really well. Even the profiling/optimization features of gcc work.

BTW, I would *strongly* recommend that you look at compiling your program with Clang 3.4 using the "-fsanitize=address" option. It will catch a large number of these type of bugs.

good luck,
--tom
Adam Hair
Posts: 3226
Joined: Wed May 06, 2009 10:31 pm
Location: Fuquay-Varina, North Carolina

Re: 64bit compile

Post by Adam Hair »

elcabesa wrote:I have another one question that goes a little out of topic...
where can i find a list of linux compatible engines? I'd like to run tournaments and test vajolet against other engines in linux using cutechess-cli.

can i use wine with cutechess-li under linux and make the windws engine run on linux? o souhld i found a group of linux friendly engines? the new vajolet is in the 2300 elo point range (ccrl 40/40)
You can use wine with cutechess under linux for windows engines. I do this regularly.