Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
95dd27ca3e4d7daf14bfe96ab4adee802b67e820
[simgrid.git] / tools / jenkins / ci-bigdft.sh
1 #!/usr/bin/env sh
2 set -ex
3 export OMP_NUM_THREADS=1
4
5 SUDO="" # to ease the local testing
6 $SUDO apt-get -y update
7 $SUDO apt-get -y install git
8 $SUDO apt-get -y install build-essential
9 $SUDO apt-get -y install python-is-python3
10 $SUDO apt-get -y install python3-six
11 $SUDO apt-get -y install jhbuild
12
13 git clone --depth=1 https://gitlab.com/l_sim/bigdft-suite.git
14 cd bigdft-suite
15
16 WORKSPACE=`pwd`
17 mkdir build && cd build
18
19 JHBUILD_RUN_AS_ROOT=1 ../Installer.py autogen -y
20
21 JHBUILD_RUN_AS_ROOT=1 ../Installer.py -f ../../tools/jenkins/gfortran-simgrid.rc -y build
22
23 #cubic version
24 cd ../bigdft/tests/DFT/cubic/C
25 smpirun -hostfile $WORKSPACE/simgrid-dev/examples/smpi/hostfile -platform $WORKSPACE/simgrid-dev/examples/platforms/small_platform.xml -np 8 $WORKSPACE/build/install/bin/bigdft -l no
26
27 #Psolver checking with smpi_shared_malloc
28 cd $WORKSPACE/build/psolver/tests
29 make FC=smpif90 PS_Check
30 smpirun -hostfile $WORKSPACE/simgrid-dev/examples/smpi/hostfile -platform $WORKSPACE/simgrid-dev/examples/platforms/small_platform.xml -np 4 ./PS_Check -n [57,48,63] -g F
31
32 #linear scaling version (heavy, might swap)
33 cd $WORKSPACE/bigdft/tests/DFT/linear/surface
34 smpirun -hostfile $WORKSPACE/simgrid-dev/examples/smpi/hostfile -platform $WORKSPACE/simgrid-dev/examples/platforms/small_platform.xml -np 4 $WORKSPACE/build/install/bin/bigdft -n graphene -l no
35
36 cd $WORKSPACE/build
37 ../Installer.py -f ../../tools/jenkins/gfortran-simgrid.rc -y clean