From 9344d39e9a0703af3277c64c23482e5b6e7dbeee Mon Sep 17 00:00:00 2001 From: Alexander Penev <7923188+alexander-penev@users.noreply.github.com> Date: Tue, 30 May 2023 21:40:24 +0300 Subject: [PATCH] Update Dockerfile 10 --- Dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3fbb09b2..fcebe48f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -178,8 +178,11 @@ RUN \ git clone --depth=1 https://github.com/vgvassilev/clad.git && \ cd clad && \ mkdir build && \ - cd build - ##cmake ../clad -DClang_DIR=${PATH_TO_LLVM_BUILD}/lib/cmake/clang/ -DLLVM_DIR=${PATH_TO_LLVM_BUILD}/lib/cmake/llvm/ -DCMAKE_INSTALL_PREFIX=/opt/conda -DLLVM_EXTERNAL_LIT="$(which lit)" && \ + cd build && \ + cmake .. -DClang_DIR=${PATH_TO_LLVM_BUILD}/lib/cmake/clang/ -DLLVM_DIR=${PATH_TO_LLVM_BUILD}/lib/cmake/llvm/ -DCMAKE_INSTALL_PREFIX=/opt/conda -DLLVM_EXTERNAL_LIT="$(which lit)" && \ #make -j$(nproc --all) && \ - ##make && \ - ##make install + make && \ + make install && \ + # install clad in all exist kernels + jq '.argv += ["-fplugin=$KERNEL_PYTHON_PREFIX/lib/clad.so"] | .display_name += " (with clad)"' $KERNEL_PYTHON_PREFIX/share/jupyter/kernels/xcpp14/kernel.json > tmp.$$.json && mv tmp.$$.json $KERNEL_PYTHON_PREFIX/share/jupyter/kernels/xcpp14/kernel.json +