Skip to content

phanchieta/OpenMPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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

About

A repository for OpenMPI builds

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published