Skip to content

Commit eaa48cf

Browse files
committed
Prevent dependency building failure in Intel Dockerfiles
1 parent 3a7ce9f commit eaa48cf

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/devcontainer.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
startsWith(github.ref, 'refs/tags/v'))
3232
3333
strategy:
34+
fail-fast: false
3435
matrix:
3536
dockerfile:
3637
- gnu

Dockerfile.intel

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,26 @@ FROM intel/oneapi-hpckit:2025.2.2-0-devel-ubuntu22.04
33
RUN apt-get update && apt-get install -y \
44
bc cmake git gnupg gcc g++ python3-numpy sudo wget vim unzip \
55
libcereal-dev libxc-dev libgtest-dev libgmock-dev libbenchmark-dev \
6-
pkg-config build-essential autoconf automake libtool && \
6+
pkg-config build-essential autoconf automake libtool ca-certificates && \
77
rm -rf /var/lib/apt/lists/*
88

9+
ENV CC="icx"
10+
ENV CXX="icpx"
11+
ENV FC="ifx"
12+
ENV MPICC="mpiicx"
13+
ENV MPICXX="mpiicpx"
14+
ENV MPIFC="mpiifx"
15+
916
# https://elpa.mpcdf.mpg.de/software/tarball-archive/ELPA_TARBALL_ARCHIVE.html
1017
RUN cd /tmp && \
1118
ELPA_VER=2022.11.001 && \
1219
wget -q https://elpa.mpcdf.mpg.de/software/tarball-archive/Releases/$ELPA_VER/elpa-$ELPA_VER.tar.gz && \
1320
tar xzf elpa-$ELPA_VER.tar.gz && rm elpa-$ELPA_VER.tar.gz && \
1421
cd elpa-$ELPA_VER && mkdir build && cd build && \
15-
../configure CFLAGS="-O3 -march=native" FCFLAGS="-O3 -qmkl=cluster" --enable-openmp && \
22+
../configure \
23+
CC="mpiicx" CXX="mpiicpx" FC="mpiifx" \
24+
CFLAGS="-O3 -march=native" FCFLAGS="-O3 -qmkl=cluster" \
25+
--enable-openmp && \
1626
make -j $(nproc) && \
1727
make PREFIX=/usr/local install && \
1828
ln -s /usr/local/include/elpa_openmp-$ELPA_VER/elpa /usr/local/include/ && \

0 commit comments

Comments
 (0)