Move perft out of search

This splits the logic of search and perft. Before, threads were started,
which then constructed a search object, which then started perft and
returned immediately. All of this is unnecessary, instead uci should
start perft right away.

closes https://github.com/official-stockfish/Stockfish/pull/5008

No functional change
This commit is contained in:
Disservin
2024-01-14 00:21:46 +01:00
parent 3d49a99aaf
commit 1dfbde2d10
4 changed files with 77 additions and 38 deletions

View File

@@ -63,7 +63,7 @@ HEADERS = benchmark.h bitboard.h evaluate.h misc.h movegen.h movepick.h \
nnue/layers/sqr_clipped_relu.h nnue/nnue_accumulator.h nnue/nnue_architecture.h \
nnue/nnue_common.h nnue/nnue_feature_transformer.h position.h \
search.h syzygy/tbprobe.h thread.h thread_win32_osx.h timeman.h \
tt.h tune.h types.h uci.h ucioption.h
tt.h tune.h types.h uci.h ucioption.h perft.h
OBJS = $(notdir $(SRCS:.cpp=.o))