Sign inSign up

mfisherman/mpich

By mfisherman

Updated about 2 months ago

MPICH docker image for MPI programs

Image
4

10K+

mfisherman/mpich repository overview

mpich

The Docker image mpich relies on Debian Buster (Slim) and contains MPICH 4.2.0 (latest). It allows you to build and run your MPI programs in a docker container without the need to install MPICH or OpenMPI on your machine. The Dockerfile is inspired by nlknguyen, but brings a more up to date base image and is built for a wide range of architectures.

See the GitHub repository for more information.

Tools

The following tools are installed:

  • MPICH 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/mpich

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/arm/v6
  • linux/arm/v7
  • linux/arm64

Tag summary

Content type

Image

Digest

sha256:e0ae2e3d0

Size

336.2 MB

Last updated

about 2 months ago

docker pull mfisherman/mpich