|
5 months ago | |
---|---|---|
examples | 8 months ago | |
images | 11 months ago | |
llllllllllllllllll | 5 months ago | |
llo | 7 months ago | |
test | 6 months ago | |
LICENSE | 11 months ago | |
README.md | 8 months ago | |
index_llllllllllllllllll.yml | 5 months ago | |
index_test.yml | 6 months ago | |
llllllllllllllllll_LLO.zip | 6 months ago | |
llo-index.yml | 7 months ago | |
test_LLO.zip | 6 months ago |
Instances of Ubuntu Linux with MPICH -- portable implementation of Message Passing Interface (MPI) standard. Designed for MPI program development and deployment.
NOTE
Vlabs are reset every night around 02:00!
If you would like to keep your work please refer to “publish”.
Vlabs dont have firewall restrictions BUT the machines are not exposed to the internet.
You share all machines so please be cooperative and discrete.
This is a quickstart guide of howto use this LabInstance to deploy MPI programs
git clone https://git.swarmlab.io:3000/labs/examples-mpi2.git
make all
/home/ubuntu
ubuntu
The host file that contains addresses of connected workers can be created with:
swarmlab-getworkers > /home/ubuntu/invhosts
ssh ubuntu@[IP]
Info: user has sudo privileges without a password
mpicc -o /home/ubuntu/mpi_hello_world examples/mpi_hello_world.c
mpirun -n 10 -f /home/ubuntu/hosts /home/ubuntu/mpi_hello_world
NOTE: copy hello world to all clients
# scp hello wrold to all clients. sudo -u mpi for auto scp connect. see /home/mpi/.ssh
while read -r line;
do
scp /home/ubuntu/mpi_hello_world ubuntu@$line:/home/ubuntu/mpi_hello_world
done < /home/ubuntu/hosts
mkdir /home/ubuntu/directory
put your files and other directories into /home/ubuntu/directory
swarmlab-publish /home/ubuntu/directory
open URL in Browser
MORE INFO
See examples directory
cd examples
make mpi_hello_world
make example ex=squares
...