Starting MPI applications

In order to start a MPI application build as described in the last section, mpiexec(1) has to be used. E.g. if you want to start the executable prog with a maximum rank of 8, the command

  $ mpiexec -np 8 prog [args]

has to be executed. The argument(s) args are passed to each instance of the executable prog. A detailed description of the mpiexec(1) command and its options can be found within the corresponding manual page.

All details discussed in Chapter 3 about spawning and input/output redirection also applies to MPI applications linked against ParaStation MPI. I.e. all the environment variables discussed in ps_environment(7) can be used to control the distribution of processes within the cluster.