# hybri-mpi ! Instances of Ubuntu Linux with [MPICH](https://www.mpich.org) -- portable implementation of Message Passing Interface (MPI) standard. Designed for MPI program development and deployment. ## LabInstance mpi2 ![alt text](images/swarmlab-network.png "") ## Quickstart This is a quickstart guide of howto use this *LabInstance to deploy MPI programs* ### HowTo use it ### Default Configuration - Working Directory > /project - Default user > docker - Default password > docker - Default password4root > pass #### Find lab workers > ifconfig > > nmap -sP 172.130.0.0/24 > > or > > /project/bin/swarmlab-nmap #### connect to workers ```bash ssh docker@[IP] ``` #### Create hosts file ```bash /project/bin/swarmlab-nmap /project/bin/swarmlab-nmap > /project/hosts ``` #### Compile > mpicc -o /project/mpi_hello_world examples/mpi_hello_world.c #### run the MPI hello world program > mpirun -n 10 -f /project/hosts /project/mpi_hello_world --- **NOTE:** copy files to all clients ```bash while read -r line; do scp /project/file docker@$line:/some_dir/file done < /project/hosts ``` --- --- **MORE INFO** See examples directory ```bash cd examples make mpi_hello_world make example ex=squares ... ``` ---