Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update compiler toolchains #217

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker/Dockerfile-debian
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ RUN apt-get update && \
ccache \
curl \
cython3 \
gcc-12 g++-12 \
gdb \
git \
libboost-dev \
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile-fedora
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM fedora:40
FROM fedora:41
RUN dnf -y install \
blas-devel \
boost-devel \
Expand Down
15 changes: 8 additions & 7 deletions docker/Dockerfile-ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ RUN apt-get update && \
automake \
build-essential \
ccache \
clang-18 clang-tidy-18 clang-format-18 llvm-18 libclang-rt-18-dev \
clang-19 clang-tidy-19 clang-format-19 llvm-19 libclang-rt-19-dev libomp-19-dev \
cmake \
cmake-format \
curl \
cython3 \
doxygen \
ffmpeg \
gcc-12 g++-12 \
gcc-13 g++-13 \
gcc-14 g++-14 \
gdb \
gfortran \
git \
Expand Down Expand Up @@ -76,6 +76,7 @@ RUN apt-get update && \
python3-vtk9 \
rsync \
texlive-base \
unzip \
vim && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
Expand All @@ -89,9 +90,9 @@ RUN sh /tmp/install-pfft.sh && rm /tmp/install-pfft.sh && \
sh /tmp/install-kokkos.sh && rm /tmp/install-kokkos.sh && \
ldconfig

ENV NVIDIA_VISIBLE_DEVICES all
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
ENV JUPYTER_PLATFORM_DIRS 1
ENV NVIDIA_VISIBLE_DEVICES=all
ENV NVIDIA_DRIVER_CAPABILITIES="compute,utility"
ENV JUPYTER_PLATFORM_DIRS=1

COPY --chown=1000:1000 jupyter_nbconvert_config.json /tmp

Expand All @@ -101,8 +102,8 @@ RUN echo | cpan && \
echo | cpan JSON::XS && \
chown -R espresso:espresso /home/espresso/.cpan/
USER espresso
ENV VIRTUAL_ENV "$HOME/venv"
ENV PATH "$HOME/.local/bin:$VIRTUAL_ENV/bin:$PATH"
ENV VIRTUAL_ENV="$HOME/venv"
ENV PATH="$HOME/.local/bin:$VIRTUAL_ENV/bin:$PATH"
RUN cd "${HOME}" && \
python3 -m venv --system-site-packages venv && \
. venv/bin/activate && \
Expand Down
9 changes: 6 additions & 3 deletions docker/install-kokkos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ set -e

cd /tmp

git clone -b 4.3.00 https://github.com/kokkos/kokkos
cd kokkos/
kokkos_version="4.3.00"
curl -Lo ./kokkos-${kokkos_version}.tar.gz https://github.com/kokkos/kokkos/archive/refs/tags/${kokkos_version}.tar.gz
tar xfz ./kokkos-${kokkos_version}.tar.gz
rm ./kokkos-${kokkos_version}.tar.gz
cd kokkos-${kokkos_version}/
mkdir build
cd build/
cmake .. -D Kokkos_ENABLE_CUDA=OFF -DKokkos_ENABLE_OPENMP=ON -D CMAKE_POSITION_INDEPENDENT_CODE=ON
make -j $(nproc) install
cd
rm -r /tmp/kokkos
rm -r /tmp/kokkos-${kokkos_version}
ldconfig