Skip to content

Distribute extra rows instead of assigning to last rank#244

Open
jcphill wants to merge 2 commits into
dtarb:Developfrom
jcphill:linearpart-load-balance
Open

Distribute extra rows instead of assigning to last rank#244
jcphill wants to merge 2 commits into
dtarb:Developfrom
jcphill:linearpart-load-balance

Conversation

@jcphill
Copy link
Copy Markdown
Contributor

@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().

jcphill added 2 commits March 29, 2022 12:39
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
Copy Markdown
Contributor 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