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

Feature/jon/npool #76

Merged
merged 9 commits into from
Oct 4, 2019
Merged

Feature/jon/npool #76

merged 9 commits into from
Oct 4, 2019

Conversation

jonpvandermause
Copy link
Collaborator

closes #73

@nw13slx I added a dummy "npool" input to the cp2k run_dft_par function so that it's still compatible with otf.py. Not sure how cp2k handles parallelization by k-point, though (or if it even can).

@codecov-io
Copy link

Codecov Report

Merging #76 into master will increase coverage by 0.03%.
The diff coverage is 94.73%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #76      +/-   ##
==========================================
+ Coverage   51.68%   51.72%   +0.03%     
==========================================
  Files          43       43              
  Lines        6046     6053       +7     
==========================================
+ Hits         3125     3131       +6     
- Misses       2921     2922       +1
Impacted Files Coverage Δ
tests/test_qe_util.py 97.95% <100%> (ø) ⬆️
flare/dft_interface/cp2k_util.py 92.56% <100%> (ø) ⬆️
flare/otf.py 93.79% <100%> (+0.04%) ⬆️
flare/dft_interface/qe_util.py 76.87% <92.85%> (+0.25%) ⬆️

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 245d5a9...474ccf4. Read the comment docs.

@dmclark17
Copy link
Contributor

Python f string might be good? Here is the PEP for it. It can be cleaner than the traditional string formatting

return parse_dft_forces('pwscf.out')
if (no_cpus > 1):
# dft_command = 'mpirun -np {} {}'.format(no_cpus, dft_command)
dft_command = 'srun -n {} --mpi=pmi2 {}'.format(no_cpus, dft_command)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This line is the culprit for unit test failure. Should leave it to the user to decide.

@jonpvandermause jonpvandermause merged commit 3019679 into master Oct 4, 2019
@jonpvandermause jonpvandermause deleted the feature/jon/npool branch October 4, 2019 01:30
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.

adding npool option to QE otf jobs
4 participants