Skip to content

Commit aa3b58e

Browse files
authored
1 parent e1ae5e0 commit aa3b58e

File tree

8 files changed

+17
-18
lines changed

8 files changed

+17
-18
lines changed

backend/dynamic_metadata.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ def dynamic_metadata(
5555
"sphinxcontrib-bibtex",
5656
],
5757
"lmp": [
58-
"lammps~=2023.8.2.0.0; platform_system=='Linux'",
59-
"lammps~=2023.8.2.0.0; platform_system!='Linux'",
58+
"lammps~=2023.8.2.1.0",
6059
*find_libpython_requires,
6160
],
6261
"ipi": [

doc/install/install-lammps.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ make lammps
1414
DeePMD-kit will generate a module called `USER-DEEPMD` in the `build` directory, which supports either double or single float precision interface. Now download the LAMMPS code, and uncompress it.
1515
```bash
1616
cd /some/workspace
17-
wget https://github.com/lammps/lammps/archive/stable_2Aug2023.tar.gz
18-
tar xf stable_2Aug2023.tar.gz
17+
wget https://github.com/lammps/lammps/archive/stable_2Aug2023_update1.tar.gz
18+
tar xf stable_2Aug2023_update1.tar.gz
1919
```
20-
The source code of LAMMPS is stored in the directory `lammps-stable_2Aug2023`. Now go into the LAMMPS code and copy the DeePMD-kit module like this
20+
The source code of LAMMPS is stored in the directory `lammps-stable_2Aug2023_update1`. Now go into the LAMMPS code and copy the DeePMD-kit module like this
2121
```bash
22-
cd lammps-stable_2Aug2023/src/
22+
cd lammps-stable_2Aug2023_update1/src/
2323
cp -r $deepmd_source_dir/source/build/USER-DEEPMD .
2424
make yes-kspace
2525
make yes-extra-fix
@@ -46,15 +46,15 @@ Starting from `8Apr2021`, LAMMPS also provides a plugin mode, allowing one to bu
4646
Now download the LAMMPS code (`8Apr2021` or later), and uncompress it:
4747
```bash
4848
cd /some/workspace
49-
wget https://github.com/lammps/lammps/archive/stable_2Aug2023.tar.gz
50-
tar xf stable_2Aug2023.tar.gz
49+
wget https://github.com/lammps/lammps/archive/stable_2Aug2023_update1.tar.gz
50+
tar xf stable_2Aug2023_update1.tar.gz
5151
```
5252

53-
The source code of LAMMPS is stored in the directory `lammps-stable_2Aug2023`. 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`
53+
The source code of LAMMPS is stored in the directory `lammps-stable_2Aug2023_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`
5454

5555
```bash
56-
mkdir -p lammps-stable_2Aug2023/build/
57-
cd lammps-stable_2Aug2023/build/
56+
mkdir -p lammps-stable_2Aug2023_update1/build/
57+
cd lammps-stable_2Aug2023_update1/build/
5858
```
5959
Now build LAMMPS. Note that `PLUGIN` and `KSPACE` packages must be enabled, and `BUILD_SHARED_LIBS` must be set to `yes`. You can install any other package you want.
6060
```bash

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ manylinux-x86_64-image = "quay.io/pypa/manylinux_2_28_x86_64:2022-11-19-1b19e81"
117117
manylinux-aarch64-image = "quay.io/pypa/manylinux_2_28_aarch64:2022-11-19-1b19e81"
118118

119119
[tool.cibuildwheel.macos]
120-
environment = { PIP_PREFER_BINARY="1", DP_LAMMPS_VERSION="stable_2Aug2023", DP_ENABLE_IPI="1" }
120+
environment = { PIP_PREFER_BINARY="1", DP_LAMMPS_VERSION="stable_2Aug2023_update1", DP_ENABLE_IPI="1" }
121121
before-all = [
122122
"""if [[ "$CIBW_BUILD" != *macosx_arm64* ]]; then brew install mpich; fi""",
123123
]
@@ -129,7 +129,7 @@ repair-wheel-command = """if [[ "$CIBW_BUILD" == *macosx_arm64* ]]; then rm -rf
129129
[tool.cibuildwheel.linux]
130130
repair-wheel-command = "auditwheel repair --exclude libtensorflow_framework.so.2 --exclude libtensorflow_framework.so.1 --exclude libtensorflow_framework.so --exclude _pywrap_tensorflow_internal.so --exclude libtensorflow_cc.so.2 -w {dest_dir} {wheel}"
131131
environment-pass = ["CIBW_BUILD", "DP_VARIANT"]
132-
environment = { PIP_PREFER_BINARY="1", DP_VARIANT="cuda", DP_LAMMPS_VERSION="stable_2Aug2023", DP_ENABLE_IPI="1", MPI_HOME="/usr/lib64/mpich", PATH="/usr/lib64/mpich/bin:$PATH" }
132+
environment = { PIP_PREFER_BINARY="1", DP_VARIANT="cuda", DP_LAMMPS_VERSION="stable_2Aug2023_update1", DP_ENABLE_IPI="1", MPI_HOME="/usr/lib64/mpich", PATH="/usr/lib64/mpich/bin:$PATH" }
133133
before-all = [
134134
"""{ if [ "$(uname -m)" = "x86_64" ] ; then curl https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run -O && bash cuda_11.8.0_520.61.05_linux.run --silent --toolkit; fi }""",
135135
"yum install -y mpich-devel",

source/install/build_cc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ NPROC=$(nproc --all)
2020
BUILD_TMP_DIR=${SCRIPT_PATH}/../build
2121
mkdir -p ${BUILD_TMP_DIR}
2222
cd ${BUILD_TMP_DIR}
23-
cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DUSE_TF_PYTHON_LIBS=TRUE ${CUDA_ARGS} -DLAMMPS_VERSION=stable_2Aug2023 ..
23+
cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DUSE_TF_PYTHON_LIBS=TRUE ${CUDA_ARGS} -DLAMMPS_VERSION=stable_2Aug2023_update1 ..
2424
cmake --build . -j${NPROC}
2525
cmake --install .
2626

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_2Aug2023 ..
16+
cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DDEEPMD_C_ROOT=${DEEPMD_C_ROOT} -DLAMMPS_VERSION=stable_2Aug2023_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_2Aug2023
17+
LAMMPS_VERSION=stable_2Aug2023_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_2Aug2023 ${CUDA_ARGS} ..
20+
cmake -DINSTALL_TENSORFLOW=TRUE -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DTENSORFLOW_ROOT=${INSTALL_PREFIX} -DBUILD_TESTING:BOOL=TRUE -DLAMMPS_VERSION=stable_2Aug2023_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
@@ -18,7 +18,7 @@ INSTALL_PREFIX=${SCRIPT_PATH}/../../dp_test
1818
BUILD_TMP_DIR=${SCRIPT_PATH}/../build_tests
1919
mkdir -p ${BUILD_TMP_DIR}
2020
cd ${BUILD_TMP_DIR}
21-
cmake -DINSTALL_TENSORFLOW=FALSE -DUSE_TF_PYTHON_LIBS=TRUE -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DBUILD_TESTING:BOOL=TRUE -DLAMMPS_VERSION=stable_2Aug2023 ${CUDA_ARGS} ..
21+
cmake -DINSTALL_TENSORFLOW=FALSE -DUSE_TF_PYTHON_LIBS=TRUE -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DBUILD_TESTING:BOOL=TRUE -DLAMMPS_VERSION=stable_2Aug2023_update1 ${CUDA_ARGS} ..
2222
cmake --build . -j${NPROC}
2323
cmake --install .
2424
ctest --output-on-failure

0 commit comments

Comments
 (0)