mirror of https://github.com/QMCPACK/qmcpack.git
Automated tests for QMCPACK on oxygen.ornl.gov. Tests GNU, Intel 2015/6, CUDA. Only short tests in initial version. Results reported to http://cdash.qmcpack.org
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6705 e5b18d87-469d-4833-9cc0-8cdfa06e9491
This commit is contained in:
parent
31bf28d485
commit
d932dbe081
|
@ -0,0 +1,11 @@
|
|||
Scripts used to run tests of QMCPACK on various machines
|
||||
automatically. Users should run ctest directly, as described in the
|
||||
manuel.
|
||||
|
||||
These scripts are designed to be called from cron to execute the
|
||||
various nightly, weekly tests of QMCPACK. They are custom to
|
||||
particular machines, file systems, and users.
|
||||
|
||||
A *copy* of these scripts should be used for automation. At every
|
||||
update check for unsafe operations ("rm *") or script actions that can
|
||||
go awry e.g. if a filesystem is full or unavailable.
|
|
@ -0,0 +1,103 @@
|
|||
#!/bin/bash
|
||||
|
||||
place=/scratch/pk7/QMCPACK_CI_BUILDS_DO_NOT_REMOVE
|
||||
|
||||
if [ -e /scratch/pk7 ]; then
|
||||
|
||||
if [ ! -e $place ]; then
|
||||
mkdir $place
|
||||
fi
|
||||
|
||||
if [ -e $place ]; then
|
||||
|
||||
|
||||
for sys in build_gcc build_intel2016 build_intel2015 build_gcc_complex build_intel2016_complex build_intel2015_complex build_gcc_cuda build_intel2015_cuda
|
||||
do
|
||||
|
||||
cd $place
|
||||
|
||||
if [ -e $sys ]; then
|
||||
rm -r -f $sys
|
||||
fi
|
||||
mkdir $sys
|
||||
cd $sys
|
||||
|
||||
echo --- Checkout for $sys `date`
|
||||
svn checkout https://svn.qmcpack.org/svn/trunk
|
||||
#svn checkout https://subversion.assembla.com/svn/qmcdev/trunk
|
||||
|
||||
if [ -e trunk/CMakeLists.txt ]; then
|
||||
cd trunk
|
||||
mkdir $sys
|
||||
cd $sys
|
||||
echo --- Building for $sys `date`
|
||||
|
||||
export PATH=/opt/local/bin:/opt/local/sbin:/usr/local/cuda/bin/:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
|
||||
|
||||
case $sys in
|
||||
"build_gcc")
|
||||
module() { eval `/usr/bin/modulecmd sh $*`; }
|
||||
module load mpi
|
||||
export QMCPACK_TEST_SUBMIT_NAME=GCC-Release
|
||||
ctest -DCMAKE_C_COMPILER=mpicc -DCMAKE_CXX_COMPILER=mpicxx -S $PWD/../CMake/ctest_script.cmake,release -VV
|
||||
;;
|
||||
"build_intel2016")
|
||||
source /opt/intel2016/bin/compilervars.sh intel64
|
||||
source /opt/intel2016/impi/5.1.1.109/bin64/mpivars.sh
|
||||
export QMCPACK_TEST_SUBMIT_NAME=Intel2016-Release
|
||||
ctest -DCMAKE_C_COMPILER=mpiicc -DCMAKE_CXX_COMPILER=mpiicpc -S $PWD/../CMake/ctest_script.cmake,release -VV
|
||||
;;
|
||||
"build_intel2015")
|
||||
source /opt/intel/bin/compilervars.sh intel64
|
||||
source /opt/intel/impi_latest/bin64/mpivars.sh
|
||||
export QMCPACK_TEST_SUBMIT_NAME=Intel2015-Release
|
||||
ctest -DCMAKE_C_COMPILER=mpiicc -DCMAKE_CXX_COMPILER=mpiicpc -S $PWD/../CMake/ctest_script.cmake,release -VV
|
||||
;;
|
||||
"build_gcc_complex")
|
||||
module() { eval `/usr/bin/modulecmd sh $*`; }
|
||||
module load mpi
|
||||
export QMCPACK_TEST_SUBMIT_NAME=GCC-Complex-Release
|
||||
ctest -DQMC_COMPLEX=1 -DCMAKE_C_COMPILER=mpicc -DCMAKE_CXX_COMPILER=mpicxx -S $PWD/../CMake/ctest_script.cmake,release -VV
|
||||
;;
|
||||
"build_intel2016_complex")
|
||||
source /opt/intel2016/bin/compilervars.sh intel64
|
||||
source /opt/intel2016/impi/5.1.1.109/bin64/mpivars.sh
|
||||
export QMCPACK_TEST_SUBMIT_NAME=Intel2016-Complex-Release
|
||||
ctest -DQMC_COMPLEX=1 -DCMAKE_C_COMPILER=mpiicc -DCMAKE_CXX_COMPILER=mpiicpc -S $PWD/../CMake/ctest_script.cmake,release -VV
|
||||
;;
|
||||
"build_intel2015_complex")
|
||||
source /opt/intel/bin/compilervars.sh intel64
|
||||
source /opt/intel/impi_latest/bin64/mpivars.sh
|
||||
export QMCPACK_TEST_SUBMIT_NAME=Intel2015-Complex-Release
|
||||
ctest -DQMC_COMPLEX=1 -DCMAKE_C_COMPILER=mpiicc -DCMAKE_CXX_COMPILER=mpiicpc -S $PWD/../CMake/ctest_script.cmake,release -VV
|
||||
;;
|
||||
"build_gcc_cuda")
|
||||
module() { eval `/usr/bin/modulecmd sh $*`; }
|
||||
module load mpi
|
||||
export QMCPACK_TEST_SUBMIT_NAME=GCC-CUDA-Release
|
||||
ctest -DCMAKE_C_COMPILER=mpicc -DCMAKE_CXX_COMPILER=mpicxx -DQMC_CUDA=1 -S $PWD/../CMake/ctest_script.cmake,release -VV
|
||||
;;
|
||||
"build_intel2015_cuda")
|
||||
source /opt/intel/bin/compilervars.sh intel64
|
||||
source /opt/intel/impi_latest/bin64/mpivars.sh
|
||||
export QMCPACK_TEST_SUBMIT_NAME=Intel2015-CUDA-Release
|
||||
ctest -DCMAKE_C_COMPILER=mpiicc -DCMAKE_CXX_COMPILER=mpiicpc -DQMC_CUDA=1 -S $PWD/../CMake/ctest_script.cmake,release -VV
|
||||
;;
|
||||
*)
|
||||
echo "ERROR: Unknown build type $sys"
|
||||
;;
|
||||
esac
|
||||
|
||||
else
|
||||
echo "ERROR: No CMakeLists. Bad svn checkout."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
else
|
||||
echo "ERROR: No directory $place"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
fi
|
Loading…
Reference in New Issue