Commit Graph

947 Commits

Author SHA1 Message Date
Axel Kohlmeyer 39cefc4eb3
Merge pull request #2241 from yafshar/cmake
Update the deprecated property and fix the empty value on macOS
2020-07-20 12:23:20 -04:00
Yaser Afshar 05c0b5d5ce Update the deprecated property and fix the empty value on macOS
The `IMPORTED_LINK_INTERFACE_LIBRARIES` is deprecated and is
updated to `INTERFACE_LINK_LIBRARIES` instead.
On macOS `CMAKE_THREAD_LIBS_INIT` is empty since empty the thread
functions are provided by the system libraries. To avoid getting
`set_target_properties called with incorrect number of arguments` error
message, we put it inside double quotes.
2020-07-18 15:12:31 -05:00
Axel Kohlmeyer c5698ac994
Merge branch 'collected-small-fixes' of github.com:rbberger/lammps into collected-small-changes 2020-07-17 14:03:17 -04:00
Axel Kohlmeyer 73a076daf3
don't set CMAKE_TUNE_FLAGS to anything by default 2020-07-15 16:19:48 -04:00
Axel Kohlmeyer aa82608142
print warning for unknown/unsupported CUDA versions 2020-07-15 11:28:33 -04:00
Axel Kohlmeyer a082895b90
update CMake script for GPU package to include handling of Arch 8.0 and CUDA 11 2020-07-15 11:08:06 -04:00
Richard Berger fadfb1b482
Allow changing CMAKE_CXX_EXTENSIONS option to resolve #2079 2020-07-03 12:41:49 -04:00
Axel Kohlmeyer 8929ba42cd
enable exceptions by default when testing is enabled, so we can test for failures 2020-07-02 09:50:15 -04:00
Axel Kohlmeyer 66271448ae
Merge pull request #2167 from Vsevak/master
Update GPU CMake and Makefile scripts for ROCm v3.5
2020-06-26 13:43:32 -04:00
Axel Kohlmeyer cd6de39319
whitespace 2020-06-25 15:35:25 -04:00
Axel Kohlmeyer a7d2b792a8
Merge branch 'master' into test-updates 2020-06-24 17:25:55 -04:00
Axel Kohlmeyer 3525d1f104
simplify suppression handling by creating a custom local file 2020-06-24 13:35:36 -04:00
Axel Kohlmeyer 57538fb91c
add leak sanitizer option 2020-06-24 13:34:47 -04:00
Axel Kohlmeyer 5ea9b1b38d
simplify detection and application of valgrind suppressions 2020-06-24 09:33:19 -04:00
Richard Berger 8cec13a038
Add memory checker support in CMake
If ENABLE_TESTING is ON, you can now use memory checking tools to run the test
suite and check for memory leaks. By default CMake will try to find valgrind in
your path and set some default options.

To customize this behavior use the MEMORYCHECK_COMMAND and
MEMORYCHECK_COMMAND_OPTIONS variables. To run tests with the memory checker,
use the MemCheck action in ctest:

Run entire test suite:

ctest -T MemCheck

Run single test:

ctest -T MemCheck -R TESTNAME

Run test in verbose mode:

