KarypisLab / ParMETIS

ParMETIS - Parallel Graph Partitioning and Fill-reducing Matrix Ordering
Other
106 stars 41 forks source link

Floating Point Exception on a Small Toy Graph #9

Open aishwaryanr opened 2 years ago

aishwaryanr commented 2 years ago

I'm trying to test ParMETIS on a small toy graph that looks like this:

graph_nodes.txt:

0 1 0 0
0 1 0 1
0 1 0 2
1 0 1 0
1 0 1 1
1 0 1 2
1 0 1 3

graph_edges.txt:

0 1 0 0 
1 2 1 0
0 2 2 0
0 3 3 0

graph_stats.txt: 7 4 2

I then run parmetis using: pm_dglpart graph 1

I keep getting a floating point exception error Signal: Floating point exception (8) Signal code: Integer divide-by-zero (1) Am I doing something wrong?

renaultJB commented 2 years ago

In your toy graph you have isolated vertices, maybe it has something to do with that?