marekpiotradamczyk / bestiazwroclawia

7 stars 7 forks source link

Multithreaded search. #30

Open mateusz2173 opened 4 months ago

mateusz2173 commented 4 months ago

We want to enable simple multithreaded search as follows:

Let's say N = number of threads

The main reason we do that is additional threads will populate transposition table making main thread search quicker.

This is not ideal utilization of multiple threads but it is good enough for us for now.

mateusz2173 commented 4 months ago

Should be done after #17 and #19

DomiKoPL commented 4 months ago

Is this called Lazy SMP? https://www.chessprogramming.org/Lazy_SMP

Gustav2137 commented 4 months ago

Lazy SMP has different depths for different threads.

mateusz2173 commented 4 months ago

It's almost the same.

LazySMP afaik runs from different depths to enforce more "randomness" in populating TT

We could have lazysmp immediately if anyone decides what I described in original post is too easy :P i believe lazysmp might be better from what I suggested

DomiKoPL commented 4 months ago

I'm fine with a simpler solution. It would be even better to actually implement it first and then benchmark how much we gained from "real" LazySMP