3 export OMP_NUM_THREADS=1
4 SUDO="" # to ease the local testing
5 $SUDO apt-get -y update
6 $SUDO apt-get -y install git build-essential gfortran python-is-python3 python3-six python3-distutils automake cmake libboost-dev libblas-dev liblapack-dev wget
8 git clone --depth=1 https://gitlab.com/l_sim/bigdft-suite.git
12 mkdir build && cd build
13 export PATH=$PWD/simgrid-dev/smpi_script/bin/:$PATH
14 export LD_LIBRARY_PATH=$PWD/simgrid-dev/lib/:$LD_LIBRARY_PATH
15 export JHBUILD_RUN_AS_ROOT=1
17 ../Installer.py autogen -y
19 ../Installer.py -f ../../tools/jenkins/gfortran-simgrid.rc -y build
22 cd ../bigdft/tests/DFT/cubic/C
23 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
25 #Psolver checking with smpi_shared_malloc
26 cd $WORKSPACE/build/psolver/tests
27 make FC=smpif90 PS_Check
28 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
30 #linear scaling version (heavy, might swap)
31 cd $WORKSPACE/bigdft/tests/DFT/linear/surface
32 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 ../Installer.py -f ../../tools/jenkins/gfortran-simgrid.rc -y clean