File: Dockerfile_mpich

package info (click to toggle)
eztrace 2.0%2Brepack-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,132 kB
  • sloc: ansic: 23,501; perl: 910; sh: 857; cpp: 771; makefile: 696; fortran: 327; f90: 320; python: 57
file content (36 lines) | stat: -rw-r--r-- 1,238 bytes parent folder | download
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
FROM debian:bullseye

# Install build tools
RUN apt update \
  && apt install -y build-essential cmake wget git gawk

# Install OTF2 in /opt/otf2 and make otf-print available
RUN wget http://perftools.pages.jsc.fz-juelich.de/cicd/otf2/tags/otf2-2.3/otf2-2.3.tar.gz -P /tmp \
&& (cd /tmp  && tar xzf /tmp/otf2-2.3.tar.gz) \
&& (cd /tmp/otf2-2.3 && ./configure  --prefix=/usr/local&& make  &&make install) \
&& rm -rf /tmp/otf2-2.3


# Install Opari2 in /usr/local
RUN wget http://perftools.pages.jsc.fz-juelich.de/cicd/opari2/tags/opari2-2.0.6/opari2-2.0.6.tar.gz -P /tmp \
&& (cd /tmp && tar xzf /tmp/opari2-2.0.6.tar.gz) \
&& (cd /tmp/opari2-2.0.6 && ./configure --prefix=/usr/local && make  &&make install) \
&& rm -rf /tmp/opari2-2.0.6

# Install MPICH
RUN apt install -y mpich

# Install Clang
RUN apt install -y clang

# Install EZTrace
RUN git clone https://gitlab.com/eztrace/eztrace.git \
&& ( mkdir eztrace/build && cd eztrace/build &&  \
   cmake .. \
   -DENABLE_BIN_INSTRUMENTATION=OFF -DOTF2_PATH=/opt/otf2 \
   -DEZTRACE_ENABLE_MPI=ON -DMPI_LINK_FLAGS="-fopenmp" \
   -DEZTRACE_ENABLE_OPENMP=ON -DEZTRACE_ENABLE_OMPT=ON\
   -DEZTRACE_ENABLE_MEMORY=ON \
   -DCMAKE_C_COMPILER=clang-11 \
   && make -j 4 \
   && make install)