apptainer/lib/install_champ.sh

26 lines
449 B
Bash
Raw Normal View History

2024-04-11 11:23:49 +02:00
#!/bin/bash
cd /opt
2024-04-11 12:03:02 +02:00
source environment.sh
ln -s /usr/bin/python3 /usr/bin/python
2024-04-11 11:23:49 +02:00
# Install dependencies
# --------------------
2024-04-11 12:03:02 +02:00
apt install -y cmake python3 git make
2024-04-11 11:23:49 +02:00
git clone --depth=1 https://github.com/filippi-claudia/champ.git
cd champ
cmake -S. -Bbuild \
-DCMAKE_Fortran_COMPILER="mpiifort" \
-DENABLE_TREXIO=ON \
-DENABLE_QMCKL=ON
cmake --build build -j 8
rm -rf compile-* docs tests build lib
2024-04-11 12:03:02 +02:00
apt remove -y cmake git make