Skip to content

ContainerSolutions/docker-openmpi

 
 

Repository files navigation

docker-openmpi

Build Status

base package for docker cluster with openmpi

with docker compose

  1. set up docker-compose
  2. generate ssh public key pair
    $ ./keygen.sh
    
  3. build and deploy MPI cluster
    $ docker-compose build
    $ docker-compose up --scale node=4 -d
    
  4. login to master node
    $ ./connect-master.sh
    
  5. run mpi program from master node
    $ ./make-hostfile.sh
    $ mpirun -np 16 hostname
    252f9f5abc18
    252f9f5abc18
    252f9f5abc18
    252f9f5abc18
    fa00f144c7be
    0ebd38ff982e
    fa00f144c7be
    0ebd38ff982e
    fa00f144c7be
    0ebd38ff982e
    fa00f144c7be
    0ebd38ff982e
    4c1364ddf9d9
    4c1364ddf9d9
    4c1364ddf9d9
    4c1364ddf9d9
    
  6. compile an application
    cd /mpi-app/hello-world/
    make 
    
  7. run application
    mpirun -np 16 /mpi-app/hello-world/mpi_hello_world
    
  8. shutdown cluster
    $ docker-compose down -v
    

with swarm

with kubernetes

  1. set up kubernetes

  2. start cluster

    $ kubectl create -f mpi-deployment.yml
    
  3. login to master node

  4. run mpi program

  5. shutdown cluster

About

base package for docker cluster with openmpi

Resources

Stars

0 stars

Watchers

5 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C 71.0%
  • Shell 20.6%
  • Makefile 8.4%