IanO wrote:I found that Gull kept crashing with a divide-by-zero error within ten moves or so. I had to add this line to send_best_move() before calculating nps in order to complete a game:I also find that the myriad of compile options is no faster than just -Ofast.Code: Select all
if (time_used == 0) time_used = 1;
On my machine - clang -Ofast -mpopcnt
Code: Select all
info score cp 26 time 20916 nodes 38398335 nps 1835835 pv e2e4 e7e6 d2d4 d7d5 e4d5 e6d5 g1f3 g8f6 f1d3 f8d6 e1g1 e8g8 b1c3 c7c6 f1e1 h7h6 a2a3 b8d7 f3e5 c6c5
bestmove e2e4 ponder e7e6
Code: Select all
info score cp 26 time 18973 nodes 38398335 nps 2023840 pv e2e4 e7e6 d2d4 d7d5 e4d5 e6d5 g1f3 g8f6 f1d3 f8d6 e1g1 e8g8 b1c3 c7c6 f1e1 h7h6 a2a3 b8d7 f3e5 c6c5
bestmove e2e4 ponder e7e6Code: Select all
info score cp 26 time 19211 nodes 38398335 nps 1998768 pv e2e4 e7e6 d2d4 d7d5 e4d5 e6d5 g1f3 g8f6 f1d3 f8d6 e1g1 e8g8 b1c3 c7c6 f1e1 h7h6 a2a3 b8d7 f3e5 c6c5
bestmove e2e4 ponder e7e6gcc -pipe -flto -Os -mpopcnt -Ofast -O3 gull.cpp -o Gull
Code: Select all
info score cp 26 time 18837 nodes 38398335 nps 2038452 pv e2e4 e7e6 d2d4 d7d5 e4d5 e6d5 g1f3 g8f6 f1d3 f8d6 e1g1 e8g8 b1c3 c7c6 f1e1 h7h6 a2a3 b8d7 f3e5 c6c5
bestmove e2e4 ponder e7e6
