Search found 2665 matches

by mcostalba
Mon Jan 14, 2019 5:14 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: compiling stockfish with more options
Replies: 11
Views: 893

Re: compiling stockfish with more options

You could use the 'tune' branch: https://github.com/official-stockfish/Stockfish/tree/tune It has some code to allow automatic tuning of a variable in fishtest changing it's value at every game by means of an UCI option. It has no slowdowns for non const parameters, and a possible small slow down fo...
by mcostalba
Fri Jan 11, 2019 9:41 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Writing bugs
Replies: 66
Views: 4635

Re: Writing bugs

Code: Select all

for (x = engine; x < MAX_MOVES; x += 2)
If x <= MAX_MOVES happens to be correct, then make it wrong fixing the definition somewhere else: it should really be wrong :-)
by mcostalba
Fri Mar 09, 2018 8:40 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: I'm not very happy with the do {} while() statement in C
Replies: 111
Views: 23623

Re: I'm not very happy with the do {} while() statement in C

In other words if one is good at what they do stick to it. And if one is not good at it then modify one's approach to get better. :!: In other word use your brain. Usually it is better than the handbook. If, given 2 pieces of code you are able to tell which is the best one, then this is already a g...
by mcostalba
Thu Mar 01, 2018 4:23 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Reliable speed comparison: some math required
Replies: 33
Views: 7992

Re: Reliable speed comparison: some math required

I have done it ! :-) Finally I was able to enable performance counters on my VMware virtual Linux and run the amazing perf tool. This is the magical command line: sudo perf stat -r 5 -a -B -e cycles:u ./stockfish bench > /dev/null It _counts_ the CPU instructions of a bench run, repeating the measur...
by mcostalba
Wed Feb 28, 2018 2:00 pm
Forum: Computer Chess Club: Tournaments and Matches
Topic: World Computer Chess Championship
Replies: 169
Views: 29549

Re: World Computer Chess Championship

This being said, I miss hanging out with chess programmers. Hi Tord! nice to see your writing again! Chess programmers miss you too....stockfish devs miss you even more :-) Looking at this discussion it seem to me like looking at a living fossil! People talking about winners, competition, rules.......
by mcostalba
Tue Feb 27, 2018 8:53 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Reliable speed comparison: some math required
Replies: 33
Views: 7992

Re: Reliable speed comparison: some math required

What about this one?

http://www.brendangregg.com/perf.html#CPUstatistics

This could be the final weapon! In particular look at the table in the above link:

Code: Select all

5,649,595,479 cycles 

See also https://perf.wiki.kernel.org/index.php/Tutorial
by mcostalba
Tue Feb 27, 2018 1:38 pm
Forum: Computer Chess Club: Tournaments and Matches
Topic: World Computer Chess Championship
Replies: 169
Views: 29549

Re: World Computer Chess Championship

We have take some baby steps toward this with live displays online of the games. This is not an easy thing to do, I am not sure you have the expertise to do this, you need people that eats burgers and HTML for breakfast :-) If I was the chief of your organization I would have _already_ knocked at, ...
by mcostalba
Tue Feb 27, 2018 9:36 am
Forum: Computer Chess Club: Tournaments and Matches
Topic: World Computer Chess Championship
Replies: 169
Views: 29549

Re: World Computer Chess Championship

This can be an open forum. So, lets get started. If the mountain won't come to Muhammad, then Muhammad must go to the mountain Why ICGA does not organize a on-line chess tournament like TCEC? 1. In 2018 this is the way to go: people can enjoy and chat (not only authors or their strict friends) 2. W...
by mcostalba
Tue Feb 27, 2018 9:01 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Reliable speed comparison: some math required
Replies: 33
Views: 7992

Re: Reliable speed comparison: some math required

What about running a longer bench? Same time but allocated on fewer but longer benches?
by mcostalba
Tue Feb 27, 2018 8:37 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Reliable speed comparison: some math required
Replies: 33
Views: 7992

Reliable speed comparison: some math required

I don't have math skills to find a correct answer to this, so I post here for help. The problem is to measure if a non-functional speed optimization (NEW) is faster than current (MASTER): Running a single speed bench test, as everybody knows, gives very noise information, able to detect only the mos...