You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
test2 ec5503d929 info 5 years ago
examples info 5 years ago
images info 5 years ago
LICENSE Initial commit 5 years ago
README.md info 5 years ago

README.md

mpi & Open JDK !

Instances of Ubuntu Linux with MPICH -- portable implementation of Message Passing Interface (MPI) standard. Designed for MPI program development and deployment.

LabInstance mpi2

alt text

inspired by NLKNguyen

Quickstart

This is a quickstart guide of howto use this LabInstance to deploy MPI programs

HowTo use it

  • On step "1. Select Git Repo" see here choose "examples-mpi"

  • On step "2. Select swarm service" choose "ondemand_mpi2_master"

  • On step "3. Save Lab Instance" put the name you want

  • Save it.

Your are ready to run your fresh LabInstance see here

Default Configuration

  • Working Directory

/ubuntu

  • Default user for MPI

ubuntu

  • Buid-in Web Server

INFO

Lab_Instance Name = The name you give here

You can also find here

Usage:

touch /var/www/html/[name]/file


  • The host file that contains addresses of connected workers can be created with:

get_hosts > /ubuntu/hosts

  • Compile

mpicc -o /ubuntu/mpi_hello_world examples/mpi_hello_world.c

  • run the MPI hello world program

sudo -u mpi mpirun -n 10 -f /ubuntu/hosts /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 
   sudo -u mpi scp /ubuntu/mpi_hello_world ubuntu@$line:/ubuntu/mpi_hello_world
done < /ubuntu/hosts


MORE INFO

See swarmlab and examples directory