From: Augustin Degomme Date: Mon, 13 Sep 2021 07:55:24 +0000 (+0200) Subject: add configuration for bigdft. X-Git-Tag: v3.29~90 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f336ded710acf64838983140a0a30a6f8060b4d1 add configuration for bigdft. hopefully the path is right --- diff --git a/tools/jenkins/ci-bigdft.sh b/tools/jenkins/ci-bigdft.sh index 090d556cf8..f0f115e6fa 100755 --- a/tools/jenkins/ci-bigdft.sh +++ b/tools/jenkins/ci-bigdft.sh @@ -18,7 +18,7 @@ mkdir build && cd build ../Installer.py autogen -y -../Installer.py -f /builds/gfortran-simgrid.rc -y build +../Installer.py -f ../../tools/jenkins/gfortran-simgrid.rc -y build #cubic version cd ../bigdft/tests/DFT/cubic/C @@ -34,4 +34,4 @@ cd $WORKSPACE/bigdft/tests/DFT/linear/surface 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 cd $WORKSPACE/build -../Installer.py -f /builds/gfortran-simgrid.rc -y clean +../Installer.py -f ../../tools/jenkins/gfortran-simgrid.rc -y clean diff --git a/tools/jenkins/gfortran-simgrid.rc b/tools/jenkins/gfortran-simgrid.rc new file mode 100644 index 0000000000..103b546839 --- /dev/null +++ b/tools/jenkins/gfortran-simgrid.rc @@ -0,0 +1,31 @@ +#This is the configuration file for the BigDFT installer +#This is a python script which is executed by the build suite +def getcwd(): + import os + return os.getcwd() +#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" """ +#the following command sets the environment variable to give these settings +#to all the modules +import os +os.environ['BIGDFT_CONFIGURE_FLAGS']=env_configuration() +#here follow the configuration instructions for the modules built +#we specify the configurations for the modules to customize the options if needed +autogenargs=env_configuration() +module_autogenargs.update({ +'futile': 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", +'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' +})