Skip to content

Commit

Permalink
Update ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
junghans authored Feb 10, 2025
1 parent 2e40c84 commit 6123216
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,18 @@ RUN apt-get update && \
apt-get purge --autoremove -y && \
rm -rf /var/lib/apt/lists/*

RUN . /etc/os-release && if [ "${VERSION_ID}" != "22.04" ]; then \
apt-get update && \
apt-get install -y flang && \
apt-get purge --autoremove -y && \
apt-get clean; \
fi

# intel build happens on 22.04 LTS, which does not have flang, install flang unconditionally once intel gets bumped
RUN if [ "${INTEL}" = "yes" ]; then \
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null && \
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list && \
apt-get update && \
apt-get install -y intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic intel-oneapi-mkl-devel && \
apt-get clean; \
else \
apt-get update && \
apt-get install -y flang && \
apt-get purge --autoremove -y && \
apt-get clean; \
fi

RUN useradd -m -G sudo -u 1001 kokkos
Expand Down

0 comments on commit 6123216

Please sign in to comment.