I am running a python script that analyzes a large batch of PGN games (each of ~5,000 games) across and exports the games evaluations. It calls Stockfish 14 to analyze each game at depth 20. **[EDIT: I've since read that newer versions of Stockfish can actually take LONGER to reach the same depth as older versions, because they have a wider search and thus more nodes per second. So I am considering setting a position time limit rather than depth limit.] **I am using a virtual machine with 32 vCPUs and 64GB RAM but processing is slow (though
htop claims it is using 99% of CPU%). I haven't modified any Stockfish settings since installing.
- What parameters should I set to minimize the processing time?
- How can I change these settings so that they will be recognized by the call from python-chess? The relevant lines of the python code are:
engine = chess.engine.SimpleEngine.popen_uci(stockfish) engine_depth = 20 def evaluate_game(game, engine, limit=chess.engine.Limit(depth=engine_depth)): board = game.board() info = engine.analyse(board, limit=limit)