Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
121 commits
Select commit Hold shift + click to select a range
2b752db
flag as development version
akohlmey Jul 22, 2025
4135821
set minimum CMake version to 3.20 and minimum C++ standard to 17
akohlmey Jul 22, 2025
aa9272f
update documentation and some defines to C++17 and CMake 3.20
akohlmey Jul 22, 2025
54d63a9
remove ATC package, docs, and examples
akohlmey Jul 22, 2025
763a724
remove AWPMD package, docs, tests, and examples
akohlmey Jul 22, 2025
c2a870f
remove POEMS package, docs, and examples
akohlmey Jul 23, 2025
46a3274
fix syntax error
akohlmey Jul 23, 2025
a49f2ca
document removed packages and point to 22 July 2025 version
akohlmey Jul 23, 2025
3958c09
remove reference to AWPMD package
akohlmey Jul 23, 2025
8f740ce
disable legacy build for COLVARS and update docs
akohlmey Jul 23, 2025
e48a34b
remove legacy build support for COMPRESS, ELECTRODE, and H5MD
akohlmey Jul 23, 2025
5a3a178
remove packages with libraries from "yes-all"
akohlmey Jul 23, 2025
3fd752a
remove POEMS package from cmake presets
akohlmey Jul 23, 2025
9f81793
update colvars lib folder for removing GNU make build support
akohlmey Jul 23, 2025
33e2c72
next round of removing GNU make support for libs
akohlmey Jul 23, 2025
2a4f14a
remove KIM and MOLFILE from traditional build
akohlmey Jul 23, 2025
55aa904
remove APIP, MDI, ML-HDNNP, ML-PACE, ML-POD, and ML-QUIP form traditi…
akohlmey Jul 24, 2025
66777d3
Merge branch 'develop' into post-stable-changes
akohlmey Jul 25, 2025
a090e07
Merge branch 'develop' into post-stable-changes
akohlmey Jul 25, 2025
d9caeb6
remove GPU, NETCDF, PLUGIN, PYTHON, RHEO, VORONOI, and VTK from legac…
akohlmey Jul 26, 2025
5229021
update makefile help and remove obsolete functionality from Make.sh
akohlmey Jul 26, 2025
8ff96ea
find new location of voro++ makefile patch
akohlmey Jul 26, 2025
98d6546
update and sync with current status
akohlmey Jul 26, 2025
21c52cc
include changes for the GPU package from Trung
akohlmey Jul 26, 2025
efebbb8
remove SCAFACOS from traditional make build
akohlmey Jul 26, 2025
6816783
whitespace
akohlmey Jul 26, 2025
597ff2a
remove PLUMED package support from legacy build system
akohlmey Aug 4, 2025
dffb507
remove QMMM package support from legacy build system
akohlmey Aug 4, 2025
5e7136b
Merge branch 'develop' into post-stable-changes
akohlmey Aug 4, 2025
330cc3f
Merge branch 'develop' into post-stable-changes
akohlmey Aug 5, 2025
5b936cc
remove neighbor and comm mode multi/old
akohlmey Aug 8, 2025
167e452
update docs and examples
akohlmey Aug 8, 2025
65ad212
fix typo
akohlmey Aug 8, 2025
cdbf6f4
Merge branch 'develop' into post-stable-changes
akohlmey Aug 8, 2025
af003d3
Merge branch 'develop' into post-stable-changes
akohlmey Aug 28, 2025
360cb91
Update Install.sh for MACHDYN package which was missed previously
akohlmey Aug 28, 2025
bb689b6
update Install.sh of LEPTON package which was also missed
akohlmey Aug 28, 2025
c368da0
Merge remote-tracking branch 'github/develop' into post-stable-changes
akohlmey Aug 28, 2025
36d771d
Merge remote-tracking branch 'github/develop' into post-stable-changes
akohlmey Aug 28, 2025
9cd688f
Merge remote-tracking branch 'github/develop' into remove-multi-old
akohlmey Aug 29, 2025
f96a89f
small documentation updates to reflect that LAMMPS-GUI is hosted exte…
akohlmey Aug 31, 2025
ef864cd
update flatpak build support for external LAMMPS-GUI
akohlmey Aug 31, 2025
6e39928
add missing override
akohlmey Sep 1, 2025
ccfb9fc
remove unused variables
akohlmey Sep 1, 2025
c887e04
improve error messages in rerun
akohlmey Sep 1, 2025
816bc69
Merge remote-tracking branch 'github/develop' into collected-small-ch…
akohlmey Sep 1, 2025
d01a344
hack to make generating kernels embedding OpenCL code work with paths…
akohlmey Sep 2, 2025
da8b52a
use consistent, non-confusing naming for pair style citations
akohlmey Sep 2, 2025
1ffe8c3
Change of empty read_dump error message.
Bibobu Sep 2, 2025
bc1157b
mention restriction on atom styles
akohlmey Sep 3, 2025
8b1ad88
don't override variable declaration with incompatible type
akohlmey Sep 3, 2025
2b7b918
use qualified auto
akohlmey Sep 3, 2025
ab9e91b
fix typo
akohlmey Sep 3, 2025
90f1c3c
Merge pull request #4708 from akohlmey/collected-small-changes
akohlmey Sep 3, 2025
0805d2d
location of the flatpak YAML file has changed
akohlmey Sep 3, 2025
d3f1ddd
Merge branch 'develop' into remove-multi-old
akohlmey Sep 3, 2025
56cabdc
trigger error message when using neighbor style or communication mode…
akohlmey Sep 3, 2025
7fe8ab6
location of the flatpak YAML file has changed
akohlmey Sep 3, 2025
cd05ae9
trailing underscore was missing to create weblink
akohlmey Sep 3, 2025
4e596e6
Merge pull request #4682 from akohlmey/remove-multi-old
akohlmey Sep 3, 2025
27ca3d7
Merge branch 'develop' into collected-small-changes
akohlmey Sep 3, 2025
faea128
fix off-by-one error on collection index output
akohlmey Sep 3, 2025
3b1cae3
remove unused variable
akohlmey Sep 4, 2025
16fae3b
make sure type pointer is initialized
akohlmey Sep 4, 2025
b45b5fd
remove comm mode multi/old code that was overlooked
akohlmey Sep 4, 2025
8d33bf5
Merge remote-tracking branch 'github/develop' into post-stable-changes
akohlmey Sep 4, 2025
9fb3783
prevent LAMMPS from using KOKKOS styles without enabling KOKKOS mode
akohlmey Sep 4, 2025
f9a07f9
improve some error messages in the velocity command
akohlmey Sep 4, 2025
60cacfa
avoid null pointer dereferences
akohlmey Sep 5, 2025
85b7c5e
recover kim query unit test. use different model to search for.
akohlmey Sep 5, 2025
76a1a96
Fix incompatibilities with CUDA 13 runtime API in Kokkos lib (cherry-…
stanmoore1 Sep 5, 2025
76a18bb
fix cut-n-paste error spotted by coverity scan
akohlmey Sep 5, 2025
1db2e93
Merge pull request #4663 from akohlmey/post-stable-changes
akohlmey Sep 5, 2025
c69dad7
Merge remote-tracking branch 'github/develop' into collected-small-ch…
akohlmey Sep 5, 2025
cf474a6
use auto instead of long iterator type
rbberger Aug 18, 2025
52c7a16
use std::set instead of std::map in group and delete_atoms
rbberger Aug 18, 2025
3d5c848
replace hashlittle with std::hash
akohlmey Sep 6, 2025
f6c8be3
replace std::map with better scaling std::unordered_map
akohlmey Sep 6, 2025
4a6a44b
we should use the value instead of the pointer address for generating…
akohlmey Sep 6, 2025
63fa297
replace inthash functions with std::unordered_map
akohlmey Sep 6, 2025
8859bb7
use auto and avoid chasing pointers due to dynamic allocation of an S…
akohlmey Sep 6, 2025
274cfd2
make check for warning against GCC more specific and drop warning abo…
akohlmey Sep 6, 2025
dac87a4
clarify and update to the current status
akohlmey Sep 6, 2025
2bb3df5
import filesystem changes from PR #4699 with some modifications and d…
akohlmey Sep 6, 2025
8b39d22
add special case for windows to platform::path_dirname()
akohlmey Sep 6, 2025
ade43be
correct arguments for utils::strmatch()
akohlmey Sep 6, 2025
aaf42ca
need more strict pattern to match Windows drive letter only
akohlmey Sep 6, 2025
07c587e
improve error messages in velocity command
akohlmey Sep 7, 2025
a4f709e
improve error messages
akohlmey Sep 7, 2025
2f1f64d
update and synchronize list of examples in README and Manual
akohlmey Sep 7, 2025
f4b96e8
reorder sections of the user's guid to follow each other in a more lo…
akohlmey Sep 7, 2025
2738f77
update error message and explanation
akohlmey Sep 7, 2025
5647708
improve error messages
akohlmey Sep 7, 2025
4413c47
improve error messages
akohlmey Sep 8, 2025
0a57cee
correct variable name which is different from upstream
akohlmey Sep 8, 2025
9fc3100
remove unused variable
akohlmey Sep 8, 2025
0f2c722
add missing multi-threaded override versions for lamda2x() and x2lamda()
akohlmey Sep 8, 2025
a2065df
remove unused variable
akohlmey Sep 8, 2025
06c7d6f
suppress warnings about partially overridden virtual class
akohlmey Sep 9, 2025
527dacf
add lammps_config_has_omp_support() to library interface to query if …
akohlmey Sep 9, 2025
4318f60
fix spelling issues
akohlmey Sep 9, 2025
0c43b36
be more specific
akohlmey Sep 9, 2025
a0aa7e9
upgrade GoogleTest to version 1.17.0
akohlmey Sep 9, 2025
ef86b40
use std::unordered_set for faster random lookups
akohlmey Sep 9, 2025
5f283f3
Merge pull request #4711 from akohlmey/collected-small-changes
akohlmey Sep 9, 2025
0ee5c4e
Step version strings to 10 September 2025
akohlmey Sep 9, 2025
c5f62b8
Fix bug in KOKKOS pair settings, where nargs was hardcoded to 1, by u…
stanmoore1 Sep 9, 2025
752a26f
Remove more duplicate settings classes
stanmoore1 Sep 9, 2025
9f27fba
Download release version of LAMMPS-GUI
akohlmey Sep 10, 2025
9792f6a
Merge pull request #4714 from akohlmey/next_release
akohlmey Sep 10, 2025
27359ed
flag as development version again
akohlmey Sep 11, 2025
255b3be
add comments about file integrety and immutable GitHub releases to se…
akohlmey Sep 11, 2025
abc4e99
fix vector copying issue spotted by clang-tidy
akohlmey Sep 11, 2025
6ba6b92
The KOKKOS version of DPD-REACT requires double precision due to its …
akohlmey Sep 11, 2025
2197219
move packages and tools sections back down the list top manual entries
akohlmey Sep 11, 2025
116c8ae
update title and add a note about external packages
akohlmey Sep 11, 2025
85cb9ae
add false positive
akohlmey Sep 11, 2025
204612a
replace mixed precision hack with proper fix from Stan
akohlmey Sep 11, 2025
0b43f12
Update docs now that KOKKOS supports single/mixed precision
stanmoore1 Sep 11, 2025
0d479ca
Merge pull request #4715 from akohlmey/collected-small-changes
akohlmey Sep 12, 2025
f87be4d
Merge branch 'vmmc' into develop
ohenrich Sep 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/lammps-gui-flatpak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ jobs:
- name: Build flatpak
run: |
mkdir flatpack-state
sed -i -e 's/branch:.*/branch: develop/' tools/lammps-gui/org.lammps.lammps-gui.yml
sed -i -e 's/branch:.*/branch: develop/' cmake/packaging/org.lammps.lammps-gui.yml
flatpak-builder --force-clean --verbose --repo=flatpak-repo \
--install-deps-from=flathub --state-dir=flatpak-state \
--user --ccache --default-branch=${{ github.ref_name }} \
flatpak-build tools/lammps-gui/org.lammps.lammps-gui.yml
flatpak-build cmake/packaging/org.lammps.lammps-gui.yml
flatpak build-bundle --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo \
--verbose flatpak-repo LAMMPS-Linux-x86_64-GUI.flatpak \
org.lammps.lammps-gui ${{ github.ref_name }}
Expand Down
20 changes: 20 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,23 @@ and then merged to `stable` and published as "updates". For a new
stable release the `stable` branch is updated to the corresponding state
of the `release` branch and a new stable tag is applied in addition to
the release tag.

# Integrity of Downloaded Archives

For *all* files that can be downloaded from the "lammps.org" web server
we provide SHA-256 checksum data in files named SHA256SUM. These
checksums can be used to validate the integrity of the downloaded
archives. Please note that we also use symbolic links to point to
the latest or stable releases and the checksums for those files
*will* change (and so their checksums) because the symbolic links
will be updated for new releases.

# Immutable GitHub Releases

Starting with LAMMPS version 10 Sep 2025 the LAMMPS releases published
on GitHub are configured as `immutable`. This means that after the
release is published the release tag cannot be changed or any of the
uploaded assets, i.e. the source tarball, the static Linux executable
tarball and the pre-compiled packages of LAMMPS with LAMMPS-GUI included.
GitHub will generate a release attestation JSON file which can be
used to verify the integrity of the files provided with the release.
75 changes: 27 additions & 48 deletions cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
########################################
# CMake build system
# This file is part of LAMMPS
cmake_minimum_required(VERSION 3.16)
cmake_minimum_required(VERSION 3.20)
########################################
# initialize version variables with project command
if(POLICY CMP0048)
Expand Down Expand Up @@ -140,25 +140,26 @@ if((PKG_KOKKOS) AND (Kokkos_ENABLE_CUDA) AND (LAMMPS_CXX_COMPILER_NAME STREQUAL
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Xcudafe --diag_suppress=unrecognized_pragma,--diag_suppress=128,--diag_suppress=186")
endif()

# we *require* C++11 without extensions but prefer C++17.
# Kokkos requires at least C++17 (currently)
# We *require* C++17 without extensions
# Kokkos also requires at least C++17 (currently)
if(NOT CMAKE_CXX_STANDARD)
if(cxx_std_17 IN_LIST CMAKE_CXX_COMPILE_FEATURES)
# uncomment in case we plan to switch to C++20 as minimum standard
# if(cxx_std_20 IN_LIST CMAKE_CXX_COMPILE_FEATURES)
# set(CMAKE_CXX_STANDARD 20)
# else()
set(CMAKE_CXX_STANDARD 17)
else()
set(CMAKE_CXX_STANDARD 11)
endif()
# endif()
endif()
if(CMAKE_CXX_STANDARD LESS 11)
message(FATAL_ERROR "C++ standard must be set to at least 11")
if(CMAKE_CXX_STANDARD LESS 17)
message(FATAL_ERROR "C++ standard must be set to at least 17")
endif()
if(PKG_KOKKOS AND (CMAKE_CXX_STANDARD LESS 17))
set(CMAKE_CXX_STANDARD 17)
endif()
# turn off C++17 check in lmptype.h
if(LAMMPS_CXX11)
add_compile_definitions(LAMMPS_CXX11)
endif()
# turn off C++20 check in lmptype.h
#if(LAMMPS_CXX17)
# add_compile_definitions(LAMMPS_CXX17)
#endif()
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF CACHE BOOL "Use compiler extensions")
# ugly hacks for MSVC which by default always reports an old C++ standard in the __cplusplus macro
Expand All @@ -178,15 +179,9 @@ endif()
# warn about potentially problematic GCC compiler versions
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if (CMAKE_CXX_STANDARD GREATER_EQUAL 17)
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0)
message(WARNING "Using ${CMAKE_CXX_COMPILER_ID} compiler version ${CMAKE_CXX_COMPILER_VERSION} "
"with C++17 is not recommended. Please use ${CMAKE_CXX_COMPILER_ID} compiler version 9.x or later")
endif()
endif()
if (CMAKE_CXX_STANDARD GREATER_EQUAL 11)
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.0)
message(WARNING "Using ${CMAKE_CXX_COMPILER_ID} compiler version ${CMAKE_CXX_COMPILER_VERSION} "
"with C++11 is not recommended. Please use ${CMAKE_CXX_COMPILER_ID} compiler version 5.x or later")
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.3)
message(WARNING "Using the GNU compilers version ${CMAKE_CXX_COMPILER_VERSION} with C++17 "
"or later is not recommended. Please use the GNU compilers version 9.3 or later")
endif()
endif()
endif()
Expand Down Expand Up @@ -242,6 +237,13 @@ file(GLOB MAIN_SOURCES CONFIGURE_DEPENDS ${LAMMPS_SOURCE_DIR}/main.cpp)
list(REMOVE_ITEM ALL_SOURCES ${MAIN_SOURCES})
add_library(lammps ${ALL_SOURCES})

