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

Distribute extra rows instead of assigning to last rank #244

Open
wants to merge 2 commits into
base: Develop
Choose a base branch
from

Conversation

jcphill
Copy link

@jcphill jcphill commented Aug 18, 2022

Final rank could have up to numranks extra rows, resulting in load and memory imbalance for large parallel runs.

Also remove broken and unused getGridXY() function.

Based on dinf-dxdyc-fix branch due to conflicting redundant change to calling localToGlobal().

linearpart<datatype>::getdxdyc() would silently fail to return values
for neighbor cells from other ranks, resulting in bad AreaDinf output.
Final rank could have up to numranks extra rows, resulting in
load and memory imbalance for large parallel runs.

Also remove broken and unused getGridXY() function.
@jcphill
Copy link
Author

jcphill commented Aug 18, 2022

Forgot to mention for regression testing that this pull request will change outputs that are dependent on the parallel decomposition, such as the watershed labels, if the number of processes does not evenly divide the number of rows in the raster. Note that these outputs were inconsistent between runs on different process counts already.

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.

1 participant