* 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> |
||
|---|---|---|
| .. | ||
| Dockerfile | ||
| README.md | ||
| intel.Dockerfile | ||
| mpich.Dockerfile | ||
| pi-intel.yaml | ||
| pi-mpich.yaml | ||
| pi.cc | ||
| pi.yaml | ||
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.