Search found 2668 matches

by mcostalba
Tue Sep 02, 2008 11:56 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Glaurung 2.1 under git
Replies: 2
Views: 1182

Re: Glaurung 2.1 under git

Hi Tord, I am quite new to chess programming. I have modified the code _only_ to better uderstand it. I have tried to keep the same functionality as I will keep to do also in the future, at least until I don't feel myself confident enough to try something different. The UCI interface is the less che...
by mcostalba
Mon Sep 01, 2008 7:34 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: building glaurung2.1 from empty code project
Replies: 23
Views: 5683

Re: building glaurung2.1 from empty code project

IMHO the only real way to get fast code is profiling. All the other stuff is guessing / hand waving. Sorry but I couldn't resist :) P.S: I agree that C++ is prone to hidden copies, on the other side can greatly simplify a lot of low level details. P.P.S: The difference between C++ and C is not becau...
by mcostalba
Mon Sep 01, 2008 6:57 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Glaurung 2.1 under git
Replies: 2
Views: 1182

Glaurung 2.1 under git

Git is a distributed version control system focused on speed, effectivity and real-world usability. As a little showcase I have cloned Glaurung 2.1, modified a bit and pushed on http://repo.or.cz/w/glaurung_clone.git (a free git hosting site) It took me less then 10 minutes to publish the code. Well...
by mcostalba
Fri Aug 01, 2008 10:42 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Monte carlo on a NVIDIA GPU ?
Replies: 16
Views: 5613

Re: Monte carlo on a NVIDIA GPU ?

There are lots of issues. Hashing. Done at every node multiple times (pawn hash, normal hash, some use others like king safety hash, etc.) Repetition list, board position, move lists, locks (a real killer on gpus) to synchronize updates. And the splitting operation itself is significant due to the ...
by mcostalba
Fri Aug 01, 2008 10:12 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Monte carlo on a NVIDIA GPU ?
Replies: 16
Views: 5613

Re: Monte carlo on a NVIDIA GPU ?

They have some neat features, but some issues as well if you want to use multiple GPUs to distribute a tree search, as the communication is a real issue. Currently a multi-thread / multi-process approach is used in chess engines to divide the search job among different CPU cores. Is the data exchan...
by mcostalba
Fri Aug 01, 2008 6:52 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Monte carlo on a NVIDIA GPU ?
Replies: 16
Views: 5613

Re: Monte carlo on a NVIDIA GPU ?

Harald Johnsen wrote:
A gpu is not what you think it is.

I have just found this interesting link:

http://www.gpuchess.com/

It seems that the idea of CUDA for a chess engine has already been implemented ! well it's just few months old actually !
by mcostalba
Fri Aug 01, 2008 8:50 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Monte carlo on a NVIDIA GPU ?
Replies: 16
Views: 5613

Re: Monte carlo on a NVIDIA GPU ?

A gpu is not what you think it is. There is no processor or threads. You should see it as simd, ie your pixel shader code will be executed in parallel, input data is one frame buffer, output data is another frame buffer, textures can contains all kind of parameters. Current programming model for la...
by mcostalba
Fri Aug 01, 2008 7:17 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Monte carlo on a NVIDIA GPU ?
Replies: 16
Views: 5613

Monte carlo on a NVIDIA GPU ?

Nowadays you can get a super powerful massive parallel monster for few hundred bucks: a video card GPU These toys can be programmed in C language (well, very similar to C actually) for tasks not only related to video applications. As example the latest NVIDIA GPU, the GTX 280 sports 240 processors!!...