Compare commits

..

3 Commits

Author SHA1 Message Date
49a498fc17 Fix CHAMP and HDF5 2024-04-11 17:12:56 +02:00
a393ed5dc7 Fix bash 2024-04-11 16:41:41 +02:00
root
d5941fcef9 FIx bash 2024-04-11 16:40:33 +02:00
5 changed files with 9 additions and 4 deletions

View File

@ -45,8 +45,9 @@ From: ubuntu:22.04
echo source /opt/environment.sh >> /etc/bash.bashrc echo source /opt/environment.sh >> /etc/bash.bashrc
%runscript %runscript
exec /bin/bash $@ exec /bin/bash "$@"
%test %test
ls /opt/champ/bin/vmc.mov1 || exit 1 ls /opt/champ/bin/vmc.mov1 || exit 1

View File

@ -9,3 +9,4 @@ export FC=ifort
export CC=icx export CC=icx
export OMP_NUM_THREADS=1 export OMP_NUM_THREADS=1
export PATH=$PATH:/opt/champ/bin

View File

@ -14,11 +14,14 @@ apt install -y cmake python3 git make gcc g++
git clone --depth=1 https://github.com/filippi-claudia/champ.git git clone --depth=1 https://github.com/filippi-claudia/champ.git
cd champ cd champ
echo "-march=core-avx2" >> /opt/ifort.cfg
echo "-march=core-avx2" >> /opt/icx.cfg
cmake -S. -Bbuild \ cmake -S. -Bbuild \
-DCMAKE_Fortran_COMPILER="mpiifort" \ -DCMAKE_Fortran_COMPILER="mpiifort" \
-DENABLE_TREXIO=ON \ -DENABLE_TREXIO=ON \
-DENABLE_QMCKL=ON -DENABLE_QMCKL=ON \
-DVECTORIZATION="avx2"
cmake --build build -j 8 cmake --build build -j 8

View File

@ -16,7 +16,7 @@ which ifort \
|| apt install -y gfortran || apt install -y gfortran
if [ $CC = icx ] ; then if [ $CC = icx ] ; then
export CFLAGS="-Ofast -g -qmkl=sequential -ftz -fma -march=core-avx2" export CFLAGS="-Ofast -g -qmkl=sequential -fma -march=core-avx2 -finline"
export FCFLAGS="-Ofast -g -qmkl=sequential -ftz -fma -march=core-avx2 -ip" export FCFLAGS="-Ofast -g -qmkl=sequential -ftz -fma -march=core-avx2 -ip"
else else
export CFLAGS="-Ofast -g -march=core-avx2" export CFLAGS="-Ofast -g -march=core-avx2"

View File

@ -3,7 +3,7 @@
cd /opt cd /opt
source environment.sh source environment.sh
apt install -y wget libhdf5-dev libhdf5 make apt install -y wget libhdf5-dev hdf5-tools make
[ -z $CC ] && apt install -y gcc [ -z $CC ] && apt install -y gcc
[ -z $FC ] && apt install -y gfortran [ -z $FC ] && apt install -y gfortran