Skip to content

Commit

Permalink
Update compiler and library dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jngrad committed Jan 28, 2025
1 parent f7f8ef2 commit a4b2668
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 11 deletions.
2 changes: 2 additions & 0 deletions docker/Dockerfile-debian
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ RUN apt-get update && \
ccache \
curl \
cython3 \
gcc-12 g++-12 \
gdb \
git \
libboost-dev \
libboost-filesystem-dev \
libboost-mpi-dev \
libboost-serialization-dev \
libboost-test-dev \
libcereal-dev \
libfftw3-dev \
libhdf5-openmpi-dev \
libpython3-dev \
Expand Down
3 changes: 2 additions & 1 deletion docker/Dockerfile-fedora
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM fedora:40
FROM fedora:41
RUN dnf -y install \
blas-devel \
boost-devel \
boost-mpich-devel \
ccache \
cmake \
cereal-devel \
environment-modules \
fftw-devel \
fftw-mpich-devel \
Expand Down
16 changes: 9 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-18 clang-tidy-18 clang-format-18 llvm-18 libclang-rt-18-dev libomp-18-dev \
cmake \
cmake-format \
curl \
cython3 \
doxygen \
ffmpeg \
gcc-12 g++-12 \
gcc-13 g++-13 \
gcc-14 g++-14 \
gdb \
gfortran \
git \
Expand All @@ -32,6 +32,7 @@ RUN apt-get update && \
libboost-mpi-dev \
libboost-serialization-dev \
libboost-test-dev \
libcereal-dev \
libdigest-sha-perl \
libfftw3-dev \
libfftw3-mpi-dev \
Expand Down Expand Up @@ -76,6 +77,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 +91,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 +103,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
1 change: 1 addition & 0 deletions docker/Dockerfile-ubuntu-wo-dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ RUN apt-get update && \
libboost-mpi-dev \
libboost-serialization-dev \
libboost-test-dev \
libcereal-dev \
libopenmpi-dev \
openssh-client \
openmpi-bin \
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

0 comments on commit a4b2668

Please sign in to comment.