Heterogeneous Systems and Jobs

All clusters are not homogeneous. All jobs are not homogeneous. The Intel® MPI Library is able to run multiple sets of commands and arguments in one command line through two different methods.

The easiest option for running multiple commands in two methods is by creating a configuration file and defining the -configfile option. A configuration file contains a set of arguments to mpirun, one group per line.

-n 1 –host node1 ./io <io_args>

-n 4 –host node2 ./compute <compute_args_1>

-n 4 –host node3 ./compute <compute_args_2>

Alternatively, a set of options can be passed on the command line by separating each group with ":".

mpirun –n 1 –host node1 ./io <io_args> : -n 4 –host node2 ./compute <compute_args_1> : -n 4 –host node3 ./compute <compute_args_2>

When a process is launched, the working directory will be set to the working directory of the machine where the job was launched. To change this, use the -wdir <path>.

Use –env <var> <value> to set an environment variable to a value for only one process group. Using –genv instead will apply the environment variable to all process groups. By default, all environment variables are propagated from the environment at launch.