Skip to content

Commit bfa6245

Browse files
authored
merge devel to master (v3.1.1) (#4999)
2 parents b494a0d + 164c8c3 commit bfa6245

File tree

439 files changed

+16180
-5958
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

439 files changed

+16180
-5958
lines changed

.devcontainer/build_cxx.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ NPROC=$(nproc --all)
55
SCRIPT_PATH=$(dirname $(realpath -s $0))
66

77
export CMAKE_PREFIX_PATH=${SCRIPT_PATH}/../libtorch
8-
TENSORFLOW_ROOT=$(python -c 'import importlib,pathlib;print(pathlib.Path(importlib.util.find_spec("tensorflow").origin).parent)')
8+
TENSORFLOW_ROOT=$(python -c 'import importlib.util,pathlib;print(pathlib.Path(importlib.util.find_spec("tensorflow").origin).parent)')
99

1010
mkdir -p ${SCRIPT_PATH}/../buildcxx/
1111
cd ${SCRIPT_PATH}/../buildcxx/
1212
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_update1 \
1717
-D CMAKE_BUILD_TYPE=Debug \
1818
-D BUILD_TESTING:BOOL=TRUE \
1919
-D TENSORFLOW_ROOT=${TENSORFLOW_ROOT} \

.devcontainer/devcontainer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"PATH": "${containerEnv:PATH}:${containerWorkspaceFolder}/.venv/bin",
1212
"DP_ENABLE_PYTORCH": "1",
1313
"DP_VARIANT": "cpu",
14-
"LMP_CXX11_ABI_0": "1",
1514
"UV_EXTRA_INDEX_URL": "https://download.pytorch.org/whl/cpu"
1615
}
1716
}

.devcontainer/download_libtorch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ set -ev
44
SCRIPT_PATH=$(dirname $(realpath -s $0))
55
cd ${SCRIPT_PATH}/..
66

7-
wget https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.7.0%2Bcpu.zip -O ~/libtorch.zip
7+
wget https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.8.0%2Bcpu.zip -O ~/libtorch.zip
88
unzip ~/libtorch.zip

.devcontainer/gdb_lmp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
SCRIPT_PATH=$(dirname $(realpath -s $0))
33

44
export CMAKE_PREFIX_PATH=${SCRIPT_PATH}/../libtorch
5-
TENSORFLOW_ROOT=$(python -c 'import importlib,pathlib;print(pathlib.Path(importlib.util.find_spec("tensorflow").origin).parent)')
5+
TENSORFLOW_ROOT=$(python -c 'import importlib.util,pathlib;print(pathlib.Path(importlib.util.find_spec("tensorflow").origin).parent)')
66

77
env LAMMPS_PLUGIN_PATH=${SCRIPT_PATH}/../dp/lib/deepmd_lmp \
88
LD_LIBRARY_PATH=${SCRIPT_PATH}/../dp/lib:${CMAKE_PREFIX_PATH}/lib:${TENSORFLOW_ROOT} \

.devcontainer/gdb_pytest_lmp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
SCRIPT_PATH=$(dirname $(realpath -s $0))/../..
33

44
export CMAKE_PREFIX_PATH=${SCRIPT_PATH}/../libtorch
5-
TENSORFLOW_ROOT=$(python -c 'import importlib,pathlib;print(pathlib.Path(importlib.util.find_spec("tensorflow").origin).parent)')
5+
TENSORFLOW_ROOT=$(python -c 'import importlib.util,pathlib;print(pathlib.Path(importlib.util.find_spec("tensorflow").origin).parent)')
66

77
env LAMMPS_PLUGIN_PATH=${SCRIPT_PATH}/../dp/lib/deepmd_lmp \
88
LD_LIBRARY_PATH=${SCRIPT_PATH}/../dp/lib:${CMAKE_PREFIX_PATH}/lib:${TENSORFLOW_ROOT} \

.devcontainer/lmp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
SCRIPT_PATH=$(dirname $(realpath -s $0))
33

44
export CMAKE_PREFIX_PATH=${SCRIPT_PATH}/../libtorch
5-
TENSORFLOW_ROOT=$(python -c 'import importlib,pathlib;print(pathlib.Path(importlib.util.find_spec("tensorflow").origin).parent)')
5+
TENSORFLOW_ROOT=$(python -c 'import importlib.util,pathlib;print(pathlib.Path(importlib.util.find_spec("tensorflow").origin).parent)')
66

77
env LAMMPS_PLUGIN_PATH=${SCRIPT_PATH}/../dp/lib/deepmd_lmp \
88
LD_LIBRARY_PATH=${SCRIPT_PATH}/../dp/lib:${CMAKE_PREFIX_PATH}/lib:${TENSORFLOW_ROOT} \

.devcontainer/pytest_lmp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
SCRIPT_PATH=$(dirname $(realpath -s $0))/../..
33

44
export CMAKE_PREFIX_PATH=${SCRIPT_PATH}/../libtorch
5-
TENSORFLOW_ROOT=$(python -c 'import importlib,pathlib;print(pathlib.Path(importlib.util.find_spec("tensorflow").origin).parent)')
5+
TENSORFLOW_ROOT=$(python -c 'import importlib.util,pathlib;print(pathlib.Path(importlib.util.find_spec("tensorflow").origin).parent)')
66

77
env LAMMPS_PLUGIN_PATH=${SCRIPT_PATH}/../dp/lib/deepmd_lmp \
88
LD_LIBRARY_PATH=${SCRIPT_PATH}/../dp/lib:${CMAKE_PREFIX_PATH}/lib:${TENSORFLOW_ROOT} \

