Skip to content

Commit aa640dd

Browse files
authored
Merge pull request #20 from deepmodeling/master
master update
2 parents 0da10cd + 2f6020b commit aa640dd

648 files changed

Lines changed: 539516 additions & 15411 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: Bug report
3+
about: Create a bug report to help us eliminate issues and improve deepmd-kit. If
4+
this doesn’t look right, [choose a different type](https://github.com/deepmodeling/deepmd-kit/issues/new/choose).
5+
title: "[BUG] _Replace With Suitable Title_"
6+
labels: bug
7+
assignees: ''
8+
9+
---
10+
11+
**Summary**
12+
13+
<!--Please provide a clear and concise description of what the bug is.-->
14+
15+
**Deepmd-kit version, installation way, input file, running commands, error log, etc.**
16+
17+
<!--Please provide necessary information including the version of software and installation way, input file, running commands, error log , etc., AS DETAILED AS POSSIBLE to help locate and reproduce your problem. !!! WARNING: Do not use image to show error log! Paste texts in a code block instead. !!!-->
18+
19+
<!--If applicable, specify what platform you are running on. -->
20+
21+
**Steps to Reproduce**
22+
23+
<!--Describe the steps required to (quickly) reproduce the issue. You can attach (small) files to the section below or add URLs where to download an archive with all necessary files. Please try to create an input set that is as minimal and small as possible and reproduces the bug as quickly as possible. **NOTE:** the less effort and time it takes to reproduce your reported bug, the more likely it becomes, that somebody will look into it and fix the problem.-->
24+
25+
**Further Information, Files, and Links**
26+
27+
<!--Put any additional information here, attach relevant text or image files and URLs to external sites, e.g. relevant publications-->
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project. If this doesn’t work right, [choose a different
4+
type]( https://github.com/deepmodeling/deepmd-kit/issues/new/choose)
5+
title: "[Feature Request] _Replace with Title_"
6+
labels: enhancement
7+
assignees: ''
8+
9+
---
10+
11+
**Summary**
12+
13+
<!--Please provide a brief and concise description of the suggested feature or change-->
14+
15+
**Detailed Description**
16+
17+
<!--Please explain how you would like to see deepmd-kit enhanced, what feature(s) you are looking for, what specific problems this will solve. If possible, provide references to relevant background information like publications or web pages, and whether you are planning to implement the enhancement yourself or would like to participate in the implementation. If applicable add a reference to an existing bug report or issue that this will address.-->
18+
19+
**Further Information, Files, and Links**
20+
21+
<!--Put any additional information here, attach relevant text or image files and URLs to external sites, e.g. relevant publications-->
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Generic issue
3+
about: For issues that do not fit any of the other categories. If this doesn’t work
4+
right, [choose a different type]( https://github.com/deepmodeling/deepmd-kit/issues/new/choose).
5+
title: _Replace With a Descriptive Title_
6+
labels: wontfix
7+
assignees: ''
8+
9+
---
10+
11+
**Summary**
12+
13+
<!--Please provide a clear and concise description of what the question is.-->
14+
15+
**Deepmd-kit Version, Python Version, Tensorflow Version, GCC Version and Cuda Version.**
16+
17+
<!--Please specify precisely which Deepmd-kit version this issue was detected with on what build environment, (Python Version and GCC Version are in the first and second line of Python command line interface respectively. And check the Deepmd-kit Version with command line "print(deepmd.__version__)"). -->
18+
19+
<!--If applicable, specify what platform you are running on. -->
20+
21+
**Details**
22+
23+
<!--Please explain the issue in detail here-->
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Parameters
3+
about: Make a suggestion for a change of input parameters or a new output to deepmd-kit.
4+
If this doesn’t work right, [choose a different type]( https://github.com/deepmodeling/deepmd-kit/issues/new/choose).
5+
title: "[Parameters] _Replace With Suitable Title_"
6+
labels: documentation, enhancement
7+
assignees: ''
8+
9+
---
10+
11+
**Summary**
12+
13+
<!--Please provide a clear and concise description of what your request is.-->
14+
15+
**Summary**
16+
17+
<!--Please provide a brief and concise description of the suggested feature or change-->
18+
19+
**Detailed Description**
20+
21+
<!--Please explain how you would like to see deepmd-kit enhanced. Specify your material system, and exactly what behaviors or properties you are looking for, or what specific problems this will solve. If possible, provide references to relevant background information like publications or web pages, and whether you are planning to implement the enhancement yourself or would like to participate in the implementation.-->
22+
23+
**Further Information, Files, and Links**
24+
25+
<!--Put any additional information here, attach relevant text or image files and URLs to external sites, e.g. relevant publications-->
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Request for Help
3+
about: Don't post help requests here, go to [discussions](https://github.com/deepmodeling/deepmd-kit/discussions)
4+
instead.
5+
title: ''
6+
labels: ''
7+
assignees: ''
8+
9+
---
10+
11+
Before asking questions, you can
12+
13+
search the previous issues or discussions
14+
check the [document](https://deepmd.readthedocs.io/en/stable), especially [training parameters](https://deepmd.readthedocs.io/en/stable/train-input.html).
15+
16+
Please **do not** post requests for help (e.g. with installing or using deepmd-kit) here.
17+
Instead go to [discussions](https://github.com/deepmodeling/deepmd-kit/discussions).
18+
19+
This issue tracker is for tracking deepmd-kit development related issues only.
20+
21+
Thanks for your cooperation.

.github/workflows/build_cc.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
on:
2+
push:
3+
pull_request:
4+
name: Build C++
5+
jobs:
6+
testpython:
7+
name: Build C++
8+
runs-on: ubuntu-20.04
9+
strategy:
10+
matrix:
11+
include:
12+
- variant: cpu
13+
- variant: cuda
14+
steps:
15+
- uses: actions/checkout@master
16+
with:
17+
submodules: true
18+
- run: sudo apt update && sudo apt install g++-7
19+
- run: sudo apt install nvidia-cuda-toolkit
20+
if: matrix.variant == 'cuda'
21+
- run: source/install/build_cc.sh
22+
env:
23+
DP_VARIANT: ${{ matrix.variant }}
24+
CC: gcc-7
25+
CXX: g++-7

.github/workflows/build_wheel.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Build and upload to PyPI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build_wheels:
9+
name: Build wheels on ${{ matrix.os }}
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
os: [ubuntu-18.04] #, windows-latest, macos-latest]
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-python@v2
18+
name: Install Python
19+
with:
20+
python-version: '3.8'
21+
22+
- name: Install cibuildwheel
23+
run: |
24+
python -m pip install cibuildwheel
25+
26+
- name: Build wheels
27+
env:
28+
CIBW_BUILD: "cp36-* cp37-* cp38-* cp39-*"
29+
CIBW_MANYLINUX_X86_64_IMAGE: ghcr.io/deepmodeling/manylinux2010_x86_64_tensorflow
30+
CIBW_BEFORE_BUILD: pip install tensorflow
31+
CIBW_SKIP: "*-win32 *-manylinux_i686"
32+
run: |
33+
python -m cibuildwheel --output-dir wheelhouse
34+
- uses: actions/upload-artifact@v2
35+
with:
36+
path: ./wheelhouse/*.whl
37+
38+
build_sdist:
39+
name: Build source distribution
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@v2
43+
- uses: actions/setup-python@v2
44+
name: Install Python
45+
with:
46+
python-version: '3.8'
47+
- run: pip install -U scikit-build tensorflow setuptools_scm
48+
- name: Build sdist
49+
run: python setup.py sdist
50+
51+
- uses: actions/upload-artifact@v2
52+
with:
53+
path: dist/*.tar.gz
54+
55+
upload_pypi:
56+
needs: [build_wheels, build_sdist]
57+
runs-on: ubuntu-latest
58+
if: startsWith(github.event.ref, 'refs/tags/v')
59+
steps:
60+
- uses: actions/download-artifact@v2
61+
with:
62+
name: artifact
63+
path: dist
64+
65+
- uses: pypa/gh-action-pypi-publish@master
66+
with:
67+
user: __token__
68+
password: ${{ secrets.pypi_password }}

.github/workflows/lint_python.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
on:
2+
push:
3+
pull_request:
4+
name: Lint Python
5+
jobs:
6+
lintpython:
7+
name: Lint Python
8+
runs-on: ubuntu-20.04
9+
strategy:
10+
matrix:
11+
python-version: [3.8]
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
- uses: actions/setup-python@v2
16+
with:
17+
python-version: ${{ matrix.python }}
18+
- name: Install requirements
19+
run: pip install -r requirements.txt
20+
- uses: marian-code/python-lint-annotate@v2.5.0
21+
with:
22+
python-root-list: "./deepmd/*.py ./deepmd/*/*.py ./source/train/*.py ./source/tests/*.py ./source/op/*.py"
23+
use-black: true
24+
use-isort: true
25+
use-mypy: true
26+
use-pycodestyle: true
27+
use-pydocstyle: true
28+
extra-pycodestyle-options: "--max-line-length=88"
29+
use-pylint: false
30+
use-flake8: false
31+
use-vulture: true
32+
conda-python-version: "3.8"
33+

.github/workflows/mirror_gitee.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Mirror to Gitee Repo
2+
3+
on: [ push, delete, create ]
4+
5+
# Ensures that only one mirror task will run at a time.
6+
concurrency:
7+
group: git-mirror
8+
9+
jobs:
10+
git-mirror:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: wearerequired/git-mirror-action@v1
14+
env:
15+
SSH_PRIVATE_KEY: ${{ secrets.SYNC_GITEE_PRIVATE_KEY }}
16+
with:
17+
source-repo: "git@github.com:deepmodeling/deepmd-kit.git"
18+
destination-repo: "git@gitee.com:deepmodeling/deepmd-kit.git"

.github/workflows/test_cc.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
on:
2+
push:
3+
pull_request:
4+
name: Test C++
5+
jobs:
6+
testpython:
7+
name: Test C++
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@master
11+
- run: source/install/test_cc.sh

0 commit comments

Comments
 (0)