diff --git a/docker/Dockerfile-debian b/docker/Dockerfile-debian index 80e9ee6..6b196a7 100644 --- a/docker/Dockerfile-debian +++ b/docker/Dockerfile-debian @@ -7,6 +7,7 @@ RUN apt-get update && \ ccache \ curl \ cython3 \ + gcc-12 g++-12 \ gdb \ git \ libboost-dev \ diff --git a/docker/Dockerfile-fedora b/docker/Dockerfile-fedora index 95487a3..8cb6f9b 100644 --- a/docker/Dockerfile-fedora +++ b/docker/Dockerfile-fedora @@ -1,4 +1,4 @@ -FROM fedora:40 +FROM fedora:41 RUN dnf -y install \ blas-devel \ boost-devel \ diff --git a/docker/Dockerfile-ubuntu b/docker/Dockerfile-ubuntu index 45bb501..90725e6 100644 --- a/docker/Dockerfile-ubuntu +++ b/docker/Dockerfile-ubuntu @@ -6,7 +6,7 @@ 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 \ @@ -14,7 +14,7 @@ RUN apt-get update && \ doxygen \ ffmpeg \ gcc-12 g++-12 \ - gcc-13 g++-13 \ + gcc-14 g++-14 \ gdb \ gfortran \ git \ @@ -76,6 +76,7 @@ RUN apt-get update && \ python3-vtk9 \ rsync \ texlive-base \ + unzip \ vim && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* @@ -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 @@ -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 && \ diff --git a/docker/install-kokkos.sh b/docker/install-kokkos.sh index 376d4ef..0954460 100644 --- a/docker/install-kokkos.sh +++ b/docker/install-kokkos.sh @@ -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