GithubHelp home page GithubHelp logo

mpi-deploy's Introduction

mpi-deploy

Open MPI and Singularity deployment scripts.

Confgure and install

Cloning

First, log-in to your node that will be the manager. You can then clone this repository and cd into it:

ssh USER@MANAGER_IP
git clone https://github.com/ltetrel/mpi-deploy
cd mpi-deploy

Hosts

Add all the hosts (manager and worker IP) into the list_hosts file at the root of this repo, the first line should be the manager IP.

Install

Still in the manager node, run ./install_manager.bash. This will configure a nfs storage for all nodes, install singularity and Open MPI on the manager machine. To configure and install all workers, simply run ./install_workers.bash.

running mpi

Even after adding mpi into the path (in the .bashrc), the system still has trouble to find it. To fix that, specify where it relies on the host(s) using the --prefix.

If you are using a supported resource manager (like SLURM), Open MPI will get the slot information from it. In the other case you will need to maually add the nodes with --host (or inside a file with --hostfile) and specify the number of available slots.

For example, you can run the hello-world script that is provided in this repo:

mpirun --prefix $HOME/.local -np 20 --host 192.168.2.1:${NCPU_HOST_1},192.168.2.2:${NCPU_HOST_2} /dat/hello-world_mpi.bash

If you want to check the workload, use /dat/test_mpi.bash. It will compute the hash from a random 100MB file. To test singularity, you can use /dat/hello-world_singularity.bash.

Going further

Check the Open MPI tutorials if you are curious.

mpi-deploy's People

Contributors

ltetrel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.