.github/workflows/build_cc.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ on:
22
push:
33
branches-ignore:
44
- "gh-readonly-queue/**"
5+
- "copilot/**"
6+
- "dependabot/**"
7+
- "pre-commit-ci-update-config"
58
pull_request:
69
merge_group:
710
concurrency:
@@ -26,14 +29,14 @@ jobs:
2629
- variant: clang
2730
dp_variant: clang
2831
steps:
29-
- uses: actions/checkout@v4
30-
- uses: actions/setup-python@v5
32+
- uses: actions/checkout@v5
33+
- uses: actions/setup-python@v6
3134
with:
3235
python-version: '3.11'
3336
- uses: lukka/get-cmake@latest
3437
- run: python -m pip install uv
3538
- run: source/install/uv_with_retry.sh pip install --system tensorflow
36-
- run: source/install/uv_with_retry.sh pip install --system 'torch==2.7' --index-url https://download.pytorch.org/whl/cpu
39+
- run: source/install/uv_with_retry.sh pip install --system 'torch==2.8.*' --index-url https://download.pytorch.org/whl/cpu
3740
- run: |
3841
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.0-1_all.deb \
3942
&& sudo dpkg -i cuda-keyring_1.0-1_all.deb \

.github/workflows/build_wheel.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches-ignore:
66
- "gh-readonly-queue/**"
7+
- "copilot/**"
8+
- "dependabot/**"
9+
- "pre-commit-ci-update-config"
710
tags:
811
- "v*"
912
pull_request:
@@ -54,7 +57,7 @@ jobs:
5457
platform_id: manylinux_aarch64
5558
dp_variant: cpu
5659
steps:
57-
- uses: actions/checkout@v4
60+
- uses: actions/checkout@v5
5861
with:
5962
# https://github.com/pypa/setuptools_scm/issues/480
6063
fetch-depth: 0
@@ -70,7 +73,7 @@ jobs:
7073
rm -rf .git
7174
if: matrix.dp_pkg_name == 'deepmd-kit-cu11'
7275
- name: Build wheels
73-
uses: pypa/cibuildwheel@v2.23
76+
uses: pypa/cibuildwheel@v3.1
7477
env:
7578
CIBW_BUILD_VERBOSITY: 1
7679
CIBW_ARCHS: all
@@ -87,7 +90,7 @@ jobs:
8790
name: Build source distribution
8891
runs-on: ubuntu-latest
8992
steps:
90-
- uses: actions/checkout@v4
93+
- uses: actions/checkout@v5
9194
with:
9295
fetch-depth: 0
9396
- name: Build sdist
@@ -106,7 +109,7 @@ jobs:
106109
id-token: write
107110
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
108111
steps:
109-
- uses: actions/download-artifact@v4
112+
- uses: actions/download-artifact@v5
110113
with:
111114
pattern: cibw-*
112115
path: dist
@@ -128,8 +131,8 @@ jobs:
128131
steps:
129132
- name: Delete huge unnecessary tools folder
130133
run: rm -rf /opt/hostedtoolcache
131-
- uses: actions/checkout@v4
132-
- uses: actions/download-artifact@v4
134+
- uses: actions/checkout@v5
135+
- uses: actions/download-artifact@v5
133136
with:
134137
path: source/install/docker/dist
135138
pattern: cibw-*-manylinux_x86_64-cu${{ matrix.cuda_version }}*
@@ -162,12 +165,12 @@ jobs:
162165
needs: [build_wheels, build_sdist]
163166
runs-on: ubuntu-latest
164167
steps:
165-
- uses: actions/download-artifact@v4
168+
- uses: actions/download-artifact@v5
166169
with:
167170
path: dist/packages
168171
pattern: cibw-*
169172
merge-multiple: true
170-
- uses: actions/setup-python@v5
173+
- uses: actions/setup-python@v6
171174
name: Install Python
172175
with:
173176
python-version: '3.11'
@@ -176,7 +179,7 @@ jobs:
176179
ls dist/packages > package_list.txt
177180
dumb-pypi --output-dir dist --packages-url ../../packages --package-list package_list.txt --title "DeePMD-kit Developed Packages"
178181
- name: Upload Pages artifact
179-
uses: actions/upload-pages-artifact@v3
182+
uses: actions/upload-pages-artifact@v4
180183
with:
181184
path: dist
182185
deploy_pypi_index:

.github/workflows/codeql.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches-ignore:
66
- "gh-readonly-queue/**"
7+
- "copilot/**"
8+
- "dependabot/**"
9+
- "pre-commit-ci-update-config"
710
pull_request:
811
schedule:
912
- cron: '45 2 * * 2'
@@ -27,8 +30,8 @@ jobs:
2730

2831
steps:
2932
- name: Checkout repository
30-
uses: actions/checkout@v4
31-
- uses: actions/setup-python@v5
33+
uses: actions/checkout@v5
34+
- uses: actions/setup-python@v6
3235
with:
3336
python-version: '3.11'
3437
cache: 'pip'
@@ -41,7 +44,7 @@ jobs:
4144
&& sudo apt-get update \
4245
&& sudo apt-get -y install cuda-cudart-dev-12-2 cuda-nvcc-12-2
4346
python -m pip install tensorflow
44-
python -m pip install 'torch==2.7' --index-url https://download.pytorch.org/whl/cpu
47+
python -m pip install 'torch==2.8.*' --index-url https://download.pytorch.org/whl/cpu
4548
env:
4649
DEBIAN_FRONTEND: noninteractive
4750
# Initializes the CodeQL tools for scanning.

0 commit comments

Comments
 (0)