modernize CMake script code and add version tests for Clang and Intel to switch to OpenMP4 semantics

This commit is contained in:
Axel Kohlmeyer
2020-04-11 18:35:37 -04:00
parent 7a16567e2a
commit 3fa7265ff8
2 changed files with 10 additions and 6 deletions

View File

@ -23,8 +23,8 @@
//
// To date, most compilers still accept the OpenMP 3.0 form,
// so this is what LAMMPS primarily uses. For those compilers
// that strictly implement OpenMP 4.0 (such as GCC 9.0), we
// give up default(none).
// that strictly implement OpenMP 4.0 (such as GCC 9.0 and later
// or Clang 10.0 and later), we give up default(none).
#if LAMMPS_OMP_COMPAT == 4
# define LMP_SHARED(...)
# define LMP_DEFAULT_NONE default(shared)