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

Fix missing std::numeric_limits #1113

Merged
merged 84 commits into from
Sep 8, 2021

Conversation

chazeon
Copy link
Contributor

@chazeon chazeon commented Sep 8, 2021

  • Include <limits> header, fix missing std::numeric_limits when compiling with GCC 11.0.

amcadmus and others added 30 commits December 21, 2020 20:25
Merge recent development on devel to master
bug fixing: not displaying input doc on github
add doc for short-range tabulated interaction
Bug fixings and add notice for the consistency of TF versions.
When the number of sel is smaller than the lammps nbors, the program may have a gpu sorting error.
update compiler support for Ampere architecture devices
The assertions will be bypassed in release building mode
Restarting the pair_style `deepmd` from restart file is not supported
fix bug of illegal device memory access
njzjz and others added 24 commits April 19, 2021 19:25
In conda-forge's recent released tensorflow, protobuf is external
from tensorflow and not inside the tensorflow directory.
Clang doesn't support this flag, cause an error on osx:

> ld: unknown option: --no-as-needed

This commit should be cherry-picked to `r1.2` branch.
…_on_gnu

only enable link what you use on GNU compilers
This ensures the out file will not be override when LAMMPS restarts.
This commit may be conflicted with deepmodeling#392. Commit
@5597ea2b49f96e99a52a9779b04b6c12e5a79a04 should be dropped.
Add request not to use image to show error log.
* add aliases to Arguments

fix deepmodeling#846.

* fix a typo in deepmodeling#932
* rm load_ckpt

* rm wrong files

Co-authored-by: Han Wang <wang_han@iapcm.ac.cn>
…1041)

The flag won't work without language specified.
See https://cmake.org/cmake/help/v3.4/variable/CMAKE_COMPILER_IS_GNULANG.html

(cherry picked from commit 8bbe565)

Co-authored-by: Chun Cai <amoycaic@gmail.com>
- Include `<limits>` header, fix missing `std::numeric_limits` when compiling with GCC 11.0.
@codecov-commenter
Copy link

codecov-commenter commented Sep 8, 2021

Codecov Report

Merging #1113 (08369ad) into devel (1fbf474) will decrease coverage by 1.24%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##            devel    #1113      +/-   ##
==========================================
- Coverage   75.61%   74.37%   -1.25%     
==========================================
  Files          88       88              
  Lines        7016     7000      -16     
==========================================
- Hits         5305     5206      -99     
- Misses       1711     1794      +83     
Impacted Files Coverage Δ
deepmd/infer/deep_tensor.py 56.09% <0.00%> (-39.03%) ⬇️
deepmd/train/run_options.py 71.42% <0.00%> (-15.37%) ⬇️
deepmd/loggers/loggers.py 41.90% <0.00%> (-9.53%) ⬇️
source/op/_gelu.py 71.42% <0.00%> (-6.35%) ⬇️
deepmd/train/trainer.py 69.81% <0.00%> (-2.21%) ⬇️
deepmd/loss/ener.py 47.34% <0.00%> (-0.24%) ⬇️
source/op/_tabulate_grad.py 100.00% <0.00%> (ø)
source/op/_prod_force_grad.py 100.00% <0.00%> (ø)
source/op/_prod_virial_grad.py 100.00% <0.00%> (ø)
source/op/_soft_min_force_grad.py 100.00% <0.00%> (ø)
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1fbf474...08369ad. Read the comment docs.

@amcadmus amcadmus changed the base branch from master to devel September 8, 2021 11:58
@amcadmus amcadmus merged commit 60797e0 into deepmodeling:devel Sep 8, 2021
njzjz pushed a commit to njzjz/deepmd-kit that referenced this pull request Sep 21, 2023
**expected behavior**:
when `"labeled":true` in `dpgen simplify`, 02.fp will soft-link "labeled
data", and the soft-linked "task dir" will also be created, for format
consistency.

it is expected to be `data.000` and `task.000.000000`, 
being respectively guaranteed by funcs `data_system_fmt` and
`fp_task_fmt`

**bug**:
the typo_bug used `data_system_fmt` for the "task dir" instead of
`fp_task_fmt`,
then gives `task.000` instead of `task.000.000000`,

which makes `_check_empty_iter` (who checks `glob.glog("task.000.*")`)
in `generator/run.py` sentence this iter empty,
then `00.train` of the next iter is always skipped.

**consequence**:
this make the "simplify_labeled" process never starts correctly, 

no iter0 model presents and randomly-picked data in iter0 are never
trained,
then iter1 gives error that can't finding the graph file from iter0 when
trying copying them due to the train-skip.

**BTW**
thought "simplify_labeled" valuable in some complex or big-data
scenarios but seems not loved by users yet.
pity  : (

Signed-off-by: Wanrun Jiang
<58099845+Vibsteamer@users.noreply.github.com>

Signed-off-by: Wanrun Jiang <58099845+Vibsteamer@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants