apptainer/lib/install_champ.sh

33 lines
608 B
Bash
Raw Normal View History

2024-04-11 14:33:16 +02:00
#!/bin/bash -e
2024-04-11 11:23:49 +02:00
cd /opt
2024-04-11 12:03:02 +02:00
source environment.sh
2024-04-11 15:30:16 +02:00
ln -s /usr/bin/python3 /usr/bin/python || :
2024-04-11 11:23:49 +02:00
# Install dependencies
# --------------------
2024-04-11 14:17:21 +02:00
apt install -y cmake python3 git make gcc g++
2024-04-11 11:23:49 +02:00
git clone --depth=1 https://github.com/filippi-claudia/champ.git
2024-04-11 13:53:52 +02:00
2024-04-11 11:23:49 +02:00
cd champ
2024-04-11 17:12:56 +02:00
echo "-march=core-avx2" >> /opt/ifort.cfg
echo "-march=core-avx2" >> /opt/icx.cfg
2024-04-11 13:53:52 +02:00
2024-04-11 11:23:49 +02:00
cmake -S. -Bbuild \
-DCMAKE_Fortran_COMPILER="mpiifort" \
-DENABLE_TREXIO=ON \
2024-04-11 17:12:56 +02:00
-DENABLE_QMCKL=ON \
-DVECTORIZATION="avx2"
2024-04-11 11:23:49 +02:00
cmake --build build -j 8
rm -rf compile-* docs tests build lib
2024-04-11 12:03:02 +02:00
2024-04-11 14:33:16 +02:00
# Test
ls bin/vmc.mov1 || exit 1
ls bin/dmc.mov1 || exit 1