Skip to content

Commit

Permalink
Introduce debian bookworm (#661)
Browse files Browse the repository at this point in the history
* Upgrade debian version to bookworm

Signed-off-by: Yuki Iwai <[email protected]>

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

Signed-off-by: Yuki Iwai <[email protected]>

---------

Signed-off-by: Yuki Iwai <[email protected]>
  • Loading branch information
tenzen-y authored Oct 15, 2024
1 parent 5391040 commit ef9d049
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:bullseye
FROM debian:bookworm

ARG port=2222

Expand Down
4 changes: 2 additions & 2 deletions build/base/intel-builder.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM bash AS downloader

RUN wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB -O key.PUB

FROM debian:bullseye
FROM debian:bookworm

COPY --from=downloader key.PUB /tmp/key.PUB

Expand All @@ -16,7 +16,7 @@ RUN apt update \
&& apt autoremove -y \
&& apt update \
&& apt install -y --no-install-recommends \
libstdc++-10-dev binutils procps clang \
libstdc++-12-dev binutils procps clang \
intel-oneapi-compiler-dpcpp-cpp \
intel-oneapi-mpi-devel \
&& rm -rf /var/lib/apt/lists/*
Expand Down
2 changes: 1 addition & 1 deletion build/base/mpich-builder.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:bullseye as builder
FROM debian:bookworm as builder

RUN apt update \
&& apt install -y --no-install-recommends \
Expand Down
2 changes: 1 addition & 1 deletion build/base/openmpi-builder.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:bullseye as builder
FROM debian:bookworm as builder

RUN apt update \
&& apt install -y --no-install-recommends \
Expand Down
1 change: 1 addition & 0 deletions examples/v2beta1/pi/pi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ int main(int argc, char *argv[]) {
double pi = 4 * (double)total_count / (double)(worker_tests) / (double)(workers);
printf("pi is approximately %.16lf\n", pi);
}
MPI_Barrier(MPI_COMM_WORLD);
MPI_Finalize();
return 0;
}

0 comments on commit ef9d049

Please sign in to comment.