Confusion about the numbering scheme

My confusion is about numflag option for ParMETIS_V3_PartKway()
The manual say that when the numflag is set to 0 for ParMETIS_V3_PartKway(), c-style numbering applies to vtxdist, xadj, adjncy, and part.
However, when I tried parmetis with a adjacency file that contains 0, it was hanging. I checked the parmetis.c code, and numflag is set to 0 (c-style). 'graphchk' would not pass a vertex id being 0.
I tried without 0 vertex, and parmetis, metis, and graphchk all works. However, the generated xxx.part file is in c-style including partition id 0.
I am wondering whether I can use 0 for vtxdist and xadj.

RE: The graphchk is designed to

The graphchk is designed to check the input files, whose numbering starts from 1.

If numflag==0, then the first vertex is numbered 0. If the program hangs when you have a vertex numbered 0, then something else must be wrong.

george

RE: I regenerated the graph such

I regenerated the graph such that it does not contain 0. Thus, I am using numflag=1 for parmetis.
My graph file passes the metis/bin/graphchk as shown below
**********************************************************************
METIS 5.0 Copyright 1998-11, Regents of the University of Minnesota
(HEAD: , Built on: Sep 13 2012, 12:25:03)
size of idx_t: 32bits, real_t: 32bits, idx_t *: 64bits

Graph Information ---------------------------------------------------
Name: graph/NC.graph.txt, #Vertices: 10164175, #Edges: 30310251

Checking Graph... ---------------------------------------------------
The format of the graph is correct!

**********************************************************************
The first line of graph file is 10164175 30310251 011 3 1
I can run this metis on this file and it generates partition file successfully.
However, when I run parmetis, I have the error as below.
I tried a smaller graph (of 1/10 size), and parmetis worked in that case.

I am using 8 nodes and 12 core per node (so total 96 processors), and each node has 48 GB memory
inside the parmetis.c I set ubvec to numflag to 1, wgtflag to 3, and set ubvec to {1.03, 1.10, 1.15}
In addition, I launch parmetis as "mpirun -n 96 parmetis graph.txt 1 96 0 0 3 0"
Accoring to the error message the memory size requested is obvisouly wrong (extremely large).

Since I plan to use a lot larger input data, it is crucial for me to make parmetis working for me.
Thank you very much.

