Skip to content

Commit 6f3dce0

Browse files
Copilotnjzjz
authored andcommitted
build: bump LAMMPS version to stable_22Jul2025_update2 (deepmodeling#5052)
Updates LAMMPS version reference from `stable_22Jul2025_update1` to `stable_22Jul2025_update2` across build scripts, documentation, and Python package configuration. ### Changes - Build configuration scripts: `.devcontainer/build_cxx.sh`, `source/install/{build_cc.sh, build_from_c.sh, build_lammps.sh, test_cc.sh, test_cc_local.sh}` - Installation documentation: `doc/install/install-lammps.md` - Python package configuration: `pyproject.toml` (updated `lammps[mpi]` dependency to `~=2025.7.22.2.0` and CI environment variables for macOS and Linux) All references to the LAMMPS version tag have been updated consistently across the repository, following the pattern from commit 0fe38c8. - Fixes deepmodeling#5051 <!-- START COPILOT CODING AGENT SUFFIX --> <details> <summary>Original prompt</summary> > > ---- > > *This section details on the original issue you should resolve* > > <issue_title>Bump LAMMPS version to stable_22Jul2025_update2</issue_title> > <issue_description>### Summary > > Bump LAMMPS version to stable_22Jul2025_update2. > > ### Detailed Description > > Follow the style of deepmodeling#4955 (0fe38c8). > > ### Further Information, Files, and Links > > _No response_</issue_description> > > ## Comments on the Issue (you are @copilot in this section) > > <comments> > </comments> > </details> - Fixes deepmodeling#5051 <!-- START COPILOT CODING AGENT TIPS --> --- 💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more [Copilot coding agent tips](https://gh.io/copilot-coding-agent-tips) in the docs. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: njzjz <9496702+njzjz@users.noreply.github.com>
1 parent 7cfb373 commit 6f3dce0

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

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

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`
101+
The source code of LAMMPS is stored in the directory `lammps-stable_22Jul2025_update2`. 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_update1/build/
105-
cd lammps-stable_22Jul2025_update1/build/
104+
mkdir -p lammps-stable_22Jul2025_update2/build/
105+
cd lammps-stable_22Jul2025_update2/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.1.0",
111+
"lammps[mpi]~=2025.7.22.2.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_update1"
245+
DP_LAMMPS_VERSION = "stable_22Jul2025_update2"
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_update1"
281+
DP_LAMMPS_VERSION = "stable_22Jul2025_update2"
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_update1 \
29+
-D LAMMPS_VERSION=stable_22Jul2025_update2 \
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_update1 ..
16+
cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DDEEPMD_C_ROOT=${DEEPMD_C_ROOT} -DLAMMPS_VERSION=stable_22Jul2025_update2 ..
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_update1
17+
LAMMPS_VERSION=stable_22Jul2025_update2
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_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_update2 ${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_update1 \
31+
-D LAMMPS_VERSION=stable_22Jul2025_update2 \
3232
${CUDA_ARGS} ..
3333
cmake --build . -j${NPROC}
3434
cmake --install .

0 commit comments

Comments
 (0)