X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/30545f2dfbcbb2c4095a7be9507575c624bdd6df..8bf7ffc43ad5507982e924a7f05bbb13c89965cb:/tools/jenkins/ci-bigdft.sh diff --git a/tools/jenkins/ci-bigdft.sh b/tools/jenkins/ci-bigdft.sh index 95dd27ca3e..9391fa0c22 100755 --- a/tools/jenkins/ci-bigdft.sh +++ b/tools/jenkins/ci-bigdft.sh @@ -1,24 +1,38 @@ -#!/usr/bin/env sh +#!/bin/sh + +# Test this script locally as follows (rerun `docker pull simgrid/unstable` to get a fresh version). +# cd (simgrid)/tools/jenkins +# docker run -it --rm --volume `pwd`:/source simgrid/unstable /source/ci-bigdft.sh + set -ex -export OMP_NUM_THREADS=1 +echo "XXXXXXXXXXXXXXXX Install APT dependencies" SUDO="" # to ease the local testing $SUDO apt-get -y update -$SUDO apt-get -y install git -$SUDO apt-get -y install build-essential -$SUDO apt-get -y install python-is-python3 -$SUDO apt-get -y install python3-six -$SUDO apt-get -y install jhbuild +$SUDO apt-get -y install python-is-python3 python3-setuptools libboost-dev libeigen3-dev +$SUDO apt-get -y install --only-upgrade ca-certificates +echo "XXXXXXXXXXXXXXXX build and test BigDFT (git version)" git clone --depth=1 https://gitlab.com/l_sim/bigdft-suite.git cd bigdft-suite -WORKSPACE=`pwd` +WORKSPACE=$PWD mkdir build && cd build +export PATH=$PWD/simgrid-dev/smpi_script/bin/:$PATH +export LD_LIBRARY_PATH=$PWD/simgrid-dev/lib/:$LD_LIBRARY_PATH +export JHBUILD_RUN_AS_ROOT=1 -JHBUILD_RUN_AS_ROOT=1 ../Installer.py autogen -y +#workaround issue with ntpoly 3.0.0 +sed -i 's|repository type="tarball" name="ntpoly" href="https://github.com/william-dawson/NTPoly/archive/"|repository type="git" name="ntpoly" href="https://github.com/william-dawson/"|' ../modulesets/hpc-upstream.modules +sed -i 's|module="ntpoly-v3.0.0.tar.gz"|module="ntpoly"|' ../modulesets/hpc-upstream.modules -JHBUILD_RUN_AS_ROOT=1 ../Installer.py -f ../../tools/jenkins/gfortran-simgrid.rc -y build +../Installer.py autogen -y + +../Installer.py -f ../../tools/jenkins/gfortran-simgrid.rc -y build + +export OMP_NUM_THREADS=1 +#workaround issue with profiling optimization (for fugaku) which prevent f_free_ptr to use the simgrid version. Fix pending. +export FUTILE_PROFILING_DEPTH=-1 #cubic version cd ../bigdft/tests/DFT/cubic/C