3 export OMP_NUM_THREADS=1
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
13 git clone --depth=1 https://gitlab.com/l_sim/bigdft-suite.git
17 mkdir build && cd build
19 JHBUILD_RUN_AS_ROOT=1 ../Installer.py autogen -y
21 JHBUILD_RUN_AS_ROOT=1 ../Installer.py -f ../../tools/jenkins/gfortran-simgrid.rc -y build
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
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
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
37 ../Installer.py -f ../../tools/jenkins/gfortran-simgrid.rc -y clean