IntelĀ® MPI Library Reference Manual for Linux* OS
-n <# of processes> or -np <# of processes>
Use this option to set the number of MPI processes to run with the current arg-set.
Use this option to set the <ENVVAR> environment variable to specified <value> for all MPI processes in the current arg-set.
Use this option to propagate all user environment variables, with the exception of the following variables: $HOSTNAME, $HOST, $HOSTTYPE, $MACHTYPE, $OSTYPE. This is the default setting.
Use this option to propagate all environment variables in the current environment.
Use this option to suppress propagation of any environment variables to the MPI processes in the current arg-set.
-envlist <list of env var names>
Use this option to pass a list of environment variables with their current values. <list of env var names> is a comma separated list of environment variables to be sent to the processes. If this option is used several times in the command line, all variables listed in the arguments are included into one list.
-envexcl <list of env var names>
Use this option to suppress propagation of the listed environment variables to the MPI processes in the current arg-set.
Use this option to specify a particular <nodename> on which to run MPI processes in the current argument set. For example, the following command runs the executable a.out on host host1 only:
$ mpiexec -n 2 -host host1 ./a.out
Use this option to specify the path to the <executable> to run.
Use this option to specify the working directory in which <executable> is to be run in the current arg-set.
Use this option to perform the umask <umask> command for the remote process.