Commit Graph

476 Commits

Author SHA1 Message Date
Ye Luo 22d2a0bda2 Enable CDash tracks for test categorization. 2018-11-16 00:47:58 -06:00
Ye Luo 6fac4f41b4 Correct the use of N_CONCURRENT_TESTS 2018-11-15 21:15:55 -06:00
Paul R. C. Kent 2e3c9239a6
Merge branch 'develop' into pgi_compiler 2018-11-04 11:10:32 -05:00
Paul R. C. Kent ae9c05aaf1
Add newline for PGI2018 2018-11-04 11:07:55 -05:00
Ye Luo 006350e62c Enable PROCESSOR_AFFINITY TRUE for ctest. 2018-11-02 17:20:30 -05:00
Mark Dewing d149380b7d Initial support for PGI compiler 2018-11-02 15:56:44 -05:00
Paul Kent df6a65c20b Only set ctest options that need to be set 2018-11-02 11:42:13 -04:00
Mark Dewing 1a2b9e5713 Fix name of AX_OPTION variable. 2018-11-01 11:54:24 -05:00
Mark Dewing 6aa75753ca Handle case when the -x option is at the beginning
An option occurs either at the beginning of the string or will be
preceeded by a space.
Since the regex is getting more complicated, make it a variable.
2018-11-01 11:50:19 -05:00
Mark Dewing 8686f99f07 Add space in front of -x check for Intel compilers
Add the space to ensure this only matches options where -x is at the beginning.

Issue showed up passing the option "-cxxlib=/path/linux-rhel7-x86_64".
The '-x' in the middle of the expression would satisfy the match condition.
2018-11-01 11:18:41 -05:00
Ye Luo 2e908cd8f3 More language correction. 2018-10-31 16:34:21 -05:00
Paul R. C. Kent fe9d3d5ec6
Merge branch 'develop' into cpp14 2018-10-31 16:58:47 -04:00
Mark Dewing 76b2c0dc6a Language consistency and pull in test source.
Use "C++ 14 standard library" consistently.

Move the library test source into the CMake file and write it at configure time.
2018-10-31 14:39:03 -05:00
Mark Dewing 0dae313b7a Message about compiler switch should have one dash
Use -cxxlib (instead of --cxxlib) in the message about Intel compiler
and the C++ 14 library.
2018-10-31 12:35:28 -05:00
Mark Dewing f0fbe2bd6e Add support for CMake versions below 3.8
The try_compile feature didn't support the CXX_STANDARD* arguments before
version 3.8.  Fortunately, the workaround seems to be fairly easy.

