Search found 369 matches

by phhnguyen
Tue Feb 01, 2011 12:01 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Have Crafty's threads never gone to sleep?
Replies: 10
Views: 1572

Re: Have Crafty's threads never gone to sleep?

Still confuse. For n cores, how many threads do you use for searching? n or n-1 or less? Just worry about "spare" power for io thread (to read commands from xboard) and for OS system. Should we reserve 1 core for them (io thread and system)? (If yes, it seems that 2 cores system is not very efficien...
by phhnguyen
Mon Jan 31, 2011 3:11 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Have Crafty's threads never gone to sleep?
Replies: 10
Views: 1572

Re: Have Crafty's threads never gone to sleep?

How can you solve the problem of non-ponder mode? Delete all threads?
by phhnguyen
Mon Jan 31, 2011 2:32 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Have Crafty's threads never gone to sleep?
Replies: 10
Views: 1572

Have Crafty's threads never gone to sleep?

My smp program is still so buggy and one of the problems is when its threads go to sleep (by calling function WaitForSingleObject) and then I have to wake them up later (sometimes they sleep forever, sometime they wake up suddenly :( ). Thus I take a look to Crafty code and feel amazing to see its t...
by phhnguyen
Thu Jan 27, 2011 10:50 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Programming language features for computer chess
Replies: 28
Views: 7647

Re: Programming language features for computer chess

For chess programming I have switched back from C++ to C. And still I base my data structures partially on two post boxes - not at all using bit boards, now having a pure monochrome approach, thus simplifying testing and maintaining of chess routines. Very interesting, I usually check reasons why I...
by phhnguyen
Sat Jan 15, 2011 4:57 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Hints for programming on system 64 bit?
Replies: 5
Views: 875

Hints for programming on system 64 bit?

I still works on both system 32 and 64 bit, but will soon migrate completely to 64 bit. I mainly use Win 7 64 bit + Visual studio and Ubuntu 64 bit + gcc. Just few "basic" questions but very important for designing a program for 64 bit: - Which integer is faster: int (32 bit) or int64_t? Or should I...
by phhnguyen
Mon Jan 10, 2011 11:36 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Using SEE to prune in main search
Replies: 37
Views: 6766

Re: Using SEE to prune in main search

Having a look at the latest stockfish, they are using SEE in a different way, to help prune non-captures in the main search. Have not studied stockfish yet, but this makes me so confuse. Can you or someone explain how stockfish applies SEE to non-captures? Or is that not "original" SEE (which alway...
by phhnguyen
Mon Jan 10, 2011 8:56 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Using SEE to prune in main search
Replies: 37
Views: 6766

Re: Using SEE to prune in main search

Having a look at the latest stockfish, they are using SEE in a different way, to help prune non-captures in the main search. Have not studied stockfish yet, but this makes me so confuse. Can you or someone explain how stockfish applies SEE to non-captures? Or is that not "original" SEE (which alway...
by phhnguyen
Mon Dec 06, 2010 12:36 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Thread management / organization in parallel processing?
Replies: 1
Views: 625

Thread management / organization in parallel processing?

Hi all, I have been redesigning my program and now working on thread management. Just some basic questions which need your suggestions: Suppose my computer has n processors (cores) and I always need to create one thread for common tasks such as listening keyboard and starting / controlling other thr...
by phhnguyen
Tue Sep 21, 2010 8:22 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Need help on YBWC algorithm
Replies: 14
Views: 2216

Re: Another question

Hi Bob, I need you to help to make clear an implementation detail. When studying Crafty, I see the code of search as the following: for (all moves) { ... Thread(tree); } Update search result; return alpha; As I understand, you still need the main (master) thread to come back from Thread(tree) to upd...
by phhnguyen
Sat Sep 18, 2010 2:55 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Most important eval elements
Replies: 47
Views: 10645

Re: Most important eval elements

Hi all, I've been looking again at my eval. It got me thinking, what are the most important things to include in an evaluation function, and what are they worth, ELO wise? I appreciate this isn't an exact science. IMO, the most important thing is very clear and simple which programmers usually forg...