Code Monkey home page Code Monkey logo

openmpi's Introduction

OpenMPI

A repository for OpenMPI builds

Use either RPM or Docker to deploy

Docker

sudo yum install docker sudo systemctl start docker

Install HPCCM by following the instructions on the HPCCM GitHub repository: https://github.com/NVIDIA/hpc-container-maker

Navigate to the 'Container' folder in this repository

sudo docker build -t openmpi .

Once the installation process is done, run:

sudo docker run -it --rm --net=host openmpi

Inside the container environment, you can compile the sample program with:

mpicc -o mpi_hello_world mpi_hello_world.c

And then run with:

mpirun -n 4 --allow-run-as-root ./mpi_hello_world

RPM (WIP)

Steps taken:

Install necessary software:

sudo yum install rpm-build rpmdevtools

Build directory structure: rpmdev-setuptree

Create a new Spec file: cd ~/rpmbuild/SPECS rpmdev-newspec openmpi.spec

Build the RPM with: rpmbuild -ba ~/rpmbuild/SPECS/openmpi.spec

To add this repository to your operating system, you need to create a new file called openmpi.repo in the /etc/yum.repos.d/ directory with the following contents:

[openmpi]

name=OpenMPI

baseurl=https://raw.githubusercontent.com/phanchieta/OpenMPI/tree/main/RPM/rpmbuild/RPMS/

enabled=1

gpgcheck=0

openmpi's People

Contributors

phanchieta avatar

Watchers

 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.