= Use mpirun with ssh hostfile =
See # https://www.open-mpi.org/faq/?category=running#mpirun-hostfile# https://www.open-mpi.org/faq/?category=rsh# https://docs.oracle.com/cd/E19923-01/820-6793-10/ExecutingBatchPrograms.html
We have the 3 machines '''bax minima elvis'''.<br>
<source lang="bash">
cat << EOF > relax_hosts
localhost slots=3 max-slots=4
bax slots=3 max-slots=4
minima slots=3 max-slots=4
mpirun --report-bindings -np 1 --host localhost uptime
mpirun --report-bindings -np 2 --host tomat uptime
mpirun --report-bindings -np 4 -mca plm_rsh_agent ssh --hostfile relax_hosts uptime
</source>