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

Merge devel into master #2559

Merged
merged 76 commits into from
May 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
19cfc4d
Merge master into devel (#2403)
amcadmus Mar 16, 2023
bf0e0a1
fix typo (#2404)
kmu Mar 16, 2023
f0c1260
Bump docker/login-action from 1.10.0 to 2.1.0 (#2411)
dependabot[bot] Mar 21, 2023
20efd9a
keep the file permission when `make lammps` (#2414)
njzjz Mar 21, 2023
ced9fdb
C API: support fparam and aparam for DeepPot (#2415)
njzjz Mar 21, 2023
a936f01
fix lmp_version.sh (#2417)
njzjz Mar 22, 2023
4f35813
[pre-commit.ci] pre-commit autoupdate (#2416)
pre-commit-ci[bot] Mar 22, 2023
1015473
add read_file_to_string to C API (#2412)
njzjz Mar 22, 2023
cf33e28
`source` a relative path (#2420)
njzjz Mar 23, 2023
f2c792c
bump to TF 2.12 (#2422)
njzjz Mar 25, 2023
67a4db3
support xla for CUDA pip packages (#2427)
njzjz Mar 25, 2023
8568521
set mixed_type to True for mixed systems (#2428)
njzjz Mar 25, 2023
5e6723e
Support different learning rate settings for each fitting net in mult…
HuangJiameng Mar 28, 2023
99e9a07
[pre-commit.ci] pre-commit autoupdate (#2431)
pre-commit-ci[bot] Mar 29, 2023
c10cd6c
nvnmd: fix some warnings about matmul_flt_nvnmd (#2430)
LiuGroupHNU Mar 29, 2023
117fc91
fix: avoid `using namespace std;` in header files (#2437)
e-kwsm Apr 3, 2023
7020b34
fix C API documentation (#2424)
njzjz Apr 3, 2023
1de4fc2
fix: descriptor function doc (#2440)
AnuragKr Apr 6, 2023
f841484
Docs: Fix typo in parallel-training.md (#2438)
caic99 Apr 6, 2023
ad8536f
[pre-commit.ci] pre-commit autoupdate (#2439)
pre-commit-ci[bot] Apr 6, 2023
8c685e2
[pre-commit.ci] pre-commit autoupdate (#2452)
pre-commit-ci[bot] Apr 12, 2023
0f61192
support the DOS (electronic density of states) fitting (#2449)
mingzhong15 Apr 15, 2023
00deb3e
docs: add links to documentation in LAMMPS input (#2453)
njzjz Apr 15, 2023
69e712c
Fix dplr error (#2436)
Yi-FanLi Apr 17, 2023
9a3ac96
fix the header of "lr" (#2462)
njzjz Apr 19, 2023
cdb9c39
disable Findtensorflow caches for skbuild (#2464)
njzjz Apr 20, 2023
05d5a36
[pre-commit.ci] pre-commit autoupdate (#2463)
pre-commit-ci[bot] Apr 20, 2023
1a9b9c9
fix nopbc in finetune, DeepTensor test, and DipoleChargeModifier (#2461)
njzjz Apr 20, 2023
edb4e69
Create DeePMD-kit_Quick_Start_Tutorial_EN.ipynb (#2459)
Mile-Away Apr 21, 2023
4f386ec
use `error->one` for `get_file_content` (#2473)
njzjz Apr 25, 2023
442facf
improve citation information (#2474)
njzjz Apr 25, 2023
a6bf887
lmp: extract deepmd version information to a seperated file (#2480)
njzjz Apr 25, 2023
9217767
Bump pypa/cibuildwheel from 2.12.1 to 2.12.3 (#2478)
dependabot[bot] Apr 25, 2023
16e9133
Bump docker/metadata-action from 4.3.0 to 4.4.0 (#2477)
dependabot[bot] Apr 25, 2023
7716323
[pre-commit.ci] pre-commit autoupdate (#2482)
pre-commit-ci[bot] Apr 26, 2023
51c099c
add sub fields of hybrid descriptor (#2484)
njzjz Apr 26, 2023
de1a474
docs: fix the link to the bib file (#2485)
njzjz Apr 27, 2023
241561d
C: support fparam/aparam for DP model devi (#2486)
njzjz Apr 27, 2023
b13b26c
add tests for dos training example (#2488)
mingzhong15 Apr 27, 2023
66b5f6b
fix build_type_exclude_mask when nloc != nall (#2505)
njzjz May 3, 2023
27c6f02
hpp: add compute_avg, compute_std, etc (#2493)
njzjz May 3, 2023
b756cc6
bump lammps to stable_23Jun2022_update4 (#2495)
njzjz May 3, 2023
cbbed68
C: add select_by_type and select_map (#2491)
njzjz May 3, 2023
a8d30c6
lmp: remove codes to calculate energy deviation (#2492)
njzjz May 3, 2023
469f72a
Add training_data key in zinc_se_a_mask.json (#2489)
dingye18 May 4, 2023
663e8b1
using trusted publishing in upload_pypi (#2496)
njzjz May 4, 2023
f330b9d
clean unused methods in C++ API (#2498)
njzjz May 4, 2023
a100839
fix dtype in PairTabOp (#2500)
njzjz May 4, 2023
ad44028
print model deviation of total energy per atom in `dp model_devi` (#2…
njzjz May 4, 2023
771d8c7
[pre-commit.ci] pre-commit autoupdate (#2502)
pre-commit-ci[bot] May 4, 2023
05b70f2
raise a clear message when no set is found in a system (#2503)
njzjz May 4, 2023
45a8d1e
catch tf.errors.CancelledError for OOM (#2504)
njzjz May 4, 2023
a102289
lmp: add tests for compute deeptensor/atom (#2507)
njzjz May 6, 2023
9aa53e1
Deep spin new (#2304)
hztttt May 6, 2023
44555f4
migrate from C API to hpp API (#2506)
njzjz May 8, 2023
7925b34
allow building lmp/gmx from pre-compiled C library (#2514)
njzjz May 10, 2023
8c2dffb
[pre-commit.ci] pre-commit autoupdate (#2515)
pre-commit-ci[bot] May 10, 2023
6dcee88
improve messages for model compatability (#2518)
njzjz May 10, 2023
a0f8767
lmp/ipi: remove float precision (#2519)
njzjz May 11, 2023
ba1d7c2
add Node.js interface (#2524)
njzjz May 15, 2023
234aaca
remove _GLIBCXX_USE_CXX11_ABI macro for libraries linking against the…
njzjz May 15, 2023
0b670f8
[pre-commit.ci] pre-commit autoupdate (#2530)
pre-commit-ci[bot] May 17, 2023
f6d883f
prefetch data during training (#2534)
njzjz May 19, 2023
2c2feb1
remove warnings of batch size for mixed systems training (#2470)
njzjz May 19, 2023
398c04a
make Fittings pluginable (#2541)
njzjz May 19, 2023
27bc41b
lmp: forward errors to error->one instead of error->all (#2539)
njzjz May 19, 2023
5f3bbbc
remove unmaintained dp config (#2540)
njzjz May 19, 2023
65c0aeb
docs: add train-energy-spin and train-fitting-dos to toctree (#2546)
njzjz May 22, 2023
98c983d
c: pass errors for read_file_to_string (#2547)
njzjz May 22, 2023
44b793f
use pypi lammps to test lammps plugin (#2548)
njzjz May 22, 2023
450455f
fix se_e3 tabulate op (#2552)
njzjz May 22, 2023
64b69b3
test lmp for linux wheel (#2550)
njzjz May 22, 2023
42295ef
Dplr unittest (#2545)
Yi-FanLi May 24, 2023
89543c9
[pre-commit.ci] pre-commit autoupdate (#2554)
pre-commit-ci[bot] May 24, 2023
0510ab2
update package classifiers (#2558)
njzjz May 24, 2023
6e4d32f
Fix model-devi with mixed_type format (#2433)
iProzd May 24, 2023
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
32 changes: 15 additions & 17 deletions .github/workflows/build_cc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ jobs:
buildcc:
name: Build C++
runs-on: ubuntu-latest
container: ghcr.io/deepmodeling/deepmd-kit-test-cc:latest
strategy:
matrix:
include:
Expand All @@ -21,32 +20,31 @@ jobs:
- variant: clang
dp_variant: clang
steps:
- name: work around permission issue
run: git config --global --add safe.directory /__w/deepmd-kit/deepmd-kit
- uses: actions/checkout@v3
with:
submodules: true
- run: apt-get update && apt-get install -y nvidia-cuda-toolkit
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- run: python -m pip install tensorflow
- run: sudo apt-get update && sudo apt-get install -y nvidia-cuda-toolkit
if: matrix.variant == 'cuda'
- run: |
apt-get update \
&& apt-get -y install wget \
&& wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.0-1_all.deb \
&& dpkg -i cuda-keyring_1.0-1_all.deb \
&& apt-get update \
&& apt-get -y install cuda-12-0
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.0-1_all.deb \
&& sudo dpkg -i cuda-keyring_1.0-1_all.deb \
&& sudo apt-get update \
&& sudo apt-get -y install cuda-12-0
if: matrix.variant == 'cuda120'
env:
DEBIAN_FRONTEND: noninteractive
- run: |
apt-get update && apt-get install -y gnupg2 \
&& echo 'deb [arch=amd64] https://repo.radeon.com/rocm/apt/5.3/ jammy main' | tee /etc/apt/sources.list.d/rocm.list \
&& printf 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' | tee /etc/apt/preferences.d/rocm-pin-600 \
&& curl -s https://repo.radeon.com/rocm/rocm.gpg.key | apt-key add - \
&& apt-get update \
&& apt-get install -y rocm-dev hipcub-dev
echo 'deb [arch=amd64] https://repo.radeon.com/rocm/apt/5.3/ jammy main' | sudo tee /etc/apt/sources.list.d/rocm.list \
&& printf 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' | sudo tee /etc/apt/preferences.d/rocm-pin-600 \
&& curl -s https://repo.radeon.com/rocm/rocm.gpg.key | sudo apt-key add - \
&& sudo apt-get update \
&& sudo apt-get install -y rocm-dev hipcub-dev
if: matrix.variant == 'rocm'
- run: apt-get update && apt-get install -y clang
- run: sudo apt-get update && sudo apt-get install -y clang
if: matrix.variant == 'clang'
- run: source/install/build_cc.sh
env:
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/build_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ jobs:
include:
# linux-64
- os: ubuntu-latest
python: 310
python: 311
platform_id: manylinux_x86_64
dp_variant: cuda
# macos-x86-64
- os: macos-latest
python: 310
python: 311
platform_id: macosx_x86_64
dp_variant: cpu
# win-64
- os: windows-2019
python: 310
python: 311
platform_id: win_amd64
dp_variant: cpu
# linux-aarch64
Expand All @@ -42,7 +42,7 @@ jobs:
name: Setup QEMU
if: matrix.platform_id == 'manylinux_aarch64'
- name: Build wheels
uses: pypa/cibuildwheel@v2.12.1
uses: pypa/cibuildwheel@v2.12.3
env:
CIBW_BUILD_VERBOSITY: 1
CIBW_ARCHS: all
Expand All @@ -61,7 +61,7 @@ jobs:
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.10'
python-version: '3.11'
- run: python -m pip install build
- name: Build sdist
run: python -m build --sdist
Expand All @@ -73,16 +73,16 @@ jobs:
upload_pypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_password }}

build_docker:
# use the already built wheels to build docker
Expand All @@ -95,15 +95,15 @@ jobs:
name: artifact
path: source/install/docker/dist
- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

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

Expand Down
30 changes: 28 additions & 2 deletions .github/workflows/package_c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,41 @@ jobs:
- uses: actions/checkout@v3
- name: Package C library
run: ./source/install/docker_package_c.sh
- name: Test C library
run: ./source/install/docker_test_package_c.sh
# for download and debug
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: libdeepmd_c
path: ./libdeepmd_c.tar.gz
- name: Test C library
run: ./source/install/docker_test_package_c.sh
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: libdeepmd_c.tar.gz
test_c:
name: Test building from C library
needs: [build_c]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: libdeepmd_c
- run: tar -vxzf ./libdeepmd_c.tar.gz
- name: Test C library
run: ./source/install/build_from_c.sh
env:
DEEPMD_C_ROOT: ${{ github.workspace }}/libdeepmd_c
pass:
name: Pass building c library
needs: [build_c, test_c]
runs-on: ubuntu-latest
if: always()
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
17 changes: 10 additions & 7 deletions .github/workflows/test_cc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,26 @@ jobs:
testcc:
name: Test C++
runs-on: ubuntu-latest
container: ghcr.io/deepmodeling/deepmd-kit-test-cc:latest
steps:
- name: work around permission issue
run: git config --global --add safe.directory /__w/deepmd-kit/deepmd-kit
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Setup MPI
uses: mpi4py/setup-mpi@v1
with:
mpi: mpich
- run: python -m pip install tensorflow
- run: source/install/test_cc_local.sh
env:
OMP_NUM_THREADS: 1
TF_INTRA_OP_PARALLELISM_THREADS: 1
TF_INTER_OP_PARALLELISM_THREADS: 1
tensorflow_root: /usr/local
LMP_CXX11_ABI_0: 1
# test lammps
- run: apt-get update && apt-get install -y python3-pip python3-venv
- run: source/install/build_lammps.sh
- run: |
python -m pip install -U pip
python -m pip install -e .[cpu,test]
python -m pip install -e .[cpu,test,lmp]
env:
DP_BUILD_TESTING: 1
- run: pytest --cov=deepmd source/lmp/tests
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/test_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,10 @@ jobs:
- python: 3.7
gcc: 8
tf: 1.14
- python: 3.7
gcc: 5
tf:
- python: 3.7
- python: 3.8
gcc: 8
tf:
- python: "3.10"
gcc: 5
tf:
- python: "3.10"
- python: "3.11"
gcc: 8
tf:

Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
- id: check-toml
# Python
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.3.0
hooks:
- id: black-jupyter
- repo: https://github.com/PyCQA/isort
Expand All @@ -26,7 +26,7 @@ repos:
files: \.py$
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: v0.0.243
rev: v0.0.269
hooks:
- id: ruff
args: ["--fix"]
Expand All @@ -43,7 +43,7 @@ repos:
- id: blacken-docs
# C++
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v15.0.7
rev: v16.0.4
hooks:
- id: clang-format
exclude: ^source/3rdparty|source/lib/src/cuda/cudart/.+\.inc
Expand All @@ -54,7 +54,7 @@ repos:
- id: csslint
# Shell
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.6.0-1
rev: v3.6.0-2
hooks:
- id: shfmt
# CMake
Expand Down
19 changes: 0 additions & 19 deletions CITATION.cff

This file was deleted.

Loading