Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[r2] v2.2.10 #3648

Merged
merged 42 commits into from
Apr 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
286e9c4
docs: rewrite README; deprecate manually written TOC (#3179)
njzjz Apr 6, 2024
b8fd121
build(deps): bump codecov/codecov-action from 3 to 4 (#3231)
dependabot[bot] Feb 6, 2024
3cf84ef
c: change the required shape of electric field to nloc * 3 (#3237)
njzjz Feb 6, 2024
dd03758
[pre-commit.ci] pre-commit autoupdate (#3236)
pre-commit-ci[bot] Feb 6, 2024
d3efb98
pin docker actions to major versions (#3238)
njzjz Feb 6, 2024
e354960
issue template: change TF version to backend version (#3244)
njzjz Feb 7, 2024
b476890
tf: support checkpoint path (instead of directory) in dp freeze (#3254)
njzjz Feb 11, 2024
c0dc506
[pre-commit.ci] pre-commit autoupdate (#3264)
pre-commit-ci[bot] Feb 13, 2024
ba81a00
[pre-commit.ci] pre-commit autoupdate (#3305)
pre-commit-ci[bot] Feb 20, 2024
e942a41
build(deps): bump the npm_and_yarn group across 1 directories with 1 …
dependabot[bot] Feb 21, 2024
cdb7fb2
tf: add fparam/aparam support for finetune (#3313)
njzjz Feb 21, 2024
afac0c0
bump python to 3.12 in the test environment (#3343)
njzjz Feb 27, 2024
61c1b8d
fix_dplr.cpp delete redundant setup (#3344)
shiruosong Feb 27, 2024
fe8056d
fix_dplr.cpp set atom->image when pre_force (#3345)
shiruosong Feb 27, 2024
1bf218d
docs: apply type_one_side=True to `se_a` and `se_r` (#3364)
njzjz Feb 29, 2024
c877479
bump scikit-build-core to 0.8 (#3369)
njzjz Mar 1, 2024
2408b47
bump LAMMPS to stable_2Aug2023_update3 (#3399)
njzjz Mar 3, 2024
01ed383
fix deepmd-kit-cu11 again (#3403)
njzjz Mar 4, 2024
0eede70
ban print (#3415)
njzjz Apr 6, 2024
3509b20
Add `max_ckpt_keep` for trainer (#3441)
iProzd Mar 9, 2024
4ac18c7
fix: do not install tf-keras for cu11 (#3444)
njzjz Mar 11, 2024
30e57e4
tf: refactor neighbor stat (#3275)
njzjz Feb 15, 2024
da8f93c
build(deps): bump softprops/action-gh-release from 1 to 2 (#3446)
dependabot[bot] Mar 11, 2024
f8a73c1
[pre-commit.ci] pre-commit autoupdate (#3454)
njzjz Apr 6, 2024
18d311f
ci: reduce ASLR entropy (#3461)
njzjz Mar 14, 2024
985f92e
Fix LAMMPS plugin symlink path on macOS platform (#3473)
chazeon Mar 17, 2024
cb0a382
[pre-commit.ci] pre-commit autoupdate (#3489)
pre-commit-ci[bot] Mar 19, 2024
572050f
build(deps): bump pypa/cibuildwheel from 2.16 to 2.17 (#3487)
dependabot[bot] Mar 19, 2024
065ba3e
ci: add linter for markdown, yaml, CSS (#3574)
njzjz Mar 21, 2024
872373c
test: add LAMMPS MPI tests (#3572)
njzjz Mar 21, 2024
164288f
[pre-commit.ci] pre-commit autoupdate (#3599)
pre-commit-ci[bot] Mar 25, 2024
fc8a4fa
chore: remove incorrect memset TODOs (#3600)
njzjz Mar 26, 2024
4e7c93a
pin nvidia-cudnn-cu{11,12} to <9 (#3610)
njzjz Mar 27, 2024
6d38230
chore(build): move static part of dynamic metadata to pyproject.toml …
njzjz Mar 28, 2024
bf76008
fix: fix type hint of sel (#3624)
njzjz Mar 30, 2024
f31fbe8
[pre-commit.ci] pre-commit autoupdate (#3634)
pre-commit-ci[bot] Apr 2, 2024
cb30f41
fix(tf): make `se_atten_v2` masking smooth when davg is not zero (#3632)
njzjz Apr 2, 2024
ac71daa
feat: model devi C/C++ API without nlist (#3647)
robinzyb Apr 6, 2024
93eb00f
docs: Replace quick_start.ipynb with a new version. (#3567)
Mancn-Xu Apr 6, 2024
6cc02ad
fix AlmaLinux GPG key error (#3326)
njzjz Feb 23, 2024
d47e43d
docs: add deprecation notice for the official conda channel and more …
njzjz Mar 15, 2024
128b6c7
[r2] fix NeighborStat (#207)
njzjz Apr 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ body:
validations:
required: true
- type: input
id: tf-version
id: backend-version
attributes:
label: TensorFlow Version
description: "The version will be printed when running DeePMD-kit."
label: Backend and its version
description: "The backend and its version will be printed when running DeePMD-kit, e.g. TensorFlow v2.15.0."
validations:
required: true
- type: dropdown
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/generic-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ body:
validations:
required: true
- type: input
id: tf-version
id: backend-version
attributes:
label: TensorFlow Version
description: "The version will be printed when running DeePMD-kit."
label: Backend and its version
description: "The backend and its version will be printed when running DeePMD-kit, e.g. TensorFlow v2.15.0."
validations:
required: true
- type: textarea
Expand Down
78 changes: 39 additions & 39 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
Python:
- changed-files:
- any-glob-to-any-file:
- deepmd/**/*
- deepmd_utils/**/*
- source/tests/**/*
Docs:
- changed-files:
- any-glob-to-any-file: doc/**/*
Examples:
- changed-files:
- any-glob-to-any-file: examples/**/*
Core:
- changed-files:
- any-glob-to-any-file: source/lib/**/*
CUDA:
- changed-files:
- any-glob-to-any-file: source/lib/src/gpu/**/*
ROCM:
- changed-files:
- any-glob-to-any-file: source/lib/src/gpu/**/*
OP:
- changed-files:
- any-glob-to-any-file: source/op/**/*
C++:
- changed-files:
- any-glob-to-any-file: source/api_cc/**/*
C:
- changed-files:
- any-glob-to-any-file: source/api_c/**/*
LAMMPS:
- changed-files:
- any-glob-to-any-file: source/lmp/**/*
Gromacs:
- changed-files:
- any-glob-to-any-file: source/gmx/**/*
i-Pi:
- changed-files:
- any-glob-to-any-file: source/ipi/**/*
Python:
- changed-files:
- any-glob-to-any-file:
- deepmd/**/*
- deepmd_utils/**/*
- source/tests/**/*
Docs:
- changed-files:
- any-glob-to-any-file: doc/**/*
Examples:
- changed-files:
- any-glob-to-any-file: examples/**/*
Core:
- changed-files:
- any-glob-to-any-file: source/lib/**/*
CUDA:
- changed-files:
- any-glob-to-any-file: source/lib/src/gpu/**/*
ROCM:
- changed-files:
- any-glob-to-any-file: source/lib/src/gpu/**/*
OP:
- changed-files:
- any-glob-to-any-file: source/op/**/*
C++:
- changed-files:
- any-glob-to-any-file: source/api_cc/**/*
C:
- changed-files:
- any-glob-to-any-file: source/api_c/**/*
LAMMPS:
- changed-files:
- any-glob-to-any-file: source/lmp/**/*
Gromacs:
- changed-files:
- any-glob-to-any-file: source/gmx/**/*
i-Pi:
- changed-files:
- any-glob-to-any-file: source/ipi/**/*
11 changes: 6 additions & 5 deletions .github/workflows/build_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,11 @@ jobs:
if: matrix.dp_pkg_name == 'deepmd-kit-cu11'
- run: |
python -m pip install setuptools_scm
python -c "from setuptools_scm import get_version;print('SETUPTOOLS_SCM_PRETEND_VERSION_FOR_DEEPMD-KIT-CU11='+get_version())" >> $GITHUB_ENV
python -c "from setuptools_scm import get_version;print('SETUPTOOLS_SCM_PRETEND_VERSION='+get_version())" >> $GITHUB_ENV
rm -rf .git
if: matrix.dp_pkg_name == 'deepmd-kit-cu11'
- name: Build wheels
uses: pypa/cibuildwheel@v2.16
uses: pypa/cibuildwheel@v2.17
env:
CIBW_BUILD_VERBOSITY: 1
CIBW_ARCHS: all
Expand Down Expand Up @@ -147,20 +148,20 @@ jobs:
path: source/install/docker/dist
merge-multiple: true
- name: Log in to the Container registry
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@dbef88086f6cef02e264edb7dbf63250c17cef6c
uses: docker/metadata-action@v5
with:
images: ghcr.io/deepmodeling/deepmd-kit

- name: Build and push Docker image
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56
uses: docker/build-push-action@v5
with:
context: source/install/docker
push: ${{ github.repository_owner == 'deepmodeling' && github.event_name == 'push' && github.actor != 'dependabot[bot]' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/package_c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Test C library
run: ./source/install/docker_test_package_c.sh
- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: ${{ matrix.filename }}
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/test_cc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
mpi: mpich
- uses: lukka/get-cmake@latest
- run: python -m pip install tensorflow
# https://github.com/actions/runner-images/issues/9491
- name: Fix kernel mmap rnd bits
run: sudo sysctl vm.mmap_rnd_bits=28
if: ${{ matrix.check_memleak }}
- run: source/install/test_cc_local.sh
env:
OMP_NUM_THREADS: 1
Expand All @@ -34,7 +38,7 @@ jobs:
# TODO: remove ase version when ase has new release
- run: |
python -m pip install -U pip
python -m pip install -e .[cpu,test,lmp] "ase @ https://gitlab.com/ase/ase/-/archive/8c5aa5fd6448c5cfb517a014dccf2b214a9dfa8f/ase-8c5aa5fd6448c5cfb517a014dccf2b214a9dfa8f.tar.gz"
python -m pip install -e .[cpu,test,lmp] mpi4py "ase @ https://gitlab.com/ase/ase/-/archive/8c5aa5fd6448c5cfb517a014dccf2b214a9dfa8f/ase-8c5aa5fd6448c5cfb517a014dccf2b214a9dfa8f.tar.gz"
env:
DP_BUILD_TESTING: 1
if: ${{ !matrix.check_memleak }}
Expand All @@ -55,9 +59,9 @@ jobs:
PATH: ${{ github.workspace }}/dp_test/bin:$PATH
LD_LIBRARY_PATH: ${{ github.workspace }}/dp_test/lib
if: ${{ !matrix.check_memleak }}
- uses: codecov/codecov-action@v3
with:
gcov: true
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
pass:
name: Pass testing C++
needs: [testcc]
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/test_cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ jobs:
TF_INTER_OP_PARALLELISM_THREADS: 1
LAMMPS_PLUGIN_PATH: ${{ github.workspace }}/dp_test/lib/deepmd_lmp
CUDA_PATH: /usr/local/cuda-12.2
- uses: codecov/codecov-action@v3
pass:
name: Pass testing on CUDA
needs: [test_cuda]
runs-on: ubuntu-latest
if: always()
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
gcov: true
jobs: ${{ toJSON(needs) }}
allowed-skips: test_cuda
8 changes: 4 additions & 4 deletions .github/workflows/test_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
tf: 1.14
- python: 3.8
tf:
- python: "3.11"
- python: "3.12"
tf:

steps:
Expand All @@ -39,9 +39,9 @@ jobs:
HOROVOD_WITHOUT_GLOO: 1
- run: dp --version
- run: pytest --cov=deepmd --cov=deepmd_utils source/tests --durations=0
- uses: codecov/codecov-action@v3
with:
gcov: true
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
pass:
name: Pass testing Python
needs: [testpython]
Expand Down
Loading