mirror of
https://github.com/OpenFOAM/ThirdParty-6.git
synced 2025-12-08 06:57:43 +00:00
Recent versions of scotch are rarely available in packaged form for ready installation on GNU/Linux distributions and so the sources are generally required.
181 lines
5.2 KiB
Groff
181 lines
5.2 KiB
Groff
." Text automatically generated by txt2man
|
||
.TH gmap 1 "August 03, 2010" "" "Scotch user's manual"
|
||
.SH NAME
|
||
\fBgmap, gpart \fP- compute static mappings and partitions sequentially
|
||
\fB
|
||
.SH SYNOPSIS
|
||
.nf
|
||
.fam C
|
||
\fBgmap\fP [\fIoptions\fP] [\fIgfile\fP] [\fItfile\fP] [\fImfile\fP] [\fIlfile\fP]
|
||
.PP
|
||
\fBgpart\fP [\fIoptions\fP] [\fInparts\fP] [\fIgfile\fP] [\fImfile\fP] [\fIlfile\fP]
|
||
.fam T
|
||
.fi
|
||
.SH DESCRIPTION
|
||
The \fBgmap\fP program computes, in a sequential way, a static mapping of a
|
||
source graph onto a target graph.
|
||
.PP
|
||
The \fBgpart\fP program is a shortcut of \fBgmap\fP for computing unweighted
|
||
partitions of a source graph.
|
||
.PP
|
||
Source graph file \fIgfile\fP can only be a centralized graph file. For \fBgmap\fP,
|
||
the target architecture file \fItfile\fP describes either algorithmically-coded
|
||
topologies such as meshes and hypercubes, or decomposition-defined
|
||
architectures created by means of the \fBamk_grf\fP(1) program. The resulting
|
||
mapping is stored in file \fImfile\fP. Eventual logging information (such
|
||
as the one produced by option \fB-v\fP) is sent to file \fIlfile\fP. When file
|
||
names are not specified, data is read from standard input and
|
||
written to standard output. Standard streams can also be explicitely
|
||
represented by a dash '-'.
|
||
.PP
|
||
When the proper libraries have been included at compile time, \fBgmap\fP
|
||
and \fBgpart\fP can directly handle compressed graphs, both as input and
|
||
output. A stream is treated as compressed whenever its name is
|
||
postfixed with a compressed file extension, such as
|
||
in 'brol.grf.bz2' or '-.gz'. The compression formats which can be
|
||
supported are the bzip2 format ('.bz2'), the gzip format ('.gz'),
|
||
and the lzma format ('.lzma', on input only).
|
||
.SH OPTIONS
|
||
.TP
|
||
.B
|
||
\fB-c\fPopt
|
||
Choose default mapping strategy according to one or
|
||
several \fIoptions\fP among:
|
||
.RS
|
||
.TP
|
||
.B
|
||
b
|
||
enforce load balance as much as possible.
|
||
.TP
|
||
.B
|
||
q
|
||
privilege quality over speed (default).
|
||
.TP
|
||
.B
|
||
s
|
||
privilege speed over quality.
|
||
.TP
|
||
.B
|
||
t
|
||
enforce safety.
|
||
.RE
|
||
.TP
|
||
.B
|
||
\fB-h\fP
|
||
Display some help.
|
||
.TP
|
||
.B
|
||
\fB-m\fPstrat
|
||
Use sequential mapping strategy strat (see
|
||
Scotch user's manual for more information).
|
||
.TP
|
||
.B
|
||
\fB-V\fP
|
||
Display program version and copyright.
|
||
.TP
|
||
.B
|
||
\fB-v\fPverb
|
||
Set verbose mode to verb. It is a set of one of more
|
||
characters which can be:
|
||
.RS
|
||
.TP
|
||
.B
|
||
m
|
||
mapping information.
|
||
.TP
|
||
.B
|
||
s
|
||
strategy information.
|
||
.TP
|
||
.B
|
||
t
|
||
timing information.
|
||
.SH TARGET ARCHITECTURES
|
||
Target architectures represent graphs onto which source graphs are
|
||
mapped. In order to speed-up the obtainment of target architecture
|
||
topological properties during the computation of mappings, some
|
||
classical topologies are algorithmically coded into the mapper
|
||
itself. These topologies are consequently simply defined by their
|
||
code name, followed by their dimensional parameters:
|
||
.TP
|
||
.B
|
||
cmplt \fIdim\fP
|
||
unweighted complete graph of size \fIdim\fP.
|
||
.TP
|
||
.B
|
||
cmpltw \fIdim\fP \fIw0\fP \fIw1\fP \.\.\. \fIwdim-1\fP
|
||
weighted complete graph of size
|
||
size and of respective loads
|
||
\fIw0\fP, \fIw1\fP, \.\.\., \fIwdim-1\fP.
|
||
.TP
|
||
.B
|
||
hcub \fIdim\fP
|
||
hypercube of dimension \fIdim\fP.
|
||
.TP
|
||
.B
|
||
leaf \fIhgt\fP \fIn0\fP \fIw0\fP \.\.\. \fInhgt-1\fP \fIwhgt-1\fP
|
||
tree-leaf graph of height \fIhgt\fP
|
||
with (\fIn0\fP times \fIn1\fP times \.\.\. \fInhgt-1\fP)
|
||
vertices, with inter-cluster link
|
||
weights of \fIw0\fP, \fIw1\fP, \.\.\. \fIwhgt-1\fP.
|
||
.TP
|
||
.B
|
||
mesh2D \fIdimX\fP \fIdimY\fP
|
||
2D mesh of \fIdimX\fP times \fIdimY\fP nodes.
|
||
.TP
|
||
.B
|
||
mesh3D \fIdimX\fP \fIdimY\fP \fIdimZ\fP
|
||
23 mesh of \fIdimX\fP times \fIdimY\fP times \fIdimZ\fP nodes.
|
||
.TP
|
||
.B
|
||
torus2D \fIdimX\fP \fIdimY\fP
|
||
2D torus of \fIdimX\fP times \fIdimY\fP nodes.
|
||
.TP
|
||
.B
|
||
torus3D \fIdimX\fP \fIdimY\fP \fIdimZ\fP
|
||
3D torus of \fIdimX\fP times \fIdimY\fP times \fIdimZ\fP nodes.
|
||
.PP
|
||
Other target topologies can be created from their source graph
|
||
description by using the \fBamk_grf\fP(1) command. In this case, the
|
||
target description will begin with the code name \fBdeco\fP.
|
||
.SH MAPPINGS
|
||
Mappings are represented by as many lines as there are vertices in
|
||
the source graph. Each of these lines is made of two figures: the
|
||
number of the vertex (or its label if source graph vertices are
|
||
labeled) and the index of the target vertex to which it has been
|
||
assigned. Target vertex indices range from 0 to the number of
|
||
vertices in the target architecture (that is, the number of parts)
|
||
minus one.
|
||
.PP
|
||
This block of lines is always preceded by the number of such
|
||
lines. In most cases, since full mappings are requested, the number
|
||
of lines is equal to the number of vertices in the source graph.
|
||
.SH EXAMPLES
|
||
Run \fBgpart\fP to compute a partition into 7 parts of graph 'brol.grf' and
|
||
save the resulting ordering to file 'brol.map'.
|
||
.PP
|
||
.nf
|
||
.fam C
|
||
$ gpart 7 brol.grf brol.map
|
||
|
||
.fam T
|
||
.fi
|
||
Run \fBgmap\fP to compute a partition, into 3 parts of respective weights
|
||
1, 2 and 4, of graph 'brol.grf' and save the resulting mapping to
|
||
file 'brol.map'. The dash '-' standard file name is used so that the
|
||
target architecture description is read from the standard input,
|
||
through the pipe, as provided by the 'echo' shell command.
|
||
.PP
|
||
.nf
|
||
.fam C
|
||
$ echo "cmpltw 3 1 2 4" | gmap brol.grf - brol.map
|
||
|
||
.fam T
|
||
.fi
|
||
.SH SEE ALSO
|
||
\fBamk_grf\fP(1), \fBacpl\fP(1), \fBgmtst\fP(1), \fBdgmap\fP(1).
|
||
.PP
|
||
Scotch user's manual.
|
||
.SH AUTHOR
|
||
Francois Pellegrini <francois.pellegrini@labri.fr>
|