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

[ParHIP] Fix/change from/to calculated for metis graph format and binary graph format #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DanielSeemaier
Copy link
Member

https://github.com/KaHIP/KaHIP/blob/master/parallel/parallel_src/lib/io/parallel_graph_io.cpp#L585

Let n=1382867, size=2048, peID=2046. Then, from=1383096, to=min(1383772, 1382867-1)=1382866, thus local_no_nodes=-229 (actually it overflows since it's a ULONG) and ParHIP crashes in line 585.

This PR should work for any graph sizes / PE counts, although it might need more testing before merging.

@DanielSeemaier DanielSeemaier changed the title Fix/change from/to calculated for metis graph format and binary graph format [ParHIP] Fix/change from/to calculated for metis graph format and binary graph format Mar 21, 2021
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.

None yet

1 participant