Debian Codegraph @

scripts/ci/images/Dockerfile.ci-el8-intel

raw
1 # SPDX-FileCopyrightText: 2026 Oak Ridge National Laboratory and Contributors
2 #
3 # SPDX-License-Identifier: Apache-2.0
4
5 FROM almalinux:8
6
7 RUN dnf upgrade -y && \
8 dnf install -y glibc-langpack-en
9
10 RUN dnf install -y dnf-plugins-core && \
11 dnf config-manager --set-enabled powertools && \
12 dnf install -y epel-release
13
14 RUN dnf install -y \
15 bzip2-devel \
16 ccache \
17 curl \
18 diffutils \
19 file \
20 findutils \
21 git \
22 gcc-c++ \
23 gcc \
24 gnupg2 \
25 gzip \
26 hdf5-devel \
27 libpng-devel \
28 Lmod \
29 make \
30 mpich-devel \
31 patch \
32 patchelf \
33 python39-devel \
34 python39-pip \
35 tar \
36 tcl \
37 unzip \
38 which \
39 xz \
40 zeromq-devel \
41 zfp-devel \
42 zlib-devel
43
44 # Install the compilers from an external repo
45 COPY oneAPI.repo /etc/yum.repos.d/
46 RUN pip3 install numpy && \
47 pip3 install mpi4py-mpich && \
48 dnf install -y \
49 intel-oneapi-compiler-dpcpp-cpp-2023.2.1 \
50 intel-oneapi-compiler-fortran-2023.2.1 \
51 intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic-2023.2.1
52 RUN dnf clean all
53
54 # Setup module files for the compilers
55 RUN /opt/intel/oneapi/modulefiles-setup.sh \
56 --force \
57 --output-dir=/usr/share/modulefiles
58
59 # Install the latest CMake release binary
60 WORKDIR /opt/cmake
61 RUN curl -sL https://cmake.org/files/LatestRelease/$(curl https://cmake.org/files/LatestRelease/ | sed -n '/-rc[0-9]\+/d;/linux-x86_64.tar.gz/s/.*>\(cmake[^<]*\)<.*/\1/p' | sort | tail -1) | tar --strip-components=1 -xzv
62
63 # Install SZ
64 WORKDIR /opt/sz
65 RUN curl -L https://github.com/szcompressor/SZ2/releases/download/v2.1.12.5/SZ-2.1.12.5.tar.gz | tar -xvz && \
66 mkdir build && \
67 cd build && \
68 /opt/cmake/bin/cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/sz/2.1.12.5 ../SZ-2.1.12.5 && \
69 make -j$(grep -c '^processor' /proc/cpuinfo) install && \
70 cd .. && \
71 rm -rf SZ-2.1.12.5 build
72
73 ENV PATH /opt/cmake/bin:/opt/sz/2.1.12.5/bin:/usr/lib64/mpich/bin:${PATH}
74 ENV LD_LIBRARY_PATH /opt/sz/2.1.12.5/lib64:${LD_LIBRARY_PATH}
75 ENV CMAKE_PREFIX_PATH /opt/sz/2.1.12.5:${CMAKE_PREFIX_PATH}
76
77 # Install mpi4py
78 RUN mkdir /opt/mpi4py && pushd /opt/mpi4py && \
79 curl -L https://github.com/mpi4py/mpi4py/releases/download/3.1.4/mpi4py-3.1.4.tar.gz | tar -xzv && \
80 cd mpi4py-3.1.4/ && \
81 python3 setup.py build && \
82 python3 setup.py install && \
83 popd && rm -rf /opt/mpi4py
84
85 WORKDIR /