@@ -11,8 +11,17 @@ ARG ROCM_VERSION
11
11
ENV rocm=/opt/rocm-${ROCM_VERSION}
12
12
ENV AOMP=/opt/rocm-${ROCM_VERSION}/llvm
13
13
14
+ # Bring in cmake3.19 apt repo
15
+ RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | apt-key add - && \
16
+ apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' && \
17
+
14
18
# Some utils needed
15
- RUN apt-get update && apt-get install -y wget git autoconf dh-autoreconf flex python3-venv python3-dev vim libnuma1 tmux
19
+ # * lmod required to source Omniperf via `module use`
20
+ # * software-properties-common required to compile cmake3.19, which in turn is required to compile Omniperf
21
+ RUN apt-get update && \
22
+ apt-get install -y wget git autoconf dh-autoreconf \
23
+ flex python3-venv python3-dev vim lmod \
24
+ software-properties-common cmake libnuma1 tmux
16
25
17
26
# Install tmpi
18
27
RUN curl https://raw.githubusercontent.com/Azrael3000/tmpi/master/tmpi -o /usr/local/bin/tmpi
@@ -51,20 +60,15 @@ RUN ./omnitrace-1.7.3-ubuntu-20.04-ROCm-50100-PAPI-OMPT-Python3.sh --prefix=/opt
51
60
rm omnitrace-1.7.3-ubuntu-20.04-ROCm-50100-PAPI-OMPT-Python3.sh
52
61
53
62
# Install Omniperf, an AMDResearch profiling tool akin to Nvidia's Nsight-compute
54
- RUN apt-get update && apt-get install -y software-properties-common && \ # cmake3.19 required by Omniperf...
55
- wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add - && \
56
- apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' && \
57
- apt-get update && \
58
- apt install -y -q cmake
59
- RUN apt-get update && apt-get install lmod # to eventually bring it in PATH via the entrypoint
60
63
ENV OMNIPERF_DIR=/app/omniperf
61
64
RUN wget https://github.com/AMDResearch/omniperf/releases/download/v1.0.4/omniperf-1.0.4.tar.gz -q
62
65
RUN tar xfz omniperf-1.0.4.tar.gz && \
63
66
cd omniperf-1.0.4/ && \
64
67
/venv/bin/pip install --no-cache-dir -r requirements.txt && \
65
68
mkdir build && cd build/ && \
66
69
cmake -DCMAKE_INSTALL_PREFIX=${OMNIPERF_DIR}/1.0.4 -DPYTHON_DEPS=${OMNIPERF_DIR}/python-libs -DMOD_INSTALL_PATH=${OMNIPERF_DIR}/modulefiles .. && \
67
- make install
70
+ make install && \
71
+ rm -rf omniperf-1.0.4.tar.gz omniperf-1.0.4/
68
72
69
73
# Devito env
70
74
ENV DEVITO_ARCH="aomp"
0 commit comments