Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ listen()

void stan::math::mpi_cluster::listen ( )
inline

Switches cluster into listening mode.

That is, for the root process we only flag that the workers are now listening and as such can receive commands while for the non-root processes we enter into a listening state. In the listening state on the non-root processes we wait for broadcasts of mpi_command objects which are initiated on the root using the mpi_broadcast_command function below. Each received mpi_command is executed using the virtual run method.

Definition at line 149 of file mpi_cluster.hpp.