Sign inSign up

mfisherman/openmpi

By mfisherman

Updated 6 months ago

OpenMPI docker image for MPI programs

Image
3

10K+

mfisherman/openmpi repository overview

openmpi

The Docker image openmpi relies on Alpine 3.21.3 and contains Open MPI 5.0.8 (latest). It allows you to build and run your MPI programs in a docker container without the need to install MPICH or Open MPI on your machine.

See the GitHub repository for more information.

Tools

The following tools are installed:

  • Open MPI compiler (mpicc and mpicxx) and mpirun
  • gcc and g++
  • Common developer tools (make, wget, curl, etc.)

How to use

Run the following command:

$ docker run --rm -it -v $(pwd):/project mfisherman/openmpi

It will automatically download the docker image to your system and run it. The argument -it allows you to run the container in interactive mode and will open a shell. Further, the command mounts the directory, from where you run the command above, into the folder /projectof the container. That way you can use your favorite editor to write your code an run mpiccand mpiccxxin the container.

OS/ARCH

The image is built for a majority of Linux architectures, allowing you to run the image even on all Rasperry Pi versions (e.g. as gitlab-runner). The available operating systems and architectures are:

  • linux/amd64
  • linux/arm64

Tag summary

Content type

Image

Digest

sha256:a0895f558

Size

332 MB

Last updated

6 months ago

docker pull mfisherman/openmpi