# add extra libraries for std::filesystem with older compilers
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.1)
target_link_libraries(lammps PRIVATE stdc++fs)
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0)
target_link_libraries(lammps PRIVATE c++fs)
endif()

# tell CMake to export all symbols to a .dll on Windows with MinGW cross-compilers
if(BUILD_SHARED_LIBS AND (CMAKE_SYSTEM_NAME STREQUAL "Windows") AND CMAKE_CROSSCOMPILING)
set_target_properties(lammps PROPERTIES LINK_FLAGS "-Wl,--export-all-symbols")
Expand All @@ -263,8 +265,6 @@ set(STANDARD_PACKAGES
AMOEBA
APIP
ASPHERE
ATC
AWPMD
BOCS
BODY
BPM
Expand Down Expand Up @@ -325,7 +325,6 @@ set(STANDARD_PACKAGES
PHONON
PLUGIN
PLUMED
POEMS
PTM
PYTHON
QEQ
Expand Down Expand Up @@ -438,7 +437,6 @@ endif()
# "hard" dependencies between packages resulting
# in an error instead of skipping over files
pkg_depends(ML-IAP ML-SNAP)
pkg_depends(ATC MANYBODY)
pkg_depends(LATBOLTZ MPI)
pkg_depends(SCAFACOS MPI)
pkg_depends(AMOEBA KSPACE)
Expand Down Expand Up @@ -516,7 +514,7 @@ if((CMAKE_CXX_COMPILER_ID STREQUAL "Intel") AND (CMAKE_CXX_STANDARD GREATER_EQUA
PROPERTIES COMPILE_OPTIONS "-std=c++14")
endif()

if(PKG_ATC OR PKG_AWPMD OR PKG_ML-QUIP OR PKG_ML-POD OR PKG_ELECTRODE OR PKG_RHEO OR BUILD_TOOLS)
if(PKG_ML-QUIP OR PKG_ML-POD OR PKG_ELECTRODE OR PKG_RHEO OR BUILD_TOOLS)
if (NOT USE_INTERNAL_LINALG)
find_package(LAPACK)
find_package(BLAS)
Expand Down Expand Up @@ -677,17 +675,15 @@ endforeach()
##############################################
# add lib sources of (simple) enabled packages
############################################
foreach(PKG_LIB POEMS ATC AWPMD H5MD)
foreach(PKG_LIB H5MD)
if(PKG_${PKG_LIB})
string(TOLOWER "${PKG_LIB}" PKG_LIB)
file(GLOB_RECURSE ${PKG_LIB}_SOURCES CONFIGURE_DEPENDS
${LAMMPS_LIB_SOURCE_DIR}/${PKG_LIB}/[^.]*.c ${LAMMPS_LIB_SOURCE_DIR}/${PKG_LIB}/[^.]*.cpp)
add_library(${PKG_LIB} STATIC ${${PKG_LIB}_SOURCES})
set_target_properties(${PKG_LIB} PROPERTIES OUTPUT_NAME lammps_${PKG_LIB}${LAMMPS_MACHINE})
target_link_libraries(lammps PRIVATE ${PKG_LIB})
if(PKG_LIB STREQUAL "awpmd")
target_include_directories(awpmd PUBLIC ${LAMMPS_LIB_SOURCE_DIR}/awpmd/systems/interact ${LAMMPS_LIB_SOURCE_DIR}/awpmd/ivutils/include)
elseif(PKG_LIB STREQUAL "h5md")
if(PKG_LIB STREQUAL "h5md")
target_include_directories(h5md PUBLIC ${LAMMPS_LIB_SOURCE_DIR}/h5md/include ${HDF5_INCLUDE_DIRS})
else()
target_include_directories(${PKG_LIB} PUBLIC ${LAMMPS_LIB_SOURCE_DIR}/${PKG_LIB})
Expand All @@ -699,23 +695,6 @@ if(PKG_ELECTRODE OR PKG_ML-POD)
target_link_libraries(lammps PRIVATE ${LAPACK_LIBRARIES})
endif()

if(PKG_AWPMD)
target_link_libraries(awpmd PRIVATE ${LAPACK_LIBRARIES})
endif()

if(PKG_ATC)
if(LAMMPS_SIZES STREQUAL "BIGBIG")
message(FATAL_ERROR "The ATC Package is not compatible with -DLAMMPS_BIGBIG")
endif()
if(BUILD_MPI)
target_link_libraries(atc PRIVATE ${LAPACK_LIBRARIES} MPI::MPI_CXX)
else()
target_link_libraries(atc PRIVATE ${LAPACK_LIBRARIES} mpi_stubs)
endif()
target_include_directories(atc PRIVATE ${LAMMPS_SOURCE_DIR})
target_compile_definitions(atc PRIVATE -DLAMMPS_${LAMMPS_SIZES})
endif()

if(PKG_H5MD)
include(Packages/H5MD)
endif()
Expand Down
24 changes: 12 additions & 12 deletions cmake/Modules/LAMMPSInterfacePlugin.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,26 @@ if(MSVC)
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
endif()

# We *require* C++17 without extensions
# Kokkos also requires at least C++17 (currently)
if(NOT CMAKE_CXX_STANDARD)
if(cxx_std_17 IN_LIST CMAKE_CXX_COMPILE_FEATURES)
# uncomment in case we plan to switch to C++20 as minimum standard
# if(cxx_std_20 IN_LIST CMAKE_CXX_COMPILE_FEATURES)
# set(CMAKE_CXX_STANDARD 20)
# else()
set(CMAKE_CXX_STANDARD 17)
else()
set(CMAKE_CXX_STANDARD 11)
endif()
endif()
if(CMAKE_CXX_STANDARD LESS 11)
message(FATAL_ERROR "C++ standard must be set to at least 11")
# endif()
endif()
if(CMAKE_CXX_STANDARD LESS 17)
message(WARNING "Selecting C++17 standard is preferred over C++${CMAKE_CXX_STANDARD}")
message(FATAL_ERROR "C++ standard must be set to at least 17")
endif()
if(PKG_KOKKOS AND (CMAKE_CXX_STANDARD LESS 17))
set(CMAKE_CXX_STANDARD 17)
endif()
# turn off C++17 check in lmptype.h
if(LAMMPS_CXX11)
add_compile_definitions(LAMMPS_CXX11)
endif()
# turn off C++20 check in lmptype.h
#if(LAMMPS_CXX17)
# add_compile_definitions(LAMMPS_CXX17)
#endif()
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# Need -restrict with Intel compilers
Expand Down
2 changes: 2 additions & 0 deletions cmake/Modules/OpenCLUtils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ function(WriteOpenCLHeader varname outfile files)
separate_arguments(files)

foreach(filename ${files})
# In case ${filename} would have blanks, CMake will have replaced them with ';'. Revert:
string(REPLACE ";" " " filename "${filename}")
file(READ ${filename} content)
string(REGEX REPLACE "\\s*//[^\n]*\n" "\n" content "${content}")
string(REGEX REPLACE "\\\\" "\\\\\\\\" content "${content}")
Expand Down
10 changes: 5 additions & 5 deletions cmake/Modules/Packages/INTEL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ string(TOUPPER ${INTEL_ARCH} INTEL_ARCH)

find_package(Threads QUIET)
if(Threads_FOUND)
set(INTEL_LRT_MODE "threads" CACHE STRING "Long-range threads mode (none, threads, or c++11)")
set(INTEL_LRT_MODE "threads" CACHE STRING "Long-range threads mode (none, threads, or c++17)")
else()
set(INTEL_LRT_MODE "none" CACHE STRING "Long-range threads mode (none, threads, or c++11)")
set(INTEL_LRT_MODE "none" CACHE STRING "Long-range threads mode (none, threads, or c++17)")
endif()
set(INTEL_LRT_VALUES none threads c++11)
set(INTEL_LRT_VALUES none threads c++17)
set_property(CACHE INTEL_LRT_MODE PROPERTY STRINGS ${INTEL_LRT_VALUES})
validate_option(INTEL_LRT_MODE INTEL_LRT_VALUES)
string(TOUPPER ${INTEL_LRT_MODE} INTEL_LRT_MODE)
Expand All @@ -29,9 +29,9 @@ if(INTEL_LRT_MODE STREQUAL "THREADS")
message(FATAL_ERROR "Must have working threads library for Long-range thread support")
endif()
endif()
if(INTEL_LRT_MODE STREQUAL "C++11")
if(INTEL_LRT_MODE STREQUAL "C++17")
if(Threads_FOUND)
target_compile_definitions(lammps PRIVATE -DLMP_INTEL_USELRT -DLMP_INTEL_LRT11)
target_compile_definitions(lammps PRIVATE -DLMP_INTEL_USELRT -DLMP_INTEL_LRT17)
target_link_libraries(lammps PRIVATE Threads::Threads)
else()
message(FATAL_ERROR "Must have working threads library for Long-range thread support")
Expand Down
2 changes: 1 addition & 1 deletion cmake/Modules/Packages/VORONOI.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if(DOWNLOAD_VORO)
ExternalProject_Add(voro_build
URL ${VORO_URL}
URL_MD5 ${VORO_MD5}
PATCH_COMMAND patch -b -p0 < ${LAMMPS_LIB_SOURCE_DIR}/voronoi/voro-make.patch
PATCH_COMMAND patch -b -p0 < ${LAMMPS_DIR}/cmake/patches/voro-make.patch
CONFIGURE_COMMAND ""
BUILD_COMMAND make ${VORO_BUILD_OPTIONS}
BUILD_IN_SOURCE 1
Expand Down
Loading