GPMETIS(1)
โจ GPMETIS โจ
okay bestie, gather round, because this one is literally the graph-partitioning queen ๐ and she's about to slice your graph into however many parts you want. no cap. (also she lives in the User Commands section of the manual, iykyk ๐
)
๐ธ SYNOPSIS ๐ธ
gpmetis [options] graphfile nparts
๐ DESCRIPTION ๐
๐ซถ the required parameters (you literally cannot skip these)
graphfileโ this is where your graph is at. it stores the graph that's about to get partitioned. your main character file, fr.npartsโ the number of partitions you wanna split that graph into. that's it. that's the number.
โจ the optional parameters โจ (the fun part, the accessories to your fit)
-ptype=stringโ tells it which scheme to use for computing the k-way partitioning. possible values:rbโ Recursive bisectioningkwayโ Direct k-way partitioning [default]
-ctype=stringโ picks the scheme used to match the vertices of the graph during the coarsening. possible values:rmโ Random matchingshemโ Sorted heavy-edge matching [default]
-iptype=string[applies only when-ptype=rb] โ picks the scheme used to compute the initial partitioning of the graph. possible values:growโ Grow a bisection using a greedy scheme [default for ncon=1]randomโ Compute a bisection at random [default for ncon>1]
-objtype=string[applies only when-ptype=kway] โ says what objective the partitioning routines will optimize. possible values:cutโ Minimize the edgecut [default]volโ Minimize the total communication volume
-no2hopโ says the coarsening will not perform any 2-hop matchings when the standard matching fails to sufficiently contract the graph. lowkey a "no shortcuts today" flag.-contig[applies only when-ptype=kway] โ says the partitioning routines should try to produce partitions that are contiguous. โ ๏ธ heads up bestie: if the input graph is not connected, this option is ignored. so it's giving "only if it can".-minconn[applies only when-ptype=kway] โ says the partitioning routines should try to minimize the maximum degree of the subdomain graph, i.e. the graph in which each partition is a node, and edges connect subdomains with a shared interface. she's networking, literally.-tpwgts=filenameโ names the file that stores the target weights for each partition. by default, all partitions are assumed to be of the same size. (equal parts, no favoritism ๐)-ufactor=intโ sets the max allowed load imbalance among the partitions. a value of x means the allowed load imbalance is1+x/1000. Forptype=rb, the load imbalance is measured as the ratio of2*max(left,right)/(left+right), whereleftandrightare the sizes of the respective partitions at each bisection. Forptype=kway, the load imbalance is measured as the ratio ofmax_i(pwgts[i])/avgpwgt, wherepwgts[i]is the weight of the *i*th partition andavgpwgtis the sum of the total vertex weights divided by the number of partitions requested. Forptype=rb, the default value is1(i.e., load imbalance of1.001). Forptype=kway, the default value is30(i.e., load imbalance of1.03). math queen ๐งฎโจ-ubvec=stringโ applies only for multi-constraint partitioning, and specifies the per-constraint allowed load imbalance among partitions. the required parameter corresponds to a space separated set of floating point numbers, one for each of the constraints. for example, for three constraints, the string can be"1.02 1.2 1.35"indicating a desired maximum load imbalance of 2%, 20%, and 35%, respectively. the load imbalance is defined in a way similar toufactor. if supplied, this parameter takes priority overufactor. ๐ she overrides.-niter=intโ sets the number of iterations for the refinement algorithms at each stage of the uncoarsening process. default is10.-ncuts=intโ sets the number of different partitionings it will compute. the final partitioning is the one that achieves the best edgecut or communication volume. default is1.-nooutputโ says no partitioning file should be generated. stealth mode ๐ฅท-seed=intโ selects the seed of the random number generator.-dbglvl=intโ selects thedbglvl.-helpโ prints this message. (hey, that's us! ๐ซถ)
ngl, some of these flags only do anything when paired with the right -ptype. read the little brackets, bestie, they're there for a reason. ๐
and that's the whole vibe check, fr fr. ๐โจ
this page is gpmetis version 5.1.0.3, dated July 2025. slay, go partition something. ๐
๐๐ฆ
๐ฆ where this page comes from
- fedora 43: metis 5.1.0.3-10.fc43 ยท Apache-2.0 AND LGPL-2.0-or-later
- fedora 43: metis 5.1.0.3-10.fc43 ยท Apache-2.0 AND LGPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms