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 ‘post_fp_cp2k’, add param rfailed #765

Merged
merged 2 commits into from
Jul 1, 2022

Conversation

HuangJiameng
Copy link
Collaborator

@HuangJiameng HuangJiameng commented Jul 1, 2022

  1. ratio_failed was not applied in post_fp_cp2k.
  2. When a cp2k task fails, it returns an empty "output" file. Since dpdispatcher only checks whether the output file exists or not, it marks the task finished and sends back the empty file. An empty or not converged output file leads to errors in the following step. Commenting out check_type_map is a temporary solution, which can run the next step by ignoring empty output files. To solve this problem fundamentally, dpdispatcher should probably be modified as well.
  • add ratio_failed param to cp2k in 02.fp step
  • fix a bug in post_fp_cp2k

@codecov-commenter
Copy link

codecov-commenter commented Jul 1, 2022

Codecov Report

Merging #765 (cb2e022) into devel (f66c2a7) will increase coverage by 0.89%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##            devel     #765      +/-   ##
==========================================
+ Coverage   33.91%   34.80%   +0.89%     
==========================================
  Files          93       96       +3     
  Lines       16562    16638      +76     
==========================================
+ Hits         5617     5791     +174     
+ Misses      10945    10847      -98     
Impacted Files Coverage Δ
dpgen/generator/run.py 63.69% <0.00%> (+1.40%) ⬆️
dpgen/remote/decide_machine.py 92.00% <0.00%> (-8.00%) ⬇️
dpgen/dispatcher/Dispatcher.py 31.64% <0.00%> (-0.35%) ⬇️
dpgen/auto_test/EOS.py 64.58% <0.00%> (-0.13%) ⬇️
dpgen/main.py 0.00% <0.00%> (ø)
dpgen/data/reaction.py 0.00% <0.00%> (ø)
dpgen/generator/arginfo.py 0.00% <0.00%> (ø)
dpgen/simplify/simplify.py 0.00% <0.00%> (ø)
dpgen/simplify/arginfo.py 0.00% <0.00%> (ø)
dpgen/data/arginfo.py 0.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 f66c2a7...cb2e022. Read the comment docs.

Comment on lines -3029 to +3032
_sys.check_type_map(type_map = jdata['type_map'])
#_sys.check_type_map(type_map = jdata['type_map'])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you explain why the check_type_map is commented out?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your comment, I have edited my comment.

@wanghan-iapcm
Copy link
Contributor

2. When a cp2k task fails, it returns an empty "output" file. Since dpdispatcher only checks whether the output file exists or not, it marks the task finished and sends back the empty file. An empty or not converged output file leads to errors in the following step. Commenting out check_type_map is a temporary solution, which can run the next step by ignoring empty output files. To solve this problem fundamentally, dpdispatcher should probably be modified as well.

@njzjz @felix5572 FYI

@wanghan-iapcm wanghan-iapcm merged commit 2e82464 into deepmodeling:devel Jul 1, 2022
@njzjz
Copy link
Member

njzjz commented Jul 1, 2022

  1. When a cp2k task fails, it returns an empty "output" file. Since dpdispatcher only checks whether the output file exists or not, it marks the task finished and sends back the empty file. An empty or not converged output file leads to errors in the following step. Commenting out check_type_map is a temporary solution, which can run the next step by ignoring empty output files. To solve this problem fundamentally, dpdispatcher should probably be modified as well.

@njzjz @felix5572 FYI

This is not the expected behavior. dpdispatcher should check the return code unless cp2k always returns 0.

ZLI-afk pushed a commit to ZLI-afk/dpgen that referenced this pull request Jul 4, 2022
* fix ‘post_fp_cp2k’, add param rfailed

* Update run.py
@HuangJiameng HuangJiameng deleted the fix_CP2K branch September 26, 2022 08:24
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.

4 participants