From a5428ce672c8c22ab36428014340cab377edb46f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-No=C3=ABl=20Grad?= Date: Fri, 3 May 2024 13:45:58 +0200 Subject: [PATCH 1/3] Fix JupyterLab installation --- docker/Dockerfile-ubuntu | 10 ++-------- docker/jupyter_nbconvert_config.json | 2 +- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/docker/Dockerfile-ubuntu b/docker/Dockerfile-ubuntu index 2ac3dcb..1afa25d 100644 --- a/docker/Dockerfile-ubuntu +++ b/docker/Dockerfile-ubuntu @@ -110,15 +110,9 @@ RUN cd "${HOME}" && \ autopep8==2.1.0 \ pycodestyle==2.11.1 \ sphinx-toggleprompt==0.5.2 && \ - jupyter_config_root=$(jupyter --paths --json | jq ".config[0]") && \ - jupyter_config_root=${jupyter_config_root#\"} && \ - jupyter_config_root=${jupyter_config_root%\"} && \ - jupyter_kernels_root=$(jupyter --paths --json | jq ".data[0]")/kernels && \ - jupyter_kernels_root=${jupyter_kernels_root#\"} && \ - jupyter_kernels_root=${jupyter_kernels_root%\"} && \ - mkdir -p "${jupyter_config_root}" "${jupyter_kernels_root}" && \ + jupyter_config_root=$(jupyter --paths --json | jq -r ".config[0]") && \ + mkdir -p "${jupyter_config_root}" && \ mv "/tmp/jupyter_nbconvert_config.json" "${jupyter_config_root}/" && \ - ln -s "${VIRTUAL_ENV}/share/jupyter/kernels/python3" "${jupyter_kernels_root}/python3" && \ deactivate && \ mkdir -p "${HOME}/.local/bin" && \ mkdir -p "${HOME}/.local/etc/alternatives" && \ diff --git a/docker/jupyter_nbconvert_config.json b/docker/jupyter_nbconvert_config.json index 51d0ec3..6cf8b7e 100644 --- a/docker/jupyter_nbconvert_config.json +++ b/docker/jupyter_nbconvert_config.json @@ -1,6 +1,6 @@ { "version": 1, - "Exporter": { + "HTMLExporter": { "require_js_url": "https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js", "mathjax_url": "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/latest.js?config=TeX-AMS_CHTML-full,Safe" } From 0c8b319dce023a18e9d1aae5bfc71d0cc1c3a1af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-No=C3=ABl=20Grad?= Date: Fri, 3 May 2024 13:48:51 +0200 Subject: [PATCH 2/3] Update ESPResSo dependencies --- docker/Dockerfile-fedora | 1 + docker/Dockerfile-ubuntu | 2 ++ docker/install-scafacos.sh | 3 +++ 3 files changed, 6 insertions(+) diff --git a/docker/Dockerfile-fedora b/docker/Dockerfile-fedora index b4dee54..95487a3 100644 --- a/docker/Dockerfile-fedora +++ b/docker/Dockerfile-fedora @@ -13,6 +13,7 @@ RUN dnf -y install \ gdb \ git \ hdf5-mpich-devel \ + jq \ lapack-devel \ make \ mpich-devel \ diff --git a/docker/Dockerfile-ubuntu b/docker/Dockerfile-ubuntu index 1afa25d..45bb501 100644 --- a/docker/Dockerfile-ubuntu +++ b/docker/Dockerfile-ubuntu @@ -50,6 +50,7 @@ RUN apt-get update && \ python3 \ python3-dev \ pylint \ + python3-ase \ python3-coverage \ python3-dev \ python3-h5py \ @@ -60,6 +61,7 @@ RUN apt-get update && \ python3-nbconvert \ python3-numpy \ python3-numpydoc \ + python3-pandas \ python3-pint \ python3-pip \ python3-packaging \ diff --git a/docker/install-scafacos.sh b/docker/install-scafacos.sh index 39ec66a..31f1c54 100755 --- a/docker/install-scafacos.sh +++ b/docker/install-scafacos.sh @@ -37,6 +37,9 @@ cd build --prefix=/usr/local make -j $(nproc) make install +# remove GCC version-specific library path to avoid library version mismatch at +# link or runtime when a different GCC version was used to compile client code +sed -i -r 's| -L/usr/lib/gcc/x86_64-linux-gnu/[0-9]+ | |' /usr/local/lib/pkgconfig/scafacos.pc cd rm -r /tmp/scafacos ldconfig From a8b4c916cbe7ec66c6948bf474170416a6ab8ea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-No=C3=ABl=20Grad?= Date: Mon, 6 May 2024 10:24:55 +0200 Subject: [PATCH 3/3] Fix Kokkos installation --- docker/install-kokkos.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/install-kokkos.sh b/docker/install-kokkos.sh index 7774017..376d4ef 100644 --- a/docker/install-kokkos.sh +++ b/docker/install-kokkos.sh @@ -8,7 +8,7 @@ git clone -b 4.3.00 https://github.com/kokkos/kokkos cd kokkos/ mkdir build cd build/ -cmake .. -D Kokkos_ENABLE_CUDA=OFF -DKokkos_ENABLE_OPENMP=ON +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