mpi-operator/examples/v2beta1/pi
Yuki Iwai ef9d049daa
Introduce debian bookworm (#661)
* Upgrade debian version to bookworm

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

* Add obviously verifications if all Ranks reached final phase in the pi example

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>

---------

Signed-off-by: Yuki Iwai <yuki.iwai.tz@gmail.com>
2024-10-15 15:25:17 +00:00
..
Dockerfile MPICH support (#562) 2023-06-16 17:57:36 +00:00
README.md MPICH support (#562) 2023-06-16 17:57:36 +00:00
intel.Dockerfile MPICH support (#562) 2023-06-16 17:57:36 +00:00
mpich.Dockerfile MPICH support (#562) 2023-06-16 17:57:36 +00:00
pi-intel.yaml Organize examples folder by api compatibility (#451) 2022-02-07 23:42:42 +00:00
pi-mpich.yaml MPICH support (#562) 2023-06-16 17:57:36 +00:00
pi.cc Introduce debian bookworm (#661) 2024-10-15 15:25:17 +00:00
pi.yaml Add versioned labels to images (#545) 2023-04-05 18:56:02 +00:00

README.md

Pure MPI example

This example shows to run a pure MPI application.

The program prints some basic information about the workers. Then, it calculates an approximate value for pi.

How to build Image

For OpenMPI:

docker build -t mpi-pi .

For Intel MPI:

docker build -t mpi-pi . -f intel.Dockerfile

For MPICH:

docker build -t mpi-pi . -f mpich.Dockerfile

Create MPIJob

Modify pi.yaml (for OpenMPI), pi-intel.yaml (for Intel MPI) or pi-mpich.yaml (for MPICH) to set up the image name from your own registry.

Then, run:

kubectl create -f pi.yaml

The YAML shows how to run the binaries as a non-root user.