Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
new attempt for bigdft ..
authorAugustin Degomme <adegomme@gmail.com>
Mon, 13 Sep 2021 16:17:40 +0000 (18:17 +0200)
committerAugustin Degomme <adegomme@gmail.com>
Mon, 13 Sep 2021 16:17:55 +0000 (18:17 +0200)
it fails on my local system and I have no idea why, so let's see if this is a local issue.

tools/jenkins/ci-bigdft.sh
tools/jenkins/gfortran-simgrid.rc

index 95dd27c..5199a4a 100755 (executable)
@@ -1,24 +1,22 @@
 #!/usr/bin/env sh
 set -ex
 export OMP_NUM_THREADS=1
-
 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 git build-essential gfortran python-is-python3 python3-six python3-distutils automake cmake libboost-dev libblas-dev liblapack-dev wget
 
 git clone --depth=1 https://gitlab.com/l_sim/bigdft-suite.git
 cd bigdft-suite
 
 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
+../Installer.py autogen -y
 
-JHBUILD_RUN_AS_ROOT=1 ../Installer.py -f ../../tools/jenkins/gfortran-simgrid.rc -y build
+../Installer.py -f ../../tools/jenkins/gfortran-simgrid.rc -y build
 
 #cubic version
 cd ../bigdft/tests/DFT/cubic/C
index 103b546..70c55d8 100644 (file)
@@ -3,15 +3,16 @@
 def getcwd():
   import os
   return os.getcwd()
+prefix=getcwd()+"/install"
 #Add the condition testing to run tests and includes PyYaml
 conditions.add("testing")
 conditions.add("simulation") #to include simgrid compilation
-#conditions.add("python")
 #List the module the this rcfile will build
 modules = ['spred',]
 #example of the potentialities of the python syntax in this file
 def env_configuration():
-    return  """ "FCFLAGS=-O2 -fPIC -fopenmp" "CFLAGS=-fPIC -O2 -fopenmp" "FC=mpif90" "F77=mpif77" "FCLIBS= " "LIBS=-ldl -lstdc++ -lgfortran"  """
+    return """--host=x86_64-linux-gnu 'FCFLAGS=-O2 -std=legacy -fopenmp -g -fbounds-check -fbacktrace -ffpe-trap=invalid,zero,overflow,denormal -Wall -fPIC' 'CFLAGS=-O2 -fopenmp -fPIC' 'LDFLAGS=-fopenmp -fPIC' --with-mpi3=false"""
+
 #the following command sets the environment variable to give these settings
 #to all the modules
 import os
@@ -24,8 +25,4 @@ module_autogenargs.update({
     " --enable-simgrid-shared --with-mpi-libs='-lsimgrid' --with-mpi-include=-I"+getcwd()+"/install/include/smpi FC="+getcwd()+"/install/bin/smpif90 CC=gcc SIMGRID_FC="+getcwd()+"/install/bin/smpif90",
 'bigdft': env_configuration()+
     " --enable-simgrid-shared --with-mpi-libs='-lsimgrid' --with-mpi-include=-I"+getcwd()+"/install/include/smpi FC="+getcwd()+"/install/bin/smpif90 CC=gcc SIMGRID_FC="+getcwd()+"/install/bin/smpif90",
-'spred': env_configuration()+" --with-gobject=yes ",
-'PyYAML': "build_ext -I%(prefix)s/include -L%(prefix)s/lib --rpath=%(prefix)s/lib " % {"prefix": prefix},
-'pygobject': 'PYTHON=/usr/bin/python',
-'v_sim-dev': '--with-abinit --with-archives --with-openbabel --with-cube --without-strict-cflags'
 })