Search found 135 matches

by Patrice Duhamel
Sun Oct 01, 2017 9:35 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Compilation problems for ARM
Replies: 3
Views: 885

Re: Compilation problems for ARM

That means it is unlikely to run under Android 5.0 because PIE is mandatory, but only supported with API level 16 or higher. Btw., your NDK is a bit outdated, r15b is available. I found the problem, I forgot the option to compile with -fPIE -pie, now it works. I see that Android NDK have a cmake to...
by Patrice Duhamel
Sat Sep 30, 2017 10:59 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Compilation problems for ARM
Replies: 3
Views: 885

Compilation problems for ARM

Someone reported that Cheese 1.9.1 ARM 32 bits (pie or not pie) doesn't run on Android, but the 64 bit version and previous versions work. I don't understand the problem, for both version I used Android Cmake toolchain, with Android NDK r13b. https://github.com/taka-no-me/android-cmake I compile for...
by Patrice Duhamel
Sat Sep 16, 2017 10:32 am
Forum: Computer Chess Club: Tournaments and Matches
Topic: Swiss Tournament. Edition IV
Replies: 7
Views: 1429

Re: Swiss Tournament. Edition IV

Nice tournament. :)

If it's not too late you can use Cheese 1.9.1.
by Patrice Duhamel
Sat Sep 16, 2017 10:29 am
Forum: Computer Chess Club: General Topics
Topic: Cheese 1.9.1
Replies: 3
Views: 1057

Cheese 1.9.1

I released Cheese 1.9.1 to fix a problem with illegal moves played in rare cases when using FEN for start positions. http://cheesechess.free.fr/en/download.html Now I print an error message when receiving illegal moves from the GUI. This should never happen, but the message will help to find eventua...
by Patrice Duhamel
Tue Aug 29, 2017 4:40 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: YBWC implementation questions
Replies: 6
Views: 1334

Re: YBWC implementation questions

jdart wrote: You want it in the thread stack memory, because of the "first touch" rule (the first access to the memory causes the page to be allocated in the memory local to the thread that is accessing it). In a NUMA system locality is important.
Thanks for your help.

I will use the thread stack memory.
by Patrice Duhamel
Mon Aug 28, 2017 4:39 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: YBWC implementation questions
Replies: 6
Views: 1334

Re: YBWC implementation questions

I have a Search class, one per thread. That contains the stack. Sorry I didn't explain my problem very well. In Arasan, before calling your searchSMP() function, you allocate a NodeInfo array (in the thread stack memory). If I want to allocate all data for the NodeInfo arrays outside of the thread ...
by Patrice Duhamel
Sun Aug 27, 2017 6:16 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: YBWC implementation questions
Replies: 6
Views: 1334

Re: YBWC implementation questions

Each searching thread has its own stack that maintains move history. I need only one stack for move history by thread, or one stack for move history at each new thread assigned to a split point ? I have implemented this but I am not sure my code is a model of clarity. It has some comments that migh...
by Patrice Duhamel
Sat Aug 26, 2017 9:02 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: YBWC implementation questions
Replies: 6
Views: 1334

YBWC implementation questions

I am trying to add the YBWC in my engine, and I have a problem with data structures. I have a global lockless hash table, killers, history and pawn hash table will be declared for each threads, but I don't understand how many elements I need to allocate for board positions, moves lists, pv, and repe...
by Patrice Duhamel
Sat Aug 05, 2017 1:02 pm
Forum: Computer Chess Club: General Topics
Topic: search bug of stockfish and many programs
Replies: 69
Views: 10333

Re: search bug of stockfish and many programs

Cheese 1.8 find draw at depth 100 : 100/99 00:00 5 494 534 6 902 680 0,00 Kb2 Kb8 Be3 Ka8 Kc3 Kb8 Bd4 Ka8 Kd3 Kb8 Ke4 Ka8 Be3 Kb8 Kd4 Ka8 Kc4 Kb8 Bd4 Ka8 Kc3 Kb8 Kd3 Ka8 Bc3 Kb8 Ke4 Ka8 Bd4 Kb8 Kf3 Ka8 Ke3 Kb8 Kf4 Ka8 Bg1 Kb8 Ke4 Ka8 Kd3 Kb8 Kc3 Ka8 Kb2 Kb8 Bh2 Ka8 Bf4 Kb8 Ka3 Ka8 Bc1 Kb8 Be3 Ka8 Bd...
by Patrice Duhamel
Wed Jul 19, 2017 5:47 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Move list in stack vs heap ?
Replies: 16
Views: 3146

Re: Move list in stack vs heap ?

AlvaroBegue wrote: You can try using a tool like Valgrind to see where you might be reading uninitialized memory.
The Hash move was not initialized.
Now I have the same result and same speed for the 2 versions.