And newer compilers have C++14 (or even 17) as the default standard level, so
the extra flag isn't even necessary.
2018-10-31 12:20:55 -05:00
Ye Luo 701643ad3d Also need to protect glibc 2.22 2018-10-31 10:58:39 -05:00
Ye Luo 190b2ea544 Check glibc version in cmake. 2018-10-30 14:28:50 -05:00
Mark Dewing 1219797d1a Specify C++14 standard to try_compile. 2018-10-29 17:07:52 -05:00
Mark Dewing 1fa295b9f4 Fix typo and set C++14 messages to status. 2018-10-29 16:18:48 -05:00
Mark Dewing cb685bb50c Write failed CPP 14 compiler output to a file
Update the message and suggestion for Intel compilers.
2018-10-29 14:44:15 -05:00
Mark Dewing 9afbfa74d6 Test that a C++14 library is configured.
Also try to give some advice based on which compiler is detected.
2018-10-25 17:22:07 -05:00
Paul R. C. Kent d5ef9db517
Merge branch 'develop' into ctest_labels 2018-10-24 09:40:59 -04:00
Jaron Krogel a12bd16a67 ctest: consolidate test labeling and apply to quantum espresso tests 2018-10-23 09:03:46 -04:00
Jaron Krogel 3f579cb346 ctest: consolidate and fix cpu limit and coverage tests 2018-10-22 16:16:26 -04:00
Ye Luo 2bff16681b environment variable 2018-10-10 23:15:37 -05:00
Paul Kent f5c7747afb Correct spelling errors across entire source 2018-10-10 19:58:16 -04:00
Jaron Krogel 27bf2a3e24 ctest: remove outdated comment 2018-10-09 07:06:43 -04:00
Jaron Krogel 0d5a30b2a7 ctest: add gpu fails and unsupported 2018-10-08 20:36:34 -04:00
Jaron Krogel 06cf2dc9f8 ctest: complete first pass of unstable tests 2018-10-08 19:13:15 -04:00
Jaron Krogel d34ec497c7 ctest: expand labeling to all tests 2018-10-08 13:08:40 -04:00
Jaron Krogel f190ac190c ctest: add test_labels script to assign ctest labels to tests 2018-10-05 12:23:49 -04:00
Ye Luo 51a54603e4 SIMPLE_RUN_AND_CHECK skip tests needing MPI. 2018-08-22 17:57:31 -05:00
Jaron Krogel 0d71bb4d06 Merge branch 'test_density' of https://github.com/jtkrogel/qmcpack into test_density 2018-08-15 11:25:26 -04:00
Jaron Krogel 8ff77c9a3a remove utils directory for simple_run_and_check 2018-08-15 11:23:38 -04:00
Jaron Krogel 9e72496691 relocate check_scalars.py to tests/scripts 2018-08-15 10:58:11 -04:00
Ye Luo 8097003ae7
Merge branch 'develop' into test_density 2018-08-15 09:57:12 -05:00
Jaron Krogel 317f563e83 Add density and spin density tests 2018-08-13 17:26:42 -04:00
Ye Luo af592d6dff Expose environment variables
N_PROCS_BUILD to restrict the number of processors during compilation
N_CONCURRENT_TESTS to restrict the number of tests running simultaneously.
TEST_SITE_NAME, name to be shown on the site column
2018-08-11 12:00:16 -05:00
Ye Luo 16fb856dc8 Merge remote-tracking branch 'github/develop' into bgq_config 2018-08-03 13:19:36 -05:00
Ye Luo c44f853d5e cmake only once. 2018-08-03 13:18:22 -05:00
Peter Doak 437b5c363a XRay handling move to clang compilers. This removes the cache var
when using another compiler which is good. You'll get an used warning
if you use them with another compiler.
2018-06-20 08:58:46 -04:00
Peter Doak 65aa6b5337 Insuring we check for and use mkl fftw3.h
The diffs are big but primarily I'm moving around the code so the
intel and non-intel paths are less divergent.
Main fix is to check for ffth3.h in mkl/include/fftw, if it is not
there we do not add that include path.
2018-06-07 16:05:12 -04:00
Peter Doak 5441cd4057 even better is to actually test the fftw3.h is in the include path 2018-06-05 17:55:20 -04:00
Peter Doak 3badcb21b8 intel and others no longer require the extra fftw.h 2018-06-05 17:44:20 -04:00
Peter Doak 148bc58308 Fix for getting include directories in correctly 2018-06-05 14:52:29 -04:00
Peter Doak 54b9bff345 mkl fftw should work for all cases 2018-06-05 14:52:29 -04:00
Mark Dewing 28af786303 Move test checking scripts to a central location
Move some test checking scripts to the tests/scripts directory.
Modify the SIMPLE_RUN_AND_CHECK function to look for the test script first in the
current directory (preserves current behavior) and if not found there, check
in the tests/scripts directory.

Also enable the SHO VMC derivative tests in mixed precision.
2018-05-17 14:34:19 -05:00
Mark Dewing 2671efdf78 Add latdev estimator to check_scalars
Add the 'latdev' estimator value to check_scalars.py and the CMake code
that calls it.

