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

v1.3 compatibility #724

Closed
wants to merge 622 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
622 commits
Select commit Hold shift + click to select a range
9ec1786
namespace for tabulate and utilities
Mar 17, 2021
f38678f
fix bug : namespace in cuda compiling
Mar 17, 2021
f5af444
Merge pull request #18 from deepmodeling/api
denghuilu Mar 18, 2021
ebdb404
fix bugs of single precision training and transfer
denghuilu Mar 18, 2021
3dc9768
fix bug of nbor sorting
denghuilu Mar 18, 2021
446dae6
Merge pull request #423 from denghuilu/api-denghui
amcadmus Mar 19, 2021
71dc7a8
Merge pull request #19 from amcadmus/api
denghuilu Mar 19, 2021
53de560
fix bug of gpu namespace
denghuilu Mar 19, 2021
a8ada89
add namespace deepmd for gpu_cuda.h
denghuilu Mar 19, 2021
7eff74d
Merge pull request #4 from denghuilu/api
amcadmus Mar 19, 2021
aab1022
Merge pull request #422 from amcadmus/api
amcadmus Mar 19, 2021
708de6c
better output format during training, testing and in lcurve.out
Mar 19, 2021
3dfbb54
Merge pull request #425 from amcadmus/api
amcadmus Mar 19, 2021
c3e9292
fix bugs of ase calculator and add tests
njzjz Mar 22, 2021
373349c
add ase to tests
njzjz Mar 22, 2021
c5eef2f
fix typo
njzjz Mar 22, 2021
d5354fd
fix bug
njzjz Mar 22, 2021
c7475d7
import Path for runtime
njzjz Mar 23, 2021
cb8f04f
Merge pull request #429 from njzjz/api-ase
amcadmus Mar 23, 2021
578e89b
refact model
Mar 26, 2021
d722526
fix bug of getting inputs
Mar 27, 2021
716a7fa
fix bug of UTs and srtab
Mar 27, 2021
5ba6456
fix bug of gen tab.xvg
Mar 27, 2021
d89bfea
Merge pull request #1 from deepmodeling/api
iProzd Mar 27, 2021
8cfc0e8
prod_env_mat gpu update
iProzd Mar 27, 2021
aeef9b9
fix bugs of tensor model
Mar 27, 2021
6dcba45
Merge pull request #448 from amcadmus/api
amcadmus Mar 27, 2021
967ad7c
add module train. mv some global vars from run_opt to env
Mar 27, 2021
b570868
do not install moved files
Mar 27, 2021
028e8c8
mv main to entrypoints, mv source/train to source/config
Mar 27, 2021
eab28a7
fix bugs
Mar 27, 2021
7b1ff75
fix bug
Mar 27, 2021
f142eb5
fig bug: wrong place of model version
Mar 27, 2021
a83ab7e
Merge pull request #453 from amcadmus/api
amcadmus Mar 28, 2021
1388bcd
rm old-style implementation of prod_env_mat, prod_force and prod_virial
Mar 29, 2021
d99124c
fix bug in cmake config of api UT
Mar 29, 2021
29598ea
fix bug in multi frame support
Mar 29, 2021
3b4044b
fix bugs of calling old OPs
Mar 29, 2021
056471d
fix bug in UT
Mar 29, 2021
9d3bb1b
fix bug of using old se_r
Mar 29, 2021
3eee027
Merge pull request #455 from amcadmus/api
amcadmus Mar 29, 2021
95bd33f
gpu region update
iProzd Mar 29, 2021
e5bc804
format update
iProzd Mar 29, 2021
7a3496a
add region.cuh
iProzd Mar 29, 2021
c0bd658
Merge pull request #452 from iProzd/api
amcadmus Mar 30, 2021
35789ff
Update install.md
tuoping Apr 1, 2021
b536512
Update use-deepmd-kit.md
tuoping Apr 1, 2021
d452d95
Update index.rst
tuoping Apr 1, 2021
2716b34
Update index.rst
tuoping Apr 1, 2021
8c660b4
Create novel-auxiliary-options
tuoping Apr 1, 2021
4f6362d
Update index.rst
tuoping Apr 1, 2021
370e874
Update use-deepmd-kit.md
tuoping Apr 1, 2021
71316a0
Adding entries in document
Apr 2, 2021
d4a0107
Merge pull request #2 from deepmodeling/api
iProzd Apr 2, 2021
4a94973
doc modification strike 2
Apr 2, 2021
93dd143
doc modification strike 3
Apr 2, 2021
db40236
doc modification strike 4
Apr 2, 2021
e1119de
install g++-7 in GitHub Actions
njzjz Apr 2, 2021
c539dba
changed the unit of virial
Apr 5, 2021
4763994
update doc for intallation
Apr 5, 2021
89c9dfd
install g++-7 in GitHub Actions
njzjz Apr 2, 2021
d9a4c44
Merge pull request #468 from tuoping/devel
amcadmus Apr 5, 2021
1a06aa4
Merge pull request #473 from amcadmus/api
amcadmus Apr 5, 2021
394d599
merge api into devel
Apr 6, 2021
0ae18d3
Merge pull request #474 from amcadmus/devel
amcadmus Apr 6, 2021
f0617ad
prod_force_grad&prod_virial_grad gpu update
iProzd Apr 6, 2021
193eaa3
Merge pull request #3 from deepmodeling/api
iProzd Apr 6, 2021
5ac571d
fix bug in prod_env_mat.cu
iProzd Apr 8, 2021
0cc22bc
fix bug in prod_env_mat.cu
iProzd Apr 8, 2021
7fa54f7
Merge pull request #490 from iProzd/api
amcadmus Apr 9, 2021
2ac43eb
update dipole training and test: support combination of glocal and at…
YWolfeee Apr 9, 2021
a579b0d
final check of updated dipole mode, few modification
YWolfeee Apr 9, 2021
bac3462
few modifaction, compatile with polar mode
YWolfeee Apr 9, 2021
056853c
add options `sys_probs` and `auto_prob_style`, fix bug in sys_probs
Apr 9, 2021
e23945a
ut test debug: change input argument atomic-energy to atomic
YWolfeee Apr 10, 2021
dd7dc60
Merge pull request #496 from amcadmus/devel
amcadmus Apr 10, 2021
c459183
PR debug: take Han Wang's advice, not to change the value of weight; …
YWolfeee Apr 12, 2021
4a10349
Merge pull request #495 from YWolfeee/api
amcadmus Apr 12, 2021
6b7c2db
training on all sets in the training data systems. strict argcheck.
Apr 12, 2021
008f10b
set as default training data excludes "test set".
Apr 13, 2021
809e898
Merge pull request #502 from amcadmus/devel
amcadmus Apr 13, 2021
eaf290a
Merge pull request #503 from deepmodeling/api
amcadmus Apr 13, 2021
321e82e
Merge pull request #1 from deepmodeling/devel
YWolfeee Apr 13, 2021
8a5706e
update the argcheck to use the auto generated ref for variants from d…
Apr 13, 2021
6f489be
test removed; validation supported.
ZiyaoLi Apr 13, 2021
15fe795
Merge pull request #504 from amcadmus/devel
amcadmus Apr 13, 2021
2bb9450
Merge pull request #23 from deepmodeling/devel
denghuilu Apr 13, 2021
d4d11e8
fix bugs in examples. unsed key does not pass argcheck in strict mode
Apr 13, 2021
a4bda74
add doc for modifier
Apr 13, 2021
e81abb3
Merge remote-tracking branch 'origin/devel' into devel
Apr 13, 2021
2cd0023
Merge pull request #507 from amcadmus/devel
amcadmus Apr 13, 2021
eff1a3c
fix bugs: 1, exclude type in ebd. 2, remove se_ar, use hybrid instead
Apr 13, 2021
2019b6f
fix bugs. remove outdated examples
Apr 13, 2021
cb26ef7
Merge pull request #508 from amcadmus/devel
amcadmus Apr 13, 2021
2200c53
use new reference style in gen_doc
y1xiaoc Apr 13, 2021
0368aad
clean up doc for coding conventions
y1xiaoc Apr 13, 2021
5749493
Merge pull request #509 from y1xiaoc/devel
amcadmus Apr 14, 2021
b65ccd7
Merge remote-tracking branch 'upstream/devel' into devel
ZiyaoLi Apr 14, 2021
045dd6d
cheating the argcheck for debugging
ZiyaoLi Apr 15, 2021
596a4b2
variable names optimized;
ZiyaoLi Apr 15, 2021
b1bc4fb
minor bug fixed; data cfg scheme altered.
ZiyaoLi Apr 15, 2021
c6fe57b
roll back to incorp. normalization.
ZiyaoLi Apr 15, 2021
ab83ab0
stress dargs.RAW_ANCHOR
ZiyaoLi Apr 15, 2021
ac6013e
minor bug fixed
ZiyaoLi Apr 15, 2021
9d99823
minor bug fixed
ZiyaoLi Apr 15, 2021
97b91fa
update requirement of dargs
Apr 15, 2021
202ec73
dargs version corrected.
ZiyaoLi Apr 15, 2021
12aaa70
Merge pull request #516 from amcadmus/devel
amcadmus Apr 15, 2021
fcd475c
default prec. changed to high
ZiyaoLi Apr 15, 2021
a3d85cb
none validation supported; get_feed_dict optimized.
ZiyaoLi Apr 15, 2021
3925ada
get_evaluation_rst altered to derive atomic avg.
ZiyaoLi Apr 15, 2021
0ee7f84
atomic avg. derived in a compromised way.
ZiyaoLi Apr 15, 2021
c667d00
Merge pull request #517 from ZiyaoLi/devel
amcadmus Apr 16, 2021
80c725f
seperate impl of averging errors across systems
Apr 16, 2021
a8f1c68
change l2 error to rmse
Apr 16, 2021
2186788
fix bug of returned key
Apr 16, 2021
f49c578
Merge pull request #518 from amcadmus/devel
amcadmus Apr 16, 2021
cfc677a
bug fixings: 1, when valid data is not given; 2, bug related to iter …
Apr 16, 2021
c96839b
Merge remote-tracking branch 'upstream/devel' into devel
Apr 16, 2021
634a006
add default values for trainer settings, in case we do not have argch…
Apr 16, 2021
90f744b
print data summary with notation on the data systems
Apr 17, 2021
09834fb
Merge pull request #523 from amcadmus/devel
amcadmus Apr 17, 2021
fec85d4
printing the training error with exactly the batch used to train the …
Apr 17, 2021
c032b48
Merge remote-tracking branch 'upstream/devel' into devel
Apr 17, 2021
a1d21b9
fix 2 spacing issues
Apr 17, 2021
8fc9bed
more understandable variable names
Apr 17, 2021
dbe7996
fix bug in se_t, add unittest
Apr 19, 2021
5df5faf
fix bug in lcurve.out output
Apr 19, 2021
c6ae183
Merge pull request #524 from amcadmus/devel
amcadmus Apr 19, 2021
cfde37b
clean compat v1 -> v2 implemented
ZiyaoLi Apr 19, 2021
aaf794d
Merge remote-tracking branch 'upstream/devel' into devel
Apr 19, 2021
b6211c2
change name : se_a_t -> se_t
Apr 19, 2021
5ed10b3
Merge pull request #25 from deepmodeling/devel
denghuilu Apr 19, 2021
a56ae4f
fix bug in ut
Apr 19, 2021
bb71df3
compat v1 -> v2 unittest implemented
ZiyaoLi Apr 19, 2021
5600b44
fix bug in ut: duplicated graph name
Apr 19, 2021
7feb3a4
Merge pull request #4 from deepmodeling/devel
iProzd Apr 19, 2021
2b99eb5
test bug fixed
ZiyaoLi Apr 19, 2021
0ad4da4
Merge pull request #531 from amcadmus/devel
amcadmus Apr 19, 2021
96d14c1
change names of descriptors, old names are still compatible
Apr 19, 2021
840338c
import fixed
ZiyaoLi Apr 19, 2021
5c48ef9
Merge pull request #530 from ZiyaoLi/devel
amcadmus Apr 19, 2021
de64273
normalized the list items of descriptor `hybrid`
Apr 19, 2021
e34d094
Merge pull request #532 from amcadmus/devel
amcadmus Apr 19, 2021
8ab6829
update doc: changed name of descriptors. with updated dargs
Apr 19, 2021
4b5e916
Merge pull request #534 from amcadmus/devel
amcadmus Apr 19, 2021
a43b312
Merge pull request #26 from deepmodeling/devel
denghuilu Apr 19, 2021
7374920
Merge pull request #5 from deepmodeling/devel
iProzd Apr 20, 2021
1a70105
update the doc and examples
Apr 20, 2021
20876c5
update git ignore
Apr 20, 2021
ab49c43
Merge pull request #537 from amcadmus/devel
amcadmus Apr 20, 2021
8f83c29
YWolfeee: modified to support loss normalization
YWolfeee Apr 20, 2021
c4a9a33
Merge branch 'devel' into devel
YWolfeee Apr 20, 2021
a46407a
Merge pull request #538 from YWolfeee/devel
amcadmus Apr 20, 2021
27a35e8
fix bugs in examples
Apr 20, 2021
0926971
Merge pull request #541 from amcadmus/devel
amcadmus Apr 20, 2021
6c87859
Merge pull request #2 from deepmodeling/devel
YWolfeee Apr 20, 2021
068d2fb
add what's new in v2.0 to readme. move troubleshooting to a separate …
Apr 20, 2021
6f5e4c1
Merge pull request #542 from amcadmus/devel
amcadmus Apr 20, 2021
d42968f
use bit operations to construct nbor sort keys
denghuilu Apr 20, 2021
88e26ea
fix bug of using old name se_a, changed to se_e2_a
Apr 21, 2021
a5a31a6
fix bugs in UT
Apr 21, 2021
a5cb130
Merge pull request #547 from amcadmus/devel
amcadmus Apr 21, 2021
58e83ae
add ut for encoding/decoding nbor info
denghuilu Apr 23, 2021
f9000a6
Merge pull request #27 from deepmodeling/devel
denghuilu Apr 23, 2021
7defc15
Merge pull request #545 from denghuilu/devel
amcadmus Apr 23, 2021
7b79ede
close loss normalization, since it need further examination
YWolfeee Apr 23, 2021
7f45c18
Merge pull request #6 from deepmodeling/devel
iProzd Apr 23, 2021
9067c97
Merge pull request #559 from YWolfeee/devel
amcadmus Apr 23, 2021
23a9b22
Fix bug in coord.cu
iProzd Apr 25, 2021
9bc7e99
Merge pull request #7 from deepmodeling/devel
iProzd Apr 25, 2021
0641961
Merge pull request #566 from iProzd/devel
amcadmus Apr 25, 2021
1d11f6c
Merge pull request #8 from deepmodeling/devel
iProzd Apr 27, 2021
fde04de
Add lib coord unittest
iProzd Apr 27, 2021
0d0cb77
Merge pull request #569 from iProzd/devel
amcadmus Apr 27, 2021
7df619c
refact fit/ener.py, add UT for atom_ener, fix zero divider bug in se_a
Apr 28, 2021
0547de2
add support for type embedding in fitting. fix bugs in fit/ener.py
Apr 28, 2021
b82f882
extend the input dim of embedding net
Apr 28, 2021
8e2a897
Merge remote-tracking branch 'upstream/devel' into devel
Apr 29, 2021
6c7272d
add support for type embedding
Apr 29, 2021
d22068f
update doc for input parameters
Apr 29, 2021
4bf3545
add doc for type_embed, fix bug
Apr 29, 2021
73482ac
add UT for type_one_side
Apr 30, 2021
2ed422f
Merge pull request #581 from amcadmus/devel
amcadmus May 1, 2021
75d702a
fix bug: type embedding should be optional
May 4, 2021
d77a6a1
Merge remote-tracking branch 'upstream/devel' into devel
May 4, 2021
850169f
Merge pull request #588 from amcadmus/devel
amcadmus May 4, 2021
206955e
UT for std calculations
May 6, 2021
7d24520
refact the impl. of std and relative std
May 7, 2021
6ed3ec4
impl model deviation of virial
May 7, 2021
0e4d294
support relative model deviation for virial
May 7, 2021
6218faf
fix bug: declaration of all_virial should be available to all precisions
May 7, 2021
75d7ca1
Merge pull request #594 from amcadmus/devel
amcadmus May 8, 2021
6a1d643
fix issue #598
May 8, 2021
e12acdf
test lammps builds
njzjz May 8, 2021
0ad8856
copy lammps plugin
njzjz May 8, 2021
a3742d5
Merge pull request #9 from deepmodeling/devel
iProzd May 8, 2021
50fc2db
Merge pull request #600 from njzjz/test-lammps-builds
amcadmus May 9, 2021
2dfb64a
Re-structured Doc (#513)
tuoping May 9, 2021
bcdd9f6
Merge pull request #599 from amcadmus/fix-598
amcadmus May 9, 2021
33c0c0f
add ut for model compression (#586)
denghuilu May 9, 2021
900dd5a
Merge Tensor Loss Training and Polar Normalization (#593)
YWolfeee May 10, 2021
169ea25
print the virial model deviations in the place of zeros (#606)
amcadmus May 11, 2021
f9181ca
fix bug of type embed
yhliu918 May 11, 2021
559939a
fix bug of type embedding
yhliu918 May 11, 2021
6286554
Merge pull request #33 from deepmodeling/devel
denghuilu May 11, 2021
c721128
optimize UT for dp transfer
denghuilu May 11, 2021
7b5d4de
fix bug in test_transfer.py
denghuilu May 11, 2021
18e1caa
add coverage report for c/c++ api
njzjz May 11, 2021
478ee0d
uploading once is enough
njzjz May 11, 2021
50283b2
Merge pull request #34 from deepmodeling/devel
denghuilu May 11, 2021
65cfd8a
fix bug of issue/580
denghuilu May 11, 2021
c27df8b
Fix bug in tf allocate_temp
iProzd May 11, 2021
780885d
Merge pull request #10 from deepmodeling/devel
iProzd May 11, 2021
2fa34cd
change options
njzjz May 11, 2021
cbc2621
Apply suggestions from code review
njzjz May 11, 2021
eaa774f
link coverage_config
njzjz May 11, 2021
9724071
Merge pull request #609 from jxxiaoshaoye/devel
amcadmus May 11, 2021
84b618c
Merge pull request #611 from denghuilu/fix580
amcadmus May 11, 2021
d7d81eb
Merge pull request #612 from iProzd/devel
amcadmus May 11, 2021
5f71eae
Merge pull request #610 from denghuilu/devel
amcadmus May 11, 2021
90c0f60
Merge pull request #35 from deepmodeling/devel
denghuilu May 11, 2021
31707c2
Ignore tests
njzjz May 11, 2021
18b9987
Merge branch 'devel' into coverage
njzjz May 11, 2021
012b9fc
fix TB logdir remove bug
marian-code May 12, 2021
8f76b6c
add UUID support for DP
denghuilu May 12, 2021
073c733
Merge pull request #621 from denghuilu/devel
amcadmus May 12, 2021
9ce0286
Merge pull request #617 from marian-code/devel
amcadmus May 12, 2021
f70437f
Merge pull request #613 from njzjz/coverage
amcadmus May 13, 2021
396a41c
check validity of data systems. print help message
May 13, 2021
ed5bac8
Merge pull request #624 from amcadmus/devel
amcadmus May 13, 2021
9fd6ddc
add Important hint at getting-start.md (#622)
denghuilu May 13, 2021
c93a084
add doc of type embedding (#625)
yhliu918 May 13, 2021
72de108
Optimized mkindex function in doc/conf.py and added two files in trou…
tuoping May 14, 2021
6bba7fc
support MPI and other atom_styles for LAMMPS atomic keyword (#628)
njzjz May 14, 2021
98c3ba1
fix spell mistake (#638)
njzjz May 15, 2021
83fffbe
Readme and Examples for Tensor mode (#632)
YWolfeee May 18, 2021
363f9ba
append to out_file when LAMMPS restarts (#640)
njzjz May 18, 2021
cb2c118
add an example of C++ inference to doc (#652)
njzjz May 24, 2021
5a8bc2c
Add instructions for i-PI (#660)
tuoping May 26, 2021
b3cfe45
Added doc for netsize setting, num_nodes specification, and sel setti…
tuoping May 29, 2021
a74ce2d
fix issue 668 (#680)
denghuilu May 31, 2021
6058351
fix bug in op definition prod_virial_grad_multi_device.cc. (#685)
amcadmus Jun 1, 2021
778321e
Add ROCM support for DEEPMD (#656)
galeselee Jun 1, 2021
57b50cc
Fix uniform random seed (#691)
amcadmus Jun 2, 2021
ab7621e
Doc api cc (#663)
tuoping Jun 3, 2021
3588c2d
add op unittests for prod_force, prod_virial, prod_force_grad and pro…
iProzd Jun 4, 2021
0d2ffb3
fix bug of adding int to a None random seed (#705)
amcadmus Jun 5, 2021
a4992e3
update the doc for training input (#706)
amcadmus Jun 5, 2021
e20888d
add v1.3 compatibility
njzjz Jun 10, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
36 changes: 36 additions & 0 deletions .github/workflows/build_cc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
on:
push:
pull_request:
name: Build C++
jobs:
testpython:
name: Build C++
runs-on: ubuntu-20.04
strategy:
matrix:
include:
- float_prec: high
variant: cpu
- float_prec: low
variant: cpu
- float_prec: high
variant: gpu
- float_prec: low
variant: gpu
steps:
- uses: actions/checkout@master
with:
submodules: true
- run: sudo apt update && sudo apt install g++-7
- run: sudo apt install nvidia-cuda-toolkit
if: matrix.variant == 'gpu'
- run: source/install/build_cc.sh
env:
FLOAT_PREC: ${{ matrix.float_prec }}
CC: gcc-7
CXX: g++-7
- run: source/install/build_lammps.sh
env:
FLOAT_PREC: ${{ matrix.float_prec }}
CC: gcc-7
CXX: g++-7
67 changes: 67 additions & 0 deletions .github/workflows/build_wheel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Build and upload to PyPI

on:
push:
pull_request:

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04] #, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
name: Install Python
with:
python-version: '3.8'

- name: Install cibuildwheel
run: |
python -m pip install cibuildwheel

- name: Build wheels
env:
CIBW_BUILD: "cp36-* cp37-* cp38-*"
CIBW_BEFORE_BUILD: pip install tensorflow && sed -i 's/libresolv.so.2"/libresolv.so.2", "libtensorflow_framework.so.2"/g' /opt/_internal/tools/lib/python*/site-packages/auditwheel/policy/policy.json
CIBW_SKIP: "*-win32 *-manylinux_i686"
run: |
python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl

build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
name: Install Python
with:
python-version: '3.8'
- run: pip install -U scikit-build tensorflow setuptools_scm
- name: Build sdist
run: python setup.py sdist

- uses: actions/upload-artifact@v2
with:
path: dist/*.tar.gz

upload_pypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
if: startsWith(github.event.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v2
with:
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
33 changes: 33 additions & 0 deletions .github/workflows/lint_python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
push:
pull_request:
name: Lint Python
jobs:
lintpython:
name: Lint Python
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.8]

steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install requirements
run: pip install -r requirements.txt
- uses: marian-code/python-lint-annotate@v2.5.0
with:
python-root-list: "./deepmd/*.py ./deepmd/*/*.py ./source/train/*.py ./source/tests/*.py ./source/op/*.py"
use-black: true
use-isort: true
use-mypy: true
use-pycodestyle: true
use-pydocstyle: true
extra-pycodestyle-options: "--max-line-length=88"
use-pylint: false
use-flake8: false
use-vulture: true
conda-python-version: "3.8"

11 changes: 11 additions & 0 deletions .github/workflows/test_cc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
on:
push:
pull_request:
name: Test C++
jobs:
testpython:
name: Test C++
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: source/install/test_cc.sh
73 changes: 73 additions & 0 deletions .github/workflows/test_python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
on:
push:
pull_request:
name: Test Python
jobs:
testpython:
name: Test Python
runs-on: ubuntu-18.04
strategy:
matrix:
include:
- python: 3.6
gcc: 4.8
tf: 1.8
- python: 3.6
gcc: 4.8
tf: 1.12
- python: 3.6
gcc: 4.8
tf: 1.14
- python: 3.6
gcc: 5
tf: 1.14
- python: 3.6
gcc: 8
tf: 1.14
- python: 3.7
gcc: 5
tf: 1.14
- python: 3.7
gcc: 6
tf: 1.14
- python: 3.7
gcc: 7
tf: 1.14
- python: 3.7
gcc: 8
tf: 1.14
- python: 3.7
gcc: 5
tf: 2.3
- python: 3.7
gcc: 8
tf: 2.3
- python: 3.8
gcc: 5
tf: 2.3
- python: 3.8
gcc: 8
tf: 2.3

steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: pip cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key:
${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- run: |
sudo apt update
sudo apt install gcc-${{ matrix.gcc }} g++-${{ matrix.gcc }}
- run: pip install -e .[cpu,test] codecov
env:
CC: gcc-${{ matrix.gcc }}
CXX: g++-${{ matrix.gcc }}
TENSORFLOW_VERSION: ${{ matrix.tf }}
- run: pytest --cov=deepmd source/tests && codecov
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ venv*
.vscode/**
_build
_templates
API_CC
dp/**
build_lammps/**
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "source/op/cuda/cub"]
path = source/op/cuda/cub
url = git://github.com/NVlabs/cub.git
[submodule "source/lib/src/cuda/cub"]
path = source/lib/src/cuda/cub
url = git://github.com/NVIDIA/cub.git
95 changes: 0 additions & 95 deletions .travis.yml

This file was deleted.

Loading