ctest -V -T MemCheck -R TESTNAME
2020-06-23 13:35:59 -04:00
Axel Kohlmeyer 2e48ea8680
include MLIAP package in cross-compiler builds 2020-06-23 07:11:30 -04:00
Axel Kohlmeyer ac48f2dd67
add a hard dependency of MLIAP on SNAP 2020-06-22 13:30:43 -04:00
Axel Kohlmeyer 233b56105a
Merge branch 'master' into mliap 2020-06-22 11:24:49 -04:00
Axel Kohlmeyer 75114afc0e
integrate MLIAP package into CMake procedure 2020-06-22 11:24:44 -04:00
Vsevak 723b9e6760 Try to keep compatibility with deprecated ROCm hcc compiler 2020-06-20 15:17:54 +03:00
Axel Kohlmeyer 8f4e18ba3a
change logic of selecting and allowing sanitizer options to be compatible with unsupported compilers 2020-06-19 11:30:38 -04:00
Axel Kohlmeyer e934f7bac3
try to work around linker issues with older CMake versions and using coverage or sanitizers 2020-06-19 00:20:20 -04:00
Vsevak 2ea5d9956a find_package is unnecessary for rocprim 2020-06-19 00:01:03 +03:00
Axel Kohlmeyer b866ea68f6
make sanitizers an explicit cmake option (again) so we can set the flags properly 2020-06-18 11:46:42 -04:00
Axel Kohlmeyer d6ca98cb44
don't validate compiler flags provided with CMAKE_TUNE_FLAGS anymore
closes #2084
2020-06-17 23:47:55 -04:00
Vsevak d3baa414d2 Fix cmake for GPU ROCm 3.5 backend 2020-06-17 23:33:16 +03:00
Axel Kohlmeyer 2d52a09d08
patch the source code to the ScaFaCoS lib with a proper fix instead of working around it with compiler flags 2020-06-17 13:01:29 -04:00
Axel Kohlmeyer 34e46cc336
add workaround to USER-SCAFACOS package CMake script for linker error in FMM with GNU gcc 10.0 2020-06-17 07:41:00 -04:00
Axel Kohlmeyer fd8cfed86d
fix typo 2020-06-15 17:33:50 -04:00
Axel Kohlmeyer 14c22a004a
Merge branch 'master' into use-clang-format-demo
# Conflicts:
#	unittest/force-styles/pair_style.cpp
#	unittest/utils/test_utils.cpp
2020-06-15 16:14:13 -04:00
Axel Kohlmeyer 4a3d9afb54
Merge pull request #2154 from rbberger/coding_standard
Add utilities for checking code
2020-06-15 15:32:35 -04:00
Axel Kohlmeyer 0ca7270668
re-enable USER-MESONT package for MinGW cross compilation 2020-06-15 13:47:16 -04:00
Axel Kohlmeyer 0199e369fa
work around race condition and minimizing download attemps for transparently downloaded potential files 2020-06-15 13:46:54 -04:00
Axel Kohlmeyer 9aee8d41bd
Merge branch 'master' into collected-small-changes 2020-06-15 12:12:45 -04:00
Richard Berger e840fa23f1
Add format-tests target 2020-06-15 11:21:43 -04:00
Axel Kohlmeyer 57eab1f785
USER-MESONT fails to download with Win64 for some strange reason. disabling from mingw preset for now 2020-06-15 11:12:55 -04:00
Axel Kohlmeyer b5ee87697a
workaround for GNU Fortran 10 and later when compiling downloaded ScaFaCoS lib 2020-06-15 10:59:32 -04:00
Axel Kohlmeyer b3a99f3165
add and document new "download" preset 2020-06-14 19:50:14 -04:00
Axel Kohlmeyer 9b0213f1ab
small CMake tweaks from progguide branch 2020-06-13 12:03:50 -04:00
Richard Berger 49982e22bf
Add check for permissions 2020-06-13 09:54:12 -04:00
Richard Berger fcd3e9a3f9
Make quiet Python 3 check 2020-06-13 08:40:27 -04:00
Axel Kohlmeyer ec6d3586ce
require at least python 3.5 for building docs and import CMake improvements from progguide branch 2020-06-13 01:20:24 -04:00
Richard Berger cf5fa3959c
Add first version of whitespace utility 2020-06-12 21:52:51 -04:00
Axel Kohlmeyer b246c96056
remove duplicate package name 2020-06-12 06:36:44 -04:00
Axel Kohlmeyer d61d8899ff
Merge branch 'fetch-potentials' into feature-cnt 2020-06-12 05:54:45 -04:00
Axel Kohlmeyer cf5c748fb4
Merge branch 'master' into feature-cnt 2020-06-12 05:53:17 -04:00
Axel Kohlmeyer b9303378ac
move pair style mesocnt from USER-MISC to (upcoming) USER-MESONT package
the remaining documentation and README files will be updated once USER-MESONT is integrated
2020-06-11 17:41:19 -04:00
Axel Kohlmeyer 1a1cc99144
use correct expression for source folder. small output tweak. 2020-06-10 12:41:20 -04:00
Axel Kohlmeyer 6891fa2610
update a few URLs to use https: instead of http: 2020-06-10 12:34:09 -04:00
Axel Kohlmeyer f36a84bdd3
add CMake support for fetching external potential files 2020-06-10 12:29:48 -04:00