Add a small epsilon to values with an error of exactly 0.  This affects
the SHO vmc results for the local energy - the values are constant, but
the averaging processes introduces some numerical error.
2018-05-02 12:00:03 -05:00
Ye Luo 989eedd780 Allow testbeds not in the ctest_script.cmake list. 2018-04-25 11:07:36 -05:00
Paul Kent baa640962e Route CUDA_ARCH 2018-04-23 16:37:59 -04:00
Mark Dewing 7d3a8e8f49
Merge branch 'develop' into afqmc_tests 2018-03-28 23:46:39 -05:00
Jaron Krogel ebe686dbc8 Add AFQMC integration tests 2018-03-28 23:50:18 -04:00
Mark Dewing 9c41ffd470 Fix AFQMC example test scalar.
Check for 'Eloc' (formerly checked for 'Ebound').  Not sure if this is the correct
value to check for, but at least AFQMC builds and test passes.
2018-03-28 16:35:17 -05:00
Mark Dewing 381dc4cb27 Add checks on scalar list in QMC_RUN_AND_CHECK.
Check that the variable passed in with a list of scalar values actually exists.
Second check that each item in that list is known.
2018-03-28 15:57:34 -05:00
Graham Lopez 0174d9e459 add guards for clang compiler 2018-03-27 22:41:01 -04:00
Graham Lopez b39780b717 higher-level guard 2018-03-27 15:15:41 -04:00
Graham Lopez 651c8c8725 fix for unsupported -march=native on summit 2018-03-27 15:15:41 -04:00
Ye Luo 3edd418838 Rename ENABLE_OUTSIDE_MKL to ENABLE_MKL. 2018-03-25 21:53:23 -05:00
Peter Doak 4c47c7ebac You clang version must be able to your glibc posix_memalign 2018-03-22 13:58:12 -04:00
Peter Doak 0a9aedbbd7 del uneeded CMAKE_CXX_FLAGS guard. Clang >= 3.8 posix_memalign 2018-03-22 13:04:39 -04:00
Peter Doak 4ed1339207 cleanup and clarity per Ye's review 2018-03-21 18:49:57 -04:00
Peter Doak 4d11f8a9f6 removed -m64 from findMKL.cmake. 2018-03-21 17:08:55 -04:00
Peter Doak 30b5c1adb1 this lost it PATH_SUFFIXES and quotes were just wrong. 2018-03-21 13:44:50 -04:00
Peter Doak dd59166486 This covers possible systems without posix_memalign 2018-03-20 19:04:00 -04:00
Peter Doak 4d842706e1 Getting rid of cmake warnings 2018-03-20 15:32:15 -04:00
Peter Doak 03bf2fcba5 removed blank line for simpler diff with develop 2018-03-20 14:25:59 -04:00
Peter Doak af39813246 with CMP0056 set ordering of C++11 doesn't need to be changed?
also annoying trailing whitespace eliminated from CMakeLists.txt
2018-03-20 14:25:12 -04:00
Peter Doak 1d69233346 bringing ClangCompilers more in line with develop again 2018-03-20 14:17:52 -04:00
Peter Doak b20ddfa521 Merge branch 'develop' into llvm_5_mkl 2018-03-18 08:32:30 -04:00
Peter Doak 792ba43c78 put __forceinline def for qmcpack back 2018-03-18 08:29:10 -04:00
Graham Lopez 007bcaf411 use existing QMC_OMP to gate openmp in all compilers 2018-03-16 15:48:00 -04:00
Peter Doak 6016e798b5 Working for llvm 5 on high sierra with
cmake -E env BOOST_ROOT="/Users/epd/codes/boost_1_66_0" cmake
-DTEST_MAX_PROCS=4 -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=mpicc
-DCMAKE_CXX_COMPILER=mpic++
-DCMAKE_SHARED_LINKER_FLAGS="-L/usr/local/opt/llvm/lib
-Wl,-rpath,/usr/local/opt/llvm/lib --stdlib=libc++"
-DCMAKE_EXE_LINKER_FLAGS="-L/usr/local/opt/llvm/lib
-Wl,-rpath,/usr/local/opt/llvm/lib --stdlib=libc++"
-DCMAKE_INSTALL_PREFIX=/Users/epd/local/qmcpack
-DMKL_ROOT="/opt/intel/compilers_and_libraries_2018.1.126/mac/mkl"
-DQMC_MPI=1 -DQMC_OMP=1 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DBUILD_PPCONVERT=1 -DENABLE_OUTSIDE_MKL=1 ..
2018-03-16 13:28:15 -04:00
Peter Doak cad3da0bdb beginning of llvm 5 support with no env paths required 2018-03-16 12:48:25 -04:00
Ye Luo 9fa1257a3f Correct -mkl detection.
CMAKE_FLAGS only accept -DVAR:TYPE=VALUE form.
COMPILE_DEFINITIONS is the right one to use.
2018-01-03 19:19:30 -06:00
Mark Dewing 16db862e36
Merge branch 'develop' into hyperion-tests 2017-12-15 23:18:50 -06:00
naromero77 f19c406851 Increase nprocs on hyperion. 2017-12-15 12:28:56 -06:00
Mark Dewing 8ed8a7a3d0 Removed unused CMake testing functions.
Also clears up the cmake deprecation warning about policy CMP0026 (issue #425)
(warning present since cmake 3.9).
2017-12-11 14:14:20 -06:00
Mark Dewing 8019e90651 Check clang version for undefined-var-template.
The -Wno-undefined-var-template option was added in clang 3.9.
Add a version check so this flag is not added for older versions of clang.

Clang 3.8 and earlier issue a warning about the flag that seems to cause
the C++ 11 check to fail.
2017-12-11 12:49:22 -06:00
Mark Dewing 37c8794310 Skip Nexus example tests if numpy is not present
Fixes #484
2017-11-10 10:21:34 -06:00
Jaron Krogel 719c806512 move to threaded Li2STO/HEG tests, update ctest doc 2017-10-06 10:05:28 -04:00
Jaron Krogel bd8189e1d7 Add Li2 STO tests 2017-10-03 16:41:15 -04:00
Jaron Krogel 731b44db7c heg integration tests 2017-09-27 16:50:54 -04:00
Paul Kent 6aa696a5e0 Add N_PROCS_BUILD variable to ctest script. Overrides N_PROCS if defined. Needed to avoid process limits and perform parallel testsing 2017-09-14 10:34:09 -04:00
Ye Luo 9fe1ec5243 Remove using environment variables in CMakeLists.
QMCPACK specific ones are removed.
CC, CXX and library specific ones are managed by CMake.
2017-09-09 19:47:56 -05:00
Paul R. C. Kent c4620159bd Merge pull request #354 from rcclay/cs_fix
Fix variance problem in CSVMC and add CMakeTests
2017-09-06 09:12:00 -04:00
Paul Kent b72501828a Increase compiler versions 2017-09-01 15:54:20 -04:00
Raymond Clay 5f1d585ae3 Fix variance problem in CSVMC and add CMakeTests 2017-08-29 18:30:40 -06:00
Paul Kent 9d47fbf9d2 Hopefully the last version of this fix... 2017-08-29 13:21:57 -04:00
Paul Kent 145cf102d5 Fix 2017-08-29 12:06:16 -04:00
Paul Kent 694966167e Fix order 2017-08-29 11:59:43 -04:00
Paul Kent 1e96a2e77e Route HDF5_ROOT in ctest script 2017-08-29 10:53:45 -04:00
Paul R. C. Kent 5f60c15199 Update IBMCompilers.cmake
Typo fix
2017-08-18 11:27:34 -04:00
Ye Luo eaeb4e4877 Adjust optimization flags for summitdev. 2017-08-17 18:32:10 -04:00
Ye Luo 0142b4aaf9 A big cleaning in CMake. 2017-08-17 00:10:04 -05:00
Ye Luo 3ad54a2db0 Rely on Cray compiler wrapper for cross-compiling. 2017-08-16 23:33:41 -05:00
Ye Luo 03d757a403 Retire all the SSE intrinsic einspline routines. 2017-08-16 23:33:41 -05:00
Ye Luo 0940b484df Add ENABLE_SOA to ctest_script.cmake 2017-08-06 21:30:21 -05:00
Ye Luo fe5fdb18fd Remove the use of TBB allocator. 2017-07-27 16:30:28 -05:00
Ye Luo 9f6b1bc59c Merge branch 'develop' into rebuild-master 2017-07-11 22:43:26 -05:00
Ye Luo 9b879906e0 Remove debug flag in Intel Compiler CMake setup. 2017-07-11 12:18:19 -05:00
Mark Dewing bc859f7ad7 Add merging of gcov files to the nightly tests
Some additional changes from the previous commit for merging gcov files:

With the --long-file-names (-l) and --preserve-paths (-p) options to gcov,
some of the file names would exceed the filesystem limits (255 characters).
One solution for shortening the names is to use the -source-prefix (-s) option
which removes some of the path elements in the name.  The shortened path is
used in the file name and in the Source: tag in the file.
This causes problems with gcovr, so the path prefix is restored to the Source:
tag when merging gcov files.

The processing pipeline for gcov files has an extra step - the long file names
are written to the tgcov_*_raw directories, and then merged to the corresponding
tgcov_* directory.

Many files have some executed code related to static initializers. It clutters
the output to have those included in the output, even though they only have one
line in them and it's considered covered.  Add files of this type to the files
to be removed in 'remove_unwanted_file'.

The gcov file merge and write does not yet handle branch information, which also
includes function headers.  These function headers are necessary for filtering the
static initializers.  Add an explicit step to filter the gcov files in the *_raw
directories.
2017-07-05 17:10:12 -05:00
Ye Luo b2b25162af Fix GPU build on SummitDev. 2017-07-03 00:17:13 -04:00
Ye Luo 093bbf1d7f Merge remote-tracking branch 'github/develop' into rebuild-master 2017-06-05 14:32:29 -05:00
Paul R. C. Kent 63bb56bb3c Merge pull request #249 from ye-luo/restart-test
Add a restart test
2017-06-05 12:38:02 -04:00
Ye Luo 98c104e910 Integrate restart test. 2017-06-04 00:00:46 -05:00
Mark Dewing 063e6f2958 Merge pull request #243 from markdewing/python_module_present
Add check for python modules for estimator tests.
2017-06-01 16:55:59 -05:00
Mark Dewing e2cab5e3a7 Add check for python modules for estimator tests.
Check a list of python modules to ensure they are installed before adding the estimator tests.
The test for module installation is based on whether the module successully imports or not.
If needed, additional tests of module functionality could be added.
2017-06-01 08:36:34 -05:00
Andreas Tillack 9a0fdc8403 Updated cmake compiler detection and settings to work with newer IBM XL compiler on ppc64le architecture as used on OLCF SummitDev. Additionally, updated the build recipe for OLCF SummitDev reflecting the current software stack and this change. 2017-05-31 16:01:54 -04:00
Ye Luo c83e728288 Merge remote-tracking branch 'github/develop' into rebuild-master
Conflicts:
	src/QMCDrivers/DMC/DMCOMP.cpp
	src/QMCDrivers/VMC/VMCSingleOMP.cpp
2017-05-26 23:37:09 -05:00
Mark Dewing 8051b45682 Fixes for clang compilation.
- Enable OpenMP by default (eventually will need to be off by default for Mac, on everywhere else)
- define __forceinclude
- suppress warnings about undefined template variables in src/spline2.  The class variables are
  defined for several types in the *.cpp files.  If they are somehow not present (or if the spline
  templates are used for a new type), there will be link errors.
- arithmetic on void pointers is not allowed.  Cast to char *, since these are byte-granularity addresses.
2017-05-24 09:32:53 -05:00
Paul Young f2e8501de8 incorporate estimator tests and complete manual
1. Implemented SIMPLE_RUN_AND_CHECK function in macros.cmake to run one
input, then run one test script.
2. Incorporated estimator tests in ctest suite.
3. Completed manual entries, including a paragraph on makeClone.

to-do:
1. make symbolic link to tests/solids/bccH_1x1x1_ae/pwscf.pwscf.h5
currently, the links have to be made manually in each estimator test
folder.
2017-05-23 16:58:44 -05:00
Paul Young 4b0d033edd added test not failing 2017-05-23 16:58:12 -05:00
Ye Luo 6e5d459e02 Merge remote-tracking branch 'github/develop' into rebuild-master 2017-05-11 10:16:29 -05:00
Paul Kent 160e05c117 Correct handling of QMC_MPI for ctest 2017-05-10 21:37:11 -04:00
Ye Luo ebd35d123a Set PROCESSORS in QE tests. 2017-05-06 16:51:25 -05:00
Mark Dewing 6cf57dd016 Support manual coverage runs
Move the coverage flags from the ctest script to the compiler scripts.
Both GCC and Clang support the GCC-style output with the --coverage flag.

Use the ENABLE_GCOV flag to add the compiler coverage flag.

Add a script (run_coverage.sh) to create the gcov files (and HTML reports
if gcovr is present) after a build is done with coverage enabled.
2017-05-05 16:35:41 -05:00
Ye Luo be200c3f87 Merge branch 'github-develop' into rebuild-master
Conflicts:
	src/HDF/hdf_traits.h
	src/QMCDrivers/DMC/DMCUpdatePbyP.cpp
	src/QMCDrivers/VMC/VMCUpdatePbyP.cpp
2017-04-07 18:27:34 -05:00
Paul R. C. Kent ff8ab23855 Merge pull request #179 from rcclay/rmc_test_and_tweak
Add ctests for RMC.  Also eliminate multithread chatter from RMCUpdate
2017-04-07 17:55:53 -04:00
Raymond Clay cdd68c9a77 Add ctests for RMC. Also eliminate multithread chatter from RMCUpdate 2017-04-07 14:31:00 -06:00
Paul Kent fccfdc62ba HTTPS required for cdash submissions 2017-04-06 15:52:31 -04:00
Mark Dewing bf1d5fb862 Scripts for running code coverage.
Add CMake module for handling coverage - create gcov files using the 'gcov'
tool, compare different runs, pack up tar files for upload to CDash, etc.

Modify the ctest script to handle coverage.  Activate by using the 'coverage' option
to -S (ctest -S ctest_script.cmake,coverage)
2017-04-03 14:12:21 -05:00
Ye Luo 3b3febf5be Merge branch 'rebuild-master' into LAPW
Conflicts:
	src/QMCWaveFunctions/TrialWaveFunction.cpp
2017-03-23 22:15:09 -05:00
Ye Luo edf7e1508b Merge branch 'github-develop' into rebuild-master 2017-03-23 22:08:34 -05:00
Paul Kent 7134346ab8 Enable AFQMC in testing 2017-03-20 17:04:14 -04:00
Ye Luo ef1992d45d Merge branch 'rebuild-master' into LAPW 2017-03-03 19:56:43 -06:00
Ye Luo a89d00351d Merge branch 'github-develop' into rebuild-master 2017-03-03 19:52:53 -06:00
Paul Kent 22646e03a7 Route timer settings 2017-02-21 15:21:56 -05:00
jeongnim 26793d784f Catch "-ax" as well as "-x" with intel compilers. 2017-02-17 07:50:39 -08:00
Ye Luo 2607652717 Merge branch 'github-develop' into rebuild-master 2017-02-12 21:44:15 -06:00
Mark Dewing 39c6d206ce Soft link pseudopotential files in tests.
Some of the *.BFD.xml files in the test inputs are referenceed using a relative
symbolic link.  Using FILE(COPY ...) will keep the link, which then becomes a
dangling link pointing to nothing.  The previous method of
'cmake -E copy_directory' converted to link to an actual file copy.  The fix is
to treat the psuedopotential files the same as the *.h5 files, and the code
creates a symbolic link to the original file.

Also print a status message with the state of QMC_SYMLINK_TEST_FILES and a short
explanation of the consequences.
2017-02-09 14:25:41 -06:00
Mark Dewing 1d4ecf5965 Symlink only the *.h5 files.
Copy every other file.
2017-02-08 14:39:51 -06:00
Mark Dewing e5c5c837a4 Use symbolic links for test files.
The variable QMC_SYMLINK_TEST_FILES can be used to force a copy instead
of creating a symlink (set it to FALSE).
2017-02-08 14:39:51 -06:00
Ye Luo c1f1efbbed Merge branch 'github-develop' into rebuild-master-up-to-date-as-github
Conflicts:
	CMakeLists.txt
	src/CMakeLists.txt
	src/QMCWaveFunctions/OrbitalBase.h
	src/QMCWaveFunctions/TrialWaveFunction.cpp
2017-02-02 00:12:55 -06:00
jeongnim 3e03c38466 Add -g -debug inline-debug-info for profiling. 2017-02-02 00:01:19 -06:00
jeongnim a6caf375bd CMakeLists.txt sets c++11 and BUILD_MINIAPPS=1
Remove c++11 from Intel and GNU toolchains
2017-02-02 00:01:18 -06:00
Ye Luo 76d994a984 Merge commit 'svn 7346' into rebuild-master
Conflicts:
	src/CMakeLists.txt
	src/config/stdlib/math.h
2017-02-02 00:00:51 -06:00
Jeongnim Kim 24db0d0446 Preparing AoS->SoA transition in the distance table.
The plan is to make DistanceTableData support both AoS (current) and SoA type.
The transition will be rough, since many classes use it. Tackle those
used for the ES computations first. Model Hamiltonians are up to those
who use them. TraceManager is better to be turned off. That has to be
completely rewritten to take advantage of SoA but it will benefit
greatly from the change.

Added in ParticleSet
* setActive(int iat) : signal the iat-particle will be moving; compute
internal data to compute psi.evalGrad
* donePbyP() : signal that the pbyp sweep is done including the substeps
  This is not to update the full internal data until needed for
  energies.

DistanceTableData
* removed unused data members
* added containers used by SoA types
2017-02-01 23:53:31 -06:00
Jeongnim Kim 01084a08a5 Move model Hamiltonians to model.
Add -std=c++11
Remove HDF/hdf_traits.h
2017-02-01 23:53:31 -06:00
Jeongnim Kim 6a1150ba41 Add random directory and CMakeLists.txt change to build with
QMC_BUILD_LEVEL=5
2017-02-01 23:53:31 -06:00
Paul R. C. Kent 50be208cde Merge pull request #67 from ye-luo/add-PW-openBC-test
Add pw open bc test
2017-01-18 16:18:07 -05:00
Paul Kent aaff9669d1 Update ctest script to pass QE_BIN and enable Quantum Espresso testing. Add force to patch script for when run on top of existing source. Add building and caching of QE to Intel2015 builds on oxygen 2017-01-18 14:43:10 -05:00
Ye Luo 24944d53ad add the atomO openBC test starting from qe.
1, Due to the large file size by the vacuum, the wf h5 is generated by pw.x from a DFT run. Once the h5 is generated, the QMC tests can run independently.
2, Enhanced CMake/run_qe.cmake. when proc2=0, nscf step is skipped.
2017-01-17 15:25:24 -06:00
Ye Luo 5be5f64dbb Enhance warning/status printout of handling MKL VML in CMake.
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@7320 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-12-08 01:16:47 +00:00
Nick Romero da56b350cf scripts for nightly testing on KNL.
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@7244 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-11-19 04:35:06 +00:00
Ye Luo 6308396db3 When using Intel compiler, enable std3 einspline routines and disable less performing SSE implementations by default.
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@7169 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-10-07 23:12:23 +00:00
Ye Luo 9cbc1bff81 Add mixed precision support in the ctest script.
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@7168 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-10-07 23:09:56 +00:00
Mark Dewing 23b1d88fa3 Add the QMCPACK label only if the test was actually added to the list of tests.
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@7111 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-09-07 21:10:10 +00:00
Mark Berrill 27a6957837 Removing unnecessary compiler flag that causes some issues on P8 platforms
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@7109 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-09-07 11:33:15 +00:00
Ye Luo 47907130a4 add spin polarized qe tests. qe test set is complete.
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@7088 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-08-25 23:01:41 +00:00
Ye Luo 796202040f correct CMake syntax error.
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@7082 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-08-25 00:34:15 +00:00
Ye Luo 7c037aca29 change the ctest parallel level to 1 in ctest_script.cmake for cetus.
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@7081 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-08-24 22:42:17 +00:00
Ye Luo c118223189 fixed the test labels and introduce dependencies between qe tests.
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@7079 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-08-24 17:37:21 +00:00
Ye Luo 758846504b Initial pw.x -> pw2qmcpack.x -> QMCPACK tests.
use examples/solids/dft-inputs to generate h5 and run the tests in tests/solids/LiH_solid_1x1x1_pp
cmake -D QE_BIN=your_qe_binaray_folder .. to activate these tests.
use ctest -R qe to run the tests.

Also includes:
clean up redundant CMake function definitions in examples/CMakeLists.txt tests/system/CMakeLists.txt, move to CMake/macros.cmake
add CMake/run_qe.cmake to run pw.x and pw2qmcpack.x
add utils/clean_and_link_h5.sh to associate QE run and QMCPACK run



git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@7076 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-08-24 03:41:52 +00:00
Ye Luo e74ea06585 Add a solution to run unit tests which are built cross-platform. Launch unit tests via dispatcher if MPI is used.
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@7062 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-08-11 13:55:22 +00:00
Paul Kent 8d551ac144 Extra info in output
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@7024 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-07-07 00:28:28 +00:00
Paul Kent 3eddd66e5b Tweak quoting
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@7023 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-07-07 00:12:45 +00:00
Paul Kent 403f2e7a28 Adjusting ctest settings
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@7021 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-07-06 23:51:42 +00:00
Paul Kent 05e0bb9ed1 Pass optional arguments to cmake configure line
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@7020 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-07-06 23:40:55 +00:00
Paul Kent b13dd7e5f1 Add facility to autodetect vector math libraries. Currently only
checks (via compile) for working MKL VML. Need to add AMD libm, IBM massv etc.

Covers important use case of using gcc with MKL. Doubles speed of many
spline tests due to importance of phase factor calculation
(Numerics/e2iphi.h) in execution profile with low electron count.

Specifically tested:

export MKLROOT=/opt/intel2016/compilers_and_libraries_2016.3.210/linux/mkl
cmake -DCMAKE_C_COMPILER=mpicc -DCMAKE_CXX_COMPILER=mpicxx -DBLA_VENDOR=Intel10_64lp_seq -DCMAKE_PREFIX_PATH=$MKLROOT/lib ..



git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@7019 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-07-06 21:10:38 +00:00
Paul Kent d17a8539b8 State when CMake find_package is used for libxml2
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@7018 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-07-06 19:53:11 +00:00
Paul Kent d32ad6af79 CMake and library fixes motivated by Cray breakage on Cori at NERSC:
Restore LIBXML2_HOME handling by reintroducing updated  version of
previous QMCPACK FindLibxml2 cmake2 script. LIBXML2_HOME location is
prioritized over the default search paths and can therefore avoid the
use of a "bad" libxml on them. Currently required on Cori at
NERSC with Cray CLE 6.0 due to absence of shared libraries. Updated
FindLibxml2QMC script calls standard cmake package if unsuccessful, so
should not change behaviour on other systems.

Libxml2 and any support libraries must be installed locally to
successfully complete the default-on-cray static build.

Detect if on Cray via CRAYPE_VERSION environment variable, since newer
OS no longer sets CRAYOS_VERSION. Tested on edison, cori, titan, eos.

Remove some eos specific wiring, out of date.

Cori currently requires:

export LIBXML2_HOME=/usr/common/software/libxml2/2.9.3/hsw/
cmake -DQMC_EXTRA_LIBS="/usr/common/software/liblzma/20160630/hsw/lib/liblzma.a" ..

This incantation is clearly fragile. Without this update
/usr/lib64/libxml2.so is picked-up and the build will fail on
link. Symptom of not linking liblzma is lots of lzma_ related
functions not being defined. This is a libxml2 build-related issue and
described in many places on the web.  

These patches should be of interest to anyone receiving a new Cray.



git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@7017 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-07-06 18:09:02 +00:00
Ye Luo 9bf3f8fee3 add SET_HAVE_SSE_FLAGS for cmake.
default 1, use SSE intrinsics in einspline.
if    0, avoid SSE intrinsics in einspline.
remove never used HAVE_AVX and HAVE_AVX2 flags in cmake.


git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6934 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-05-22 17:42:20 +00:00
Ye Luo 0d4019c9c6 add a file missed in r6919.
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6920 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-05-18 01:53:58 +00:00
Mark Berrill f0adfabb11 Modifying ctest script
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6913 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-05-17 16:50:36 +00:00
Mark Berrill 5d7b9807a8 Fixing remaining compile error
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6912 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-05-17 16:44:22 +00:00
Mark Berrill 401895f1d0 Updating ctest script for billmp1
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6890 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-05-12 16:58:44 +00:00
Yubo “Paul” 2d38c23d79 cmake: fixed intel 16 update 2 deprecation warning
discussed changes with P. R. Kent



git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6836 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-03-09 23:49:26 +00:00
Ye Luo d6a1a527ec connect BGQ automated tests to CDash.
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6809 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-03-04 18:50:36 +00:00
Mark Berrill f147b0e68a Changing how compilers are identified in CMake. Adding configure options for clang. Fixing a couple of compile errors for clang.
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6766 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-02-12 20:31:35 +00:00
Mark Dewing 8bb3fe9e36 Remove USE_EXT_MPI_FOR_SERIAL_TESTS to eliminate warning.
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6759 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-02-08 17:46:50 +00:00
Mark Dewing 4cb2d14e0a Fix use of TEST_ADDED argument to RUN_QMC_APP.
Output arguments to functions need to be dereferenced before setting them.
The previous code worked because the caller used the same name (TEST_ADDED)
as in the function code.  The SET command was directly setting the caller's
variable (eg, the TEST_ADDED parameter could have been removed from the RUN_QMC_APP
definition and it would still work, which is not the behavior we want.)

With the change, the function is actually setting the variable that is
given as a parameter in the caller.


git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6758 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-02-08 16:28:07 +00:00
Mark Dewing fcdcd1c951 Rearrange test scripts
Tests work for non-MPI builds.

Increased the default per-test timeout because it was too small for the long tests.

Use a more compact description of the scalar checks.
Add logic so that if a QMC run is not added, subsequent scalar checks are also
not added.

Added an output variable to RUN_QMC_APP so calling code can determine
if the test was added or not (due to to number of MPI processes)


git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6757 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-02-08 15:00:30 +00:00
Paul Kent ec4dd7584b Rename QMCPACK executable qmcpack (was qmcapp). Updated CMake/CTest setup, manual, NEXUS, READMEs. Checked builds on oxygen (gcc, intel2016) before commit.
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6751 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-02-05 20:32:26 +00:00
Mark Dewing ccf80b96e5 Use a failing stub for serial tests.
This is a hack to allow non-MPI builds to get past the cmake stage.


git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6750 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-02-05 17:45:55 +00:00
Paul Kent 74e38926ce Testing setup for titan
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6717 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-01-28 20:14:58 +00:00
Paul Kent ab4401c022 Preliminary support for eos. Only run interactively. Expect problems when used from batch.
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6714 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-01-28 03:06:11 +00:00
Paul Kent dcb603a26e Preliminary support for cori. Only run interactively, probably insufficient for use from batch.
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6713 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-01-27 21:49:05 +00:00
Paul Kent f8a2db9ae9 Run all tests by default in script. Use e.g. -R short to only run short nightly tests
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6708 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-01-25 20:49:40 +00:00
Paul Kent 31bf28d485 Update ctest script to pass QMC_CUDA and QMC_COMPLEX correctly
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6704 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-01-22 20:35:49 +00:00
Paul Kent b07f05c982 Tweaks
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6697 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-01-21 20:59:27 +00:00
Paul Kent 414eade1c2 Typo fix
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6696 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-01-21 20:45:52 +00:00
Paul Kent e1b245b6cf Updated test script
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6694 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-01-21 20:35:42 +00:00
Mark Berrill cd93faea01 Adjusting ctest script
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6693 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-01-21 19:45:49 +00:00
Mark Berrill f1b437d77d Updating Intel CMake files, getting MKL working with Intel, updating README
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6678 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2016-01-05 19:37:18 +00:00
Paul Kent d97fff051a Remove hardwired -O3. Will be set by build type. Suggestion from Ye Luo
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6632 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2015-12-15 21:59:50 +00:00
Mark Berrill 74a6a34cd1 Merging changes
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6626 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2015-12-03 22:41:31 +00:00
Mark Berrill 113a0bc373 Fixing typo in CMake files
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6623 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2015-12-02 22:05:52 +00:00
Mark Berrill 35812bf2dd Updating README for new CMake changes and minor CMake cleanup
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6622 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2015-12-02 20:08:42 +00:00
Ye Luo 1668b7f113 fixed CMake/IntelCompilers.cmake for setting proper macros based on CPU flags.
fixed a printf syntax and argument mismatch.


git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6592 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2015-10-04 22:37:56 +00:00
Ying Wai Li 8e1b72fa33 Updated Intel compiler's flags
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6591 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2015-10-02 21:38:49 +00:00
Ying Wai Li 3809896de8 A few fixes for the CMake cleanup branch merging
* added a few compiler-sepcific files that CMakeLists.txt needs
* added fixes specific to Cray machines


git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6585 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2015-09-25 19:51:10 +00:00
Mark Berrill 622a8929f4 Merging CMake_cleanup branch into trunk
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6583 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2015-09-25 18:06:38 +00:00
Paul Kent fe8ed7ee7d Tweaks/bugfixes around TEST_MAX_PROCS
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6517 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2015-07-21 19:20:36 +00:00
Paul Kent 23bda0fd40 Testing. Yes we can.
Gaussian all electron and pseudopotential tests vs Hartree-Fock numerical results
Tests are setup and described in src/QMCApp/test/CMakeLists.txt
+Jaron's comparison tool check_scalars.py

Only tested on Linux/Mac. Will need tidying, shorter macros.


git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6515 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2015-07-20 23:43:19 +00:00
Raymond Clay 0ba7445f34 Revert changes to main branch.
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6486 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2015-06-17 22:52:08 +00:00
Raymond Clay 0566669c71 Migrated Einspline initialization to interface..
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6484 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2015-06-17 21:41:18 +00:00
Mark Berrill e89a1177c8 Adding CMakePolicy changes for CMake 3.0
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6406 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2014-11-25 21:17:25 +00:00
Mark Berrill 8125d07f31 Adding ctest capabilities
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6402 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2014-11-13 21:21:32 +00:00
Paul Kent 47132eee3f Use Accelerate framework on OS X / Darwin instead of deprecated vecLib. Tested on OS X Mavericks 10.9, should work on Yosemite 10.10
git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6382 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2014-10-27 22:34:22 +00:00
Ying Wai Li 1b5b73cbcc Fixed GPU code compiling problem on Titan
* Updated FindCUDA.cmake to the lastest version (1227)
* Updated TitanCUDA.cmake to make use of Cray's default C/C++ wrappers


git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@6350 e5b18d87-469d-4833-9cc0-8cdfa06e9491
2014-09-04 23:07:32 +00:00