nps command
Posted: 18 Oct 2009, 08:43
I am trying to implement nps but I am a bit confused. The protocol says
nps NODE_RATE
The engine should not use wall-clock time to make its timing decisions, but an own internal time measure based on the number of nodes it has searched (and will report as "thinking output", see section 10), converted to seconds through dividing by the given NODE_RATE. Example: after receiving the commands "st 8" and "nps 10000", the engine should never use more that 80,000 nodes in the search for any move. In this mode, the engine should report user CPU time used (in its thinking output), rather than wall-clock time. This even holds if NODE_RATE is given as 0, but in that case it should also use the user CPU time for its timing decisions. The effect of an "nps" command should persist until the next "new" command.
Red: What does exactly mean user CPU time used?
is in this case "user CPU time used" == (nodes_used / NODE_RATE) ?
Blue: What is the actual spirit and meaning of nps 0? disabling it? If the previous case is correct, the "user CPU time used" is infinite.
Miguel
nps NODE_RATE
The engine should not use wall-clock time to make its timing decisions, but an own internal time measure based on the number of nodes it has searched (and will report as "thinking output", see section 10), converted to seconds through dividing by the given NODE_RATE. Example: after receiving the commands "st 8" and "nps 10000", the engine should never use more that 80,000 nodes in the search for any move. In this mode, the engine should report user CPU time used (in its thinking output), rather than wall-clock time. This even holds if NODE_RATE is given as 0, but in that case it should also use the user CPU time for its timing decisions. The effect of an "nps" command should persist until the next "new" command.
Red: What does exactly mean user CPU time used?
is in this case "user CPU time used" == (nodes_used / NODE_RATE) ?
Blue: What is the actual spirit and meaning of nps 0? disabling it? If the previous case is correct, the "user CPU time used" is infinite.
Miguel