Laskos wrote:bob wrote:
Regardless of urban legend, I have NEVER seen one example where using hyper threading improves the performance of a chess engine. Not a single one.
It is you spreading the urban legend that HT doesn't work for chess engines. On an i7 2600 me and others had unequivocal beneficial results of HT.
http://talkchess.com/forum/viewtopic.ph ... 1&start=66
I remain unconvinced. And fortunately, I have run a LOT of tests, not just some tactical positions. Did you disable turbo-boost? Do you REALLY have a parallel search that has little or no overhead, which is required to get a speedup from the relatively modest improvements HT gives.
Here's a few quick comparisons between mt=2 and mt=4 on my macbook dual-core i7:
log.001: time=11.68 mat=0 n=101057466 fh=95% nps=8.7M
log.002: time=12.71 mat=0 n=139025987 fh=95% nps=10.9M
First run is always mt=2, second is mt=4.
NPS goes up, time to same depth gets longer, tree size gets larger.
A few others, just for fun. I normally run about 300 positions, and for 4 threads, I run each test at least 8 times and average. For 2 threads I run at least 4 times and average.
log.001: time=15.79 mat=0 n=128285112 fh=93% nps=8.1M
log.002: time=21.87 mat=0 n=211812947 fh=93% nps=9.7M
log.001: time=48.39 mat=0 n=348924409 fh=93% nps=7.2M
log.002: time=40.65 mat=0 n=358124220 fh=92% nps=8.8M
log.001: time=9.99 mat=0 n=110069531 fh=94% nps=11.0M
log.002: time=12.25 mat=0 n=149579319 fh=93% nps=12.2M
log.001: time=26.42 mat=0 n=223055725 fh=93% nps=8.4M
log.002: time=27.37 mat=0 n=280907999 fh=93% nps=10.3M
What I am citing is NOT "urban legend". It is something that is well-known and well-understood by those that have actually spent time developing a parallel search and testing it for improvements.
BTW, searching tactical positions is not a valid way of testing parallel search. The key there is that the best move is often ordered later in the list by the very nature of the position (the best move is usually some sort of 'surprise'. This plays right into the hands of a parallel search that by its very nature tends to do better when move ordering is sub-optimal.