Skip to content

Commit 0fe38c8

Browse files
authored
chore(deps): bump LAMMPS to stable_22Jul2025_update1 (#4955)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - Documentation - Updated installation guide to reference LAMMPS stable_22Jul2025_update1 in all commands, paths, and environment variables. - Chores - Bumped LAMMPS version to stable_22Jul2025_update1 across build and test workflows. - Updated CI environment variables to use the new LAMMPS version. - Refreshed Python dependency pin for LAMMPS (mpi) to 2025.7.22.1.0. - Tests - Aligned test configurations to target LAMMPS stable_22Jul2025_update1. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 354c301 commit 0fe38c8

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_22Jul2025 \
16+
-D LAMMPS_VERSION=stable_22Jul2025_update1 \
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_22Jul2025.tar.gz
21-
tar xf stable_22Jul2025.tar.gz
20+
wget https://github.com/lammps/lammps/archive/stable_22Jul2025_update1.tar.gz
21+
tar xf stable_22Jul2025_update1.tar.gz
2222
```
2323

24-
The source code of LAMMPS is stored in the directory `lammps-stable_22Jul2025`.
24+
The source code of LAMMPS is stored in the directory `lammps-stable_22Jul2025_update1`.
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_22Jul2025/src/
33+
cd lammps-stable_22Jul2025_update1/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_22Jul2025/build/
64-
cd lammps-stable_22Jul2025/build/
63+
mkdir -p lammps-stable_22Jul2025_update1/build/
64+
cd lammps-stable_22Jul2025_update1/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_22Jul2025.tar.gz
98-
tar xf stable_22Jul2025.tar.gz
97+
wget https://github.com/lammps/lammps/archive/stable_22Jul2025_update1.tar.gz
98+
tar xf stable_22Jul2025_update1.tar.gz
9999
```
100100

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`
101+
The source code of LAMMPS is stored in the directory `lammps-stable_22Jul2025_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`
102102

103103
```bash
104-
mkdir -p lammps-stable_22Jul2025/build/
105-
cd lammps-stable_22Jul2025/build/
104+
mkdir -p lammps-stable_22Jul2025_update1/build/
105+
cd lammps-stable_22Jul2025_update1/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[mpi]~=2025.7.22.0.2",
111+
"lammps[mpi]~=2025.7.22.1.0",
112112
]
113113
ipi = [
114114
"ipi",
@@ -242,7 +242,7 @@ repair-wheel-command = """delocate-wheel --require-archs {delocate_archs} -w {de
242242

243243
[tool.cibuildwheel.macos.environment]
244244
PIP_PREFER_BINARY = "1"
245-
DP_LAMMPS_VERSION = "stable_22Jul2025"
245+
DP_LAMMPS_VERSION = "stable_22Jul2025_update1"
246246
DP_ENABLE_IPI = "1"
247247
DP_ENABLE_PYTORCH = "1"
248248
DP_ENABLE_PADDLE = "1"
@@ -278,7 +278,7 @@ before-build = [
278278
]
279279
[tool.cibuildwheel.linux.environment]
280280
PIP_PREFER_BINARY = "1"
281-
DP_LAMMPS_VERSION = "stable_22Jul2025"
281+
DP_LAMMPS_VERSION = "stable_22Jul2025_update1"
282282
DP_ENABLE_IPI = "1"
283283
DP_ENABLE_PYTORCH = "1"
284284
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_22Jul2025 \
29+
-D LAMMPS_VERSION=stable_22Jul2025_update1 \
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_22Jul2025 ..
16+
cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DDEEPMD_C_ROOT=${DEEPMD_C_ROOT} -DLAMMPS_VERSION=stable_22Jul2025_update1 ..
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_22Jul2025
17+
LAMMPS_VERSION=stable_22Jul2025_update1
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_22Jul2025 ${CUDA_ARGS} ..
20+
cmake -DINSTALL_TENSORFLOW=TRUE -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DTENSORFLOW_ROOT=${INSTALL_PREFIX} -DBUILD_TESTING:BOOL=TRUE -DLAMMPS_VERSION=stable_22Jul2025_update1 ${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_22Jul2025 \
31+
-D LAMMPS_VERSION=stable_22Jul2025_update1 \
3232
${CUDA_ARGS} ..
3333
cmake --build . -j${NPROC}
3434
cmake --install .

0 commit comments

Comments
 (0)