-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (31 loc) · 913 Bytes
/
Dockerfile
File metadata and controls
45 lines (31 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM mpioperator/openmpi-builder:0.3.0 as builder
# set contextual labels
LABEL org.opencontainers.image.source="https://github.com/crambor/hpl"
LABEL org.opencontainers.image.description="Container Image for High Performance LINPACK"
# include dependencies
RUN apt update && apt install -y \
wget \
build-essential \
gcc \
libopenblas-dev \
libopenmpi-dev
# download HPL
RUN wget https://www.netlib.org/benchmark/hpl/hpl-2.3.tar.gz && \
tar -xzf hpl-2.3.tar.gz && \
mv hpl-2.3 hpl
# compile HPL
WORKDIR "hpl"
COPY "Make.Linux_Intel64" .
RUN ./configure && make arch=intel64 -j$(nproc)
FROM mpioperator/openmpi:0.3.0
# include dependencies
RUN apt update && apt install -y \
wget \
build-essential \
gcc \
libopenblas-dev \
libopenmpi-dev
COPY --from=builder /hpl /home/mpiuser/hpl
WORKDIR "/home/mpiuser/hpl/testing"
COPY HPL.dat .
CMD ["/bin/bash"]