Skip to content

Commit c0b71f0

Browse files
committed
chore: bump LAMMPS to stable_22Jul2025
1 parent 43504d3 commit c0b71f0

8 files changed

Lines changed: 20 additions & 20 deletions

File tree

.devcontainer/build_cxx.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ cmake -D ENABLE_TENSORFLOW=ON \
1313
-D ENABLE_PYTORCH=ON \
1414
-D ENABLE_PADDLE=ON \
1515
-D CMAKE_INSTALL_PREFIX=${SCRIPT_PATH}/../dp/ \
16-
-D LAMMPS_VERSION=stable_29Aug2024_update1 \
16+
-D LAMMPS_VERSION=stable_22Jul2025 \
1717
-D CMAKE_BUILD_TYPE=Debug \
1818
-D BUILD_TESTING:BOOL=TRUE \
1919
-D TENSORFLOW_ROOT=${TENSORFLOW_ROOT} \

doc/install/install-lammps.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ DeePMD-kit will generate a module called `USER-DEEPMD` in the `build` directory,
1717

1818
```bash
1919
cd /some/workspace
20-
wget https://github.com/lammps/lammps/archive/stable_29Aug2024_update1.tar.gz
21-
tar xf stable_29Aug2024_update1.tar.gz
20+
wget https://github.com/lammps/lammps/archive/stable_22Jul2025.tar.gz
21+
tar xf stable_22Jul2025.tar.gz
2222
```
2323

24-
The source code of LAMMPS is stored in the directory `lammps-stable_29Aug2024_update1`.
24+
The source code of LAMMPS is stored in the directory `lammps-stable_22Jul2025`.
2525

2626
Then, you can [build LAMMPS](https://docs.lammps.org/Build.html) with either make or CMake.
2727

@@ -30,7 +30,7 @@ Then, you can [build LAMMPS](https://docs.lammps.org/Build.html) with either mak
3030
Now go into the LAMMPS code and copy the DeePMD-kit module like this
3131

3232
```bash
33-
cd lammps-stable_29Aug2024_update1/src/
33+
cd lammps-stable_22Jul2025/src/
3434
cp -r $deepmd_source_dir/source/build/USER-DEEPMD .
3535
make yes-kspace
3636
make yes-extra-fix
@@ -60,8 +60,8 @@ make no-user-deepmd
6060
Now go into the LAMMPS directory and create a directory called `build`:
6161

6262
```bash
63-
mkdir -p lammps-stable_29Aug2024_update1/build/
64-
cd lammps-stable_29Aug2024_update1/build/
63+
mkdir -p lammps-stable_22Jul2025/build/
64+
cd lammps-stable_22Jul2025/build/
6565
```
6666

6767
Patch the LAMMPS `CMakeLists.txt` file:
@@ -94,15 +94,15 @@ Now download the LAMMPS code (`8Apr2021` or later), and uncompress it:
9494

9595
```bash
9696
cd /some/workspace
97-
wget https://github.com/lammps/lammps/archive/stable_29Aug2024_update1.tar.gz
98-
tar xf stable_29Aug2024_update1.tar.gz
97+
wget https://github.com/lammps/lammps/archive/stable_22Jul2025.tar.gz
98+
tar xf stable_22Jul2025.tar.gz
9999
```
100100

101-
The source code of LAMMPS is stored in the directory `lammps-stable_29Aug2024_update1`. The directory of the source code should be specified as the CMAKE argument `LAMMPS_SOURCE_ROOT` during installation of the DeePMD-kit C++ interface. Now go into the LAMMPS directory and create a directory called `build`
101+
The source code of LAMMPS is stored in the directory `lammps-stable_22Jul2025`. The directory of the source code should be specified as the CMAKE argument `LAMMPS_SOURCE_ROOT` during installation of the DeePMD-kit C++ interface. Now go into the LAMMPS directory and create a directory called `build`
102102

103103
```bash
104-
mkdir -p lammps-stable_29Aug2024_update1/build/
105-
cd lammps-stable_29Aug2024_update1/build/
104+
mkdir -p lammps-stable_22Jul2025/build/
105+
cd lammps-stable_22Jul2025/build/
106106
```
107107

108108
Now build LAMMPS. Note that `PLUGIN` must be enabled, and `BUILD_SHARED_LIBS` must be set to `yes`. You can install any other package you want.

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ docs = [
108108
"sphinx-remove-toctrees",
109109
]
110110
lmp = [
111-
"lammps~=2024.8.29.1.0",
111+
"lammps~=2025.7.22.0.0",
112112
]
113113
ipi = [
114114
"ipi",
@@ -245,7 +245,7 @@ repair-wheel-command = """delocate-wheel --require-archs {delocate_archs} -w {de
245245

246246
[tool.cibuildwheel.macos.environment]
247247
PIP_PREFER_BINARY = "1"
248-
DP_LAMMPS_VERSION = "stable_29Aug2024_update1"
248+
DP_LAMMPS_VERSION = "stable_22Jul2025"
249249
DP_ENABLE_IPI = "1"
250250
DP_ENABLE_PYTORCH = "1"
251251
DP_ENABLE_PADDLE = "1"
@@ -282,7 +282,7 @@ before-build = [
282282
]
283283
[tool.cibuildwheel.linux.environment]
284284
PIP_PREFER_BINARY = "1"
285-
DP_LAMMPS_VERSION = "stable_29Aug2024_update1"
285+
DP_LAMMPS_VERSION = "stable_22Jul2025"
286286
DP_ENABLE_IPI = "1"
287287
DP_ENABLE_PYTORCH = "1"
288288
DP_ENABLE_PADDLE = "1"

source/install/build_cc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ cmake -D ENABLE_TENSORFLOW=ON \
2626
-D USE_TF_PYTHON_LIBS=TRUE \
2727
-D USE_PT_PYTHON_LIBS=TRUE \
2828
${CUDA_ARGS} \
29-
-D LAMMPS_VERSION=stable_29Aug2024_update1 \
29+
-D LAMMPS_VERSION=stable_22Jul2025 \
3030
..
3131
cmake --build . -j${NPROC}
3232
cmake --install .

source/install/build_from_c.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ NPROC=$(nproc --all)
1313
BUILD_TMP_DIR=${SCRIPT_PATH}/../build
1414
mkdir -p ${BUILD_TMP_DIR}
1515
cd ${BUILD_TMP_DIR}
16-
cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DDEEPMD_C_ROOT=${DEEPMD_C_ROOT} -DLAMMPS_VERSION=stable_29Aug2024_update1 ..
16+
cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DDEEPMD_C_ROOT=${DEEPMD_C_ROOT} -DLAMMPS_VERSION=stable_22Jul2025 ..
1717
cmake --build . -j${NPROC}
1818
cmake --install .
1919
cmake --build . --target=lammps

source/install/build_lammps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ BUILD_TMP_DIR=${SCRIPT_PATH}/../build_lammps
1414
mkdir -p ${BUILD_TMP_DIR}
1515
cd ${BUILD_TMP_DIR}
1616
# download LAMMMPS
17-
LAMMPS_VERSION=stable_29Aug2024_update1
17+
LAMMPS_VERSION=stable_22Jul2025
1818
if [ ! -d "lammps-${LAMMPS_VERSION}" ]; then
1919
curl -L -o lammps.tar.gz https://github.com/lammps/lammps/archive/refs/tags/${LAMMPS_VERSION}.tar.gz
2020
tar vxzf lammps.tar.gz

source/install/test_cc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ INSTALL_PREFIX=${SCRIPT_PATH}/../../dp_test
1717
BUILD_TMP_DIR=${SCRIPT_PATH}/../build_tests
1818
mkdir -p ${BUILD_TMP_DIR}
1919
cd ${BUILD_TMP_DIR}
20-
cmake -DINSTALL_TENSORFLOW=TRUE -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DTENSORFLOW_ROOT=${INSTALL_PREFIX} -DBUILD_TESTING:BOOL=TRUE -DLAMMPS_VERSION=stable_29Aug2024_update1 ${CUDA_ARGS} ..
20+
cmake -DINSTALL_TENSORFLOW=TRUE -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DTENSORFLOW_ROOT=${INSTALL_PREFIX} -DBUILD_TESTING:BOOL=TRUE -DLAMMPS_VERSION=stable_22Jul2025 ${CUDA_ARGS} ..
2121
cmake --build . -j${NPROC}
2222
cmake --install .
2323
ctest --output-on-failure

source/install/test_cc_local.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ cmake \
2828
-D USE_PT_PYTHON_LIBS=TRUE \
2929
-D CMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} \
3030
-D BUILD_TESTING:BOOL=TRUE \
31-
-D LAMMPS_VERSION=stable_29Aug2024_update1 \
31+
-D LAMMPS_VERSION=stable_22Jul2025 \
3232
${CUDA_ARGS} ..
3333
cmake --build . -j${NPROC}
3434
cmake --install .

0 commit comments

Comments
 (0)