Current memory used: 11087908 bytes
Current memory used: 10999932 bytes
Maximum memory used: 10999932 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 5428841177896 bytes
Current memory used: 11056472 bytes
Current memory used: 11027684 bytes
Current memory used: 11061808 bytes
Current memory used: 11009576 bytes
Current memory used: 11076584 bytes
Current memory used: 11138480 bytes
Current memory used: 11061220 bytes
Current memory used: 11037208 bytes
Current memory used: 11040924 bytes
Current memory used: 10964408 bytes
Current memory used: 10986136 bytes
Current memory used: 11010768 bytes
Maximum memory used: 11056472 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 5566280173688 bytes
Maximum memory used: 11027684 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 5428841226928 bytes
Current memory used: 11056640 bytes
Maximum memory used: 11056640 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 6390913905512 bytes
Current memory used: 13954344 bytes
Maximum memory used: 13954344 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 6253473232096 bytes
Maximum memory used: 11061808 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 5439041782664 bytes
Current memory used: 11020980 bytes
Maximum memory used: 11020980 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 5978597029200 bytes
Maximum memory used: 11009576 bytes
Current memory used: 14143056 bytes
Maximum memory used: 11076584 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 5566280185312 bytes
Current memory used: 11065968 bytes
Maximum memory used: 11087908 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 5428841224640 bytes
Current memory used: 13820824 bytes
Current memory used: 11068712 bytes
Maximum memory used: 11138480 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 5566280177200 bytes
Current memory used: 11103336 bytes
Maximum memory used: 11103336 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 5703719123728 bytes
Current memory used: 11069880 bytes
Maximum memory used: 11061220 bytes
Current memory used: 11106260 bytes
Maximum memory used: 11037208 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 375287265569648 bytes
Current memory used: 11016948 bytes
Maximum memory used: 11016948 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 5428841225976 bytes
Current memory used: 11073548 bytes
Current memory used: 11073504 bytes
Maximum memory used: 11073504 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 5703719087280 bytes
Maximum memory used: 11040924 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 5428841216584 bytes
Maximum memory used: 10964408 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 5016524359592 bytes
Current memory used: 10987920 bytes
Maximum memory used: 10987920 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 5291402264408 bytes
Current memory used: 10971896 bytes
Maximum memory used: 10986136 bytes
Maximum memory used: 11010768 bytes
Current memory used: 10974308 bytes
Current memory used: 11082300 bytes
Current memory used: 13952132 bytes
Maximum memory used: 11082300 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 2473903730776 bytes
Maximum memory used: 14143056 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 6116034280112 bytes
Maximum memory used: 11065968 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 6116035971480 bytes
Maximum memory used: 13820824 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 5291400557736 bytes
Maximum memory used: 11068712 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 5566280180752 bytes
Maximum memory used: 11069880 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 6116035993536 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 5703719129568 bytes
Maximum memory used: 11106260 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 5841158095512 bytes
Maximum memory used: 11073548 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 5428841207688 bytes
Maximum memory used: 10971896 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 5439041767576 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 5841158069000 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 6390913887088 bytes
Maximum memory used: 10974308 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 5978597016824 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 5428841162040 bytes
Maximum memory used: 13952132 bytes
***Memory allocation failed for CommSetup: sendind. Requested size: 5016522652392 bytes
Warning! Rndv Receiver is expecting 50440 Bytes But, is receiving 43472 Bytes
Warning! Rndv Receiver is expecting 42048 Bytes But, is receiving 8576 Bytes
Warning! Rndv Receiver is expecting 50728 Bytes But, is receiving 24768 Bytes
Warning! Rndv Receiver is expecting 39176 Bytes But, is receiving 21464 Bytes
Warning! Rndv Receiver is expecting 84352 Bytes But, is receiving 31792 Bytes
Warning! Rndv Receiver is expecting 58408 Bytes But, is receiving 50440 Bytes
Warning! Rndv Receiver is expecting 131512 Bytes But, is receiving 4928 Bytes
Warning! Rndv Receiver is expecting 329352 Bytes But, is receiving 49432 Bytes
Warning! Rndv Receiver is expecting 22136 Bytes But, is receiving 13280 Bytes
Warning! Rndv Receiver is expecting 139696 Bytes But, is receiving 19440 Bytes
Warning! Rndv Receiver is expecting 51856 Bytes But, is receiving 22136 Bytes
Warning! Rndv Receiver is expecting 19864 Bytes But, is receiving 9032 Bytes
Warning! Rndv Receiver is expecting 26664 Bytes But, is receiving 21776 Bytes
Warning! Rndv Receiver is expecting 73936 Bytes But, is receiving 11792 Bytes
Warning! Rndv Receiver is expecting 19920 Bytes But, is receiving 15344 Bytes
Warning! Rndv Receiver is expecting 49776 Bytes But, is receiving 14240 Bytes
Warning! Rndv Receiver is expecting 51632 Bytes But, is receiving 19920 Bytes
Warning! Rndv Receiver is expecting 100360 Bytes But, is receiving 12632 Bytes
Warning! Rndv Receiver is expecting 113320 Bytes But, is receiving 50920 Bytes
Warning! Rndv Receiver is expecting 25464 Bytes But, is receiving 7816 Bytes
Warning! Rndv Receiver is expecting 435032 Bytes But, is receiving 51040 Bytes
Warning! Rndv Receiver is expecting 62984 Bytes But, is receiving 2536 Bytes
Warning! Rndv Receiver is expecting 21664 Bytes But, is receiving 20544 Bytes
Warning! Rndv Receiver is expecting 30944 Bytes But, is receiving 29928 Bytes
Warning! Rndv Receiver is expecting 37312 Bytes But, is receiving 31048 Bytes
Warning! Rndv Receiver is expecting 31112 Bytes But, is receiving 14976 Bytes
Warning! Rndv Receiver is expecting 86680 Bytes But, is receiving 31808 Bytes
Warning! Rndv Receiver is expecting 71168 Bytes But, is receiving 18536 Bytes
Warning! Rndv Receiver is expecting 161080 Bytes But, is receiving 26544 Bytes
Warning! Rndv Receiver is expecting 19264 Bytes But, is receiving 2864 Bytes
Warning! Rndv Receiver is expecting 18200 Bytes But, is receiving 12032 Bytes
Warning! Rndv Receiver is expecting 113272 Bytes But, is receiving 59184 Bytes
Warning! Rndv Receiver is expecting 29928 Bytes But, is receiving 19264 Bytes
Warning! Rndv Receiver is expecting 77224 Bytes But, is receiving 2480 Bytes
Warning! Rndv Receiver is expecting 18536 Bytes But, is receiving 4048 Bytes
Warning! Rndv Receiver is expecting 30624 Bytes But, is receiving 1472 Bytes
Warning! Rndv Receiver is expecting 40512 Bytes But, is receiving 9656 Bytes
Warning! Rndv Receiver is expecting 36880 Bytes But, is receiving 10992 Bytes
Warning! Rndv Receiver is expecting 22760 Bytes But, is receiving 4368 Bytes
Warning! Rndv Receiver is expecting 23032 Bytes But, is receiving 21664 Bytes
Warning! Rndv Receiver is expecting 66816 Bytes But, is receiving 66184 Bytes
Warning! Rndv Receiver is expecting 68680 Bytes But, is receiving 40512 Bytes
Warning! Rndv Receiver is expecting 30992 Bytes But, is receiving 6160 Bytes
Warning! Rndv Receiver is expecting 47456 Bytes But, is receiving 8 Bytes
Warning! Rndv Receiver is expecting 140224 Bytes But, is receiving 47456 Bytes
Warning! Rndv Receiver is expecting 20256 Bytes But, is receiving 4056 Bytes
Warning! Rndv Receiver is expecting 382336 Bytes But, is receiving 101104 Bytes
mpiexec: Warning: tasks 0-12,14,16-18,20,22-26,28,33,38,40,42,44,46,49-50,52-54,56-58,62-64,66-67,70-77,79,82-83,85,89,92-95 died with signal 15 (Terminated).
mpiexec: Warning: tasks 13,15,19,21,27,29,35-37,39,41,43,45,47-48,51,55,59-61,65,68-69,78,80-81,84,86-88,90-91 died with signal 6 (Aborted).
mpiexec: Warning: tasks 30-32,34 died with signal 11 (Segmentation fault).

RE: Are you using the parmetis

Are you using the parmetis binary that comes along with ParMetis? This code is not documented and is just for my own testing. [The format of the input file is not 100% compatible with that used by the latest version of Metis].