This repository has been archived by the owner on Oct 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.clang-mpich-dev
252 lines (232 loc) · 8.25 KB
/
Dockerfile.clang-mpich-dev
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
FROM ubuntu:20.04
RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
apt-utils \
build-essential \
gnupg2 && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
bc \
bison \
csh \
curl \
file \
flex \
ksh \
less \
libboost-thread-dev \
libcurl4-openssl-dev \
libexpat1-dev \
libgmp-dev \
libmpfr-dev \
libncurses-dev \
libssl-dev \
libx11-dev \
libxml2-dev \
lsb-release \
man-db \
nano \
openssh-server \
screen \
swig \
tcl \
tcsh \
time \
tk \
unzip \
wget \
wish && \
rm -rf /var/lib/apt/lists/*
# GNU compiler
RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
g++-9 \
gcc-9 \
gfortran-9 && \
rm -rf /var/lib/apt/lists/*
RUN update-alternatives --install /usr/bin/g++ g++ $(which g++-9) 30 && \
update-alternatives --install /usr/bin/gcc gcc $(which gcc-9) 30 && \
update-alternatives --install /usr/bin/gcov gcov $(which gcov-9) 30 && \
update-alternatives --install /usr/bin/gfortran gfortran $(which gfortran-9) 30
# LLVM compiler
RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
clang-8 \
libomp-8-dev && \
rm -rf /var/lib/apt/lists/*
RUN update-alternatives --install /usr/bin/clang clang $(which clang-8) 30 && \
update-alternatives --install /usr/bin/clang++ clang++ $(which clang++-8) 30
# CMake version 3.19.2
RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
make \
wget && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp https://cmake.org/files/v3.19/cmake-3.19.2-Linux-x86_64.sh && \
mkdir -p /usr/local && \
/bin/sh /var/tmp/cmake-3.19.2-Linux-x86_64.sh --prefix=/usr/local --skip-license && \
rm -rf /var/tmp/cmake-3.19.2-Linux-x86_64.sh
ENV PATH=/usr/local/bin:$PATH
RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
doxygen \
emacs \
git \
git-flow \
graphviz \
imagemagick \
lynx \
nedit \
tex4ht \
texinfo \
texlive-latex-recommended \
vim && \
rm -rf /var/lib/apt/lists/*
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends git-lfs && \
git lfs install --skip-repo
RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
autoconf \
clang-tidy \
ddd \
gdb \
pkg-config \
valgrind && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
python3-dev \
python3-pip \
python3-scipy \
python3-yaml && \
rm -rf /var/lib/apt/lists/*
RUN ln -s /usr/bin/python3 /usr/bin/python
# OFED
RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends -t focal \
dapl2-utils \
ibutils \
ibverbs-providers \
ibverbs-utils \
infiniband-diags \
libdapl-dev \
libdapl2 \
libibmad-dev \
libibmad5 \
libibverbs-dev \
libibverbs1 \
librdmacm-dev \
librdmacm1 \
rdmacm-utils && \
rm -rf /var/lib/apt/lists/*
# KNEM version 1.1.4
RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ca-certificates \
git && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /var/tmp && cd /var/tmp && git clone --depth=1 --branch knem-1.1.4 https://gitlab.inria.fr/knem/knem.git knem && cd - && \
mkdir -p /usr/local/knem && \
cd /var/tmp/knem && \
mkdir -p /usr/local/knem/include && \
cp common/*.h /usr/local/knem/include && \
rm -rf /var/tmp/knem
ENV CPATH=/usr/local/knem/include:$CPATH
# XPMEM branch master
RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
autoconf \
automake \
ca-certificates \
file \
git \
libtool \
make && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /var/tmp && cd /var/tmp && git clone --depth=1 --branch master https://gitlab.com/hjelmn/xpmem.git xpmem && cd - && \
cd /var/tmp/xpmem && \
autoreconf --install && \
cd /var/tmp/xpmem && ./configure --prefix=/usr/local/xpmem --disable-kernel-module && \
make -j$(nproc) && \
make -j$(nproc) install && \
rm -rf /var/tmp/xpmem
ENV CPATH=/usr/local/xpmem/include:$CPATH \
LD_LIBRARY_PATH=/usr/local/xpmem/lib:$LD_LIBRARY_PATH \
LIBRARY_PATH=/usr/local/xpmem/lib:$LIBRARY_PATH
# UCX version 1.9.0
RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
binutils-dev \
file \
libnuma-dev \
make \
wget && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp https://github.com/openucx/ucx/releases/download/v1.9.0/ucx-1.9.0.tar.gz && \
mkdir -p /var/tmp && tar -x -f /var/tmp/ucx-1.9.0.tar.gz -C /var/tmp -z && \
cd /var/tmp/ucx-1.9.0 && ./configure --prefix=/usr/local/ucx --disable-assertions --disable-debug --disable-doxygen-doc --disable-logging --disable-params-check --enable-optimizations --with-knem --with-rdmacm --with-verbs --with-xpmem --without-cuda && \
make -j$(nproc) && \
make -j$(nproc) install && \
rm -rf /var/tmp/ucx-1.9.0 /var/tmp/ucx-1.9.0.tar.gz
ENV CPATH=/usr/local/ucx/include:$CPATH \
LD_LIBRARY_PATH=/usr/local/ucx/lib:$LD_LIBRARY_PATH \
LIBRARY_PATH=/usr/local/ucx/lib:$LIBRARY_PATH \
PATH=/usr/local/ucx/bin:$PATH
# SLURM PMI2 version 20.02.7
RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
default-libmysqlclient-dev \
libfreeipmi-dev \
libfreeipmi-dev \
libglib2.0-0 \
libglib2.0-dev \
libgtk-3-0 \
libgtk-3-dev \
libhwloc-dev \
libjson-c-dev \
liblua5.2-0 \
liblua5.2-dev \
libmunge-dev \
libmunge2 \
libpam0g-dev \
libyaml-dev && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp https://download.schedmd.com/slurm/slurm-20.02.7.tar.bz2 && \
mkdir -p /var/tmp && tar -x -f /var/tmp/slurm-20.02.7.tar.bz2 -C /var/tmp -j && \
cd /var/tmp/slurm-20.02.7 && ./configure --prefix=/usr/local/slurm-pmi2 && \
cd /var/tmp/slurm-20.02.7 && \
make -C contribs/pmi2 install && \
rm -rf /var/tmp/slurm-20.02.7 /var/tmp/slurm-20.02.7.tar.bz2
ENV CC=clang \
CFLAGS=-fPIC \
CXX=clang++ \
CXXFLAGS=-fPIC \
FC=gfortran \
FCFLAGS=-fPIC
# MPICH version 3.3.1
RUN apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
file \
gzip \
make \
openssh-client \
perl \
tar \
wget && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp https://www.mpich.org/static/downloads/3.3.1/mpich-3.3.1.tar.gz && \
mkdir -p /var/tmp && tar -x -f /var/tmp/mpich-3.3.1.tar.gz -C /var/tmp -z && \
cd /var/tmp/mpich-3.3.1 && ./configure --prefix=/usr/local/mpich --enable-cxx --enable-fortran && \
make -j$(nproc) && \
make -j$(nproc) install && \
rm -rf /var/tmp/mpich-3.3.1 /var/tmp/mpich-3.3.1.tar.gz
ENV LD_LIBRARY_PATH=/usr/local/mpich/lib:$LD_LIBRARY_PATH \
PATH=/usr/local/mpich/bin:$PATH
RUN cd /usr/local/src && \
wget https://github.com/linux-test-project/lcov/archive/v1.15.tar.gz && \
tar -xvf v1.15.tar.gz && \
cd lcov-1.15 && \
make install