Skip to content

Conversation

superstar54
Copy link
Member

@superstar54 superstar54 commented Dec 23, 2024

fix #1021
Enable pencil decomposition for all pw.x calculations.

Note, I still get issue on projwfc,

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     Error in routine  blk2cyc_zredist (1):
      nb less than the number of proc
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Copy link

codecov bot commented Dec 23, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 68.87%. Comparing base (efc72d3) to head (c863411).
Report is 132 commits behind head on main.

Files with missing lines Patch % Lines
src/aiidalab_qe/plugins/bands/workchain.py 60.00% 2 Missing ⚠️
src/aiidalab_qe/plugins/xas/workchain.py 50.00% 1 Missing ⚠️
src/aiidalab_qe/plugins/xps/workchain.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1025   +/-   ##
=======================================
  Coverage   68.86%   68.87%           
=======================================
  Files         115      115           
  Lines        6415     6474   +59     
=======================================
+ Hits         4418     4459   +41     
- Misses       1997     2015   +18     
Flag Coverage Δ
python-3.11 68.87% <75.00%> (+<0.01%) ⬆️
python-3.9 68.89% <75.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@@ -33,12 +34,18 @@ def update_resources(builder, codes):
if "bands" in builder:
set_component_resources(builder.bands.scf.pw, codes.get("pw"))
set_component_resources(builder.bands.bands.pw, codes.get("pw"))
builder.bands.scf.pw.settings = orm.Dict({"CMDLINE": ["-pd", ".true."]})

Choose a reason for hiding this comment

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

should it be worth it to create a function in utils like use pencil_decomposition ? like that the code is not repeated , but also is easy to read in the future

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point, I will add a function.

Choose a reason for hiding this comment

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

perhaps also this should be control in the PwCode model ? so the user can set and unset this ?

Copy link
Member Author

Choose a reason for hiding this comment

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

There are two ways to handle this:

  • as you suggested, add a setting in the GUI so that the advanced user can control it.
  • in the WorkChain, it handles the setting automatically or adds an error_handler to restart with a different number of CPUs.

I suggest discussing which way we want to implement in the future PR.

Choose a reason for hiding this comment

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

yeah , i think we can leave it here, but in another PR we just leave the freedom plus the explanation to the user

Copy link
Member

@AndresOrtegaGuerrero AndresOrtegaGuerrero left a comment

Choose a reason for hiding this comment

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

LGTM!, thank you @superstar54 , I would suggest you open an issue, for implementing this in the resource panel in such a way the users can activate or deactivate this. Plus adding explanation to the users about resources and the computers they are using

@superstar54
Copy link
Member Author

Thanks @AndresOrtegaGuerrero , I opened an issue: #1031

@superstar54 superstar54 merged commit 0ca7430 into aiidalab:main Dec 23, 2024
7 of 8 checks passed
@superstar54 superstar54 deleted the fix/1021 branch December 23, 2024 16:10
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.

Issue with small systems on large machines
2 participants