I have trouble running MPI code on cluster and use the following command to run the code and tried it with ip addresses as well.
mpiuser1@comp-asdf-4:~$ mpirun -np 4 -hosts master, slave1 ./myexe
and have following error
mpirun: Error: unknown option "-o"
Type 'mpirun --help' for usage.
i have a cluster of 2 nodes one master and slave and I follow this tutorial http://mpitutorial.com/tutorials/running-an-mpi-cluster-within-a-lan/ to create a cluster. I am using ubuntu (16.04.1), gcc version 5.4.0, openmpi version 3.0.1. The same error reported by other user but he wasn't using the same version of mpi on all cluster nodes and have tried the suggesstions posted here Error while running MPI cluster program in LAN but problem is still there.