Some jobs report the following error when run through Valgrind
==12272== Invalid read of size 8
==12272== at 0x6B7ABF3: libmetis__Greedy_KWayCutOptimize (kwayfm.c:497)
==12272== by 0x6B76A9E: libmetis__Greedy_KWayOptimize (kwayfm.c:26)
==12272== by 0x6B73D39: libmetis__RefineKWay (kwayrefine.c:102)
==12272== by 0x6B514BC: libmetis__MlevelKWayPartitioning (kmetis.c:135)
==12272== by 0x6B512A6: METIS_PartGraphKway (kmetis.c:74)
==12272== by 0x6B5C37D: metis_partgraphkway_ (frename.c:38)
...
This refers to
if (pwgts[i] > maxpwgts[i] || pwgts[i] < minpwgts[i])
Looking at the preceding code it seems that maxpwgts and minpwgts are defined for the whole range 0:nparts+1, which leads me to suspect that pwgts is the problem. I can't see that pwgts, aka graph->pwgts is allocated the correct size of nparts+2 and also whether pwgts[nparts] and pwgts[nparts+1] are defined, but someone who is familiar with the code needs to look.
Some jobs report the following error when run through Valgrind
This refers to
Looking at the preceding code it seems that
maxpwgts
andminpwgts
are defined for the whole range0:nparts+1
, which leads me to suspect thatpwgts
is the problem. I can't see thatpwgts
, akagraph->pwgts
is allocated the correct size ofnparts+2
and also whetherpwgts[nparts]
andpwgts[nparts+1]
are defined, but someone who is familiar with the code needs to look.