Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
external CI scripts: cosmetics and uniformity
[simgrid.git] / tools / jenkins / ci-bigdft.sh
1 #!/bin/sh
2
3 # Test this script locally as follows (rerun `docker pull simgrid/unstable` to get a fresh version).
4 # cd (simgrid)/tools/jenkins
5 # docker run -it --rm --volume `pwd`:/source simgrid/unstable /source/ci-bigdft.sh
6
7 set -ex
8 export OMP_NUM_THREADS=1
9
10 echo "XXXXXXXXXXXXXXXX Install APT dependencies"
11 SUDO="" # to ease the local testing
12 $SUDO apt-get -y update
13 $SUDO apt-get -y install git
14 $SUDO apt-get -y install build-essential
15 $SUDO apt-get -y install python-is-python3
16 $SUDO apt-get -y install python3-six
17 $SUDO apt-get -y install jhbuild
18
19 echo "XXXXXXXXXXXXXXXX build and test BigDFT (git version)"
20 git clone --depth=1 https://gitlab.com/l_sim/bigdft-suite.git
21 cd bigdft-suite
22
23 WORKSPACE=`pwd`
24 mkdir build && cd build
25
26 JHBUILD_RUN_AS_ROOT=1 ../Installer.py autogen -y
27
28 JHBUILD_RUN_AS_ROOT=1 ../Installer.py -f ../../tools/jenkins/gfortran-simgrid.rc -y build
29
30 #cubic version
31 cd ../bigdft/tests/DFT/cubic/C
32 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
33
34 #Psolver checking with smpi_shared_malloc
35 cd $WORKSPACE/build/psolver/tests
36 make FC=smpif90 PS_Check
37 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
38
39 #linear scaling version (heavy, might swap)
40 cd $WORKSPACE/bigdft/tests/DFT/linear/surface
41 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
42
43 cd $WORKSPACE/build
44 ../Installer.py -f ../../tools/jenkins/gfortran-simgrid.rc -y clean