Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a link from smpirun(1) to the online doc
[simgrid.git] / docs / manpages / smpirun.1
1 .TH smpirun 1
2 .SH NAME
3 smpirun \- Exectute MPI programs in the SimGrid simulator
4 .SH SYNOPSIS
5 smpirun [\fISMPI OPTIONS\fR]… \fB\-platform\fR <platform.xml> \fB\-hostfile\fR <hostfile> program [\fISIMULATION OPTIONS\fR] [\fIPROGRAM OPTIONS\fR]
6 .SH DESCRIPTION
7 smpirun car run MPI programs that were compiled with smpicc on top of
8 the simulator. Basically, it generates a deployment files from the
9 provided hostfile (if needed), and launches the simulation with the right
10 arguments. It is intended to be easy to use to regular MPI users.
11 .SH MANDATORY PARAMETERS
12 .TP
13 \fB\-platform\fR <platform.xml>
14 XML file describing the platform on which we want to deploy the program.
15 Please refer to the
16 .UR https://simgrid.org/doc/latest/Tutorial_MPI_Applications.html#describing-your-platform
17 online documentation.
18 .UE
19 .TP
20 \fB\-hostfile\fR, \fB\-machinefile\fR <hostfile>
21 Hostfile listing all the machines in use
22 .SH SMPI OPTIONS
23 The smpirun itself accepts some optional parameters, that are not to
24 be mixed with the configuration options described in the next section.
25
26 .TP
27 \fB\-help\fR
28 Print the usage and a summary of the available options.
29 .TP
30 \fB\-keep-temps\fR
31 Do not remove the generated files after execution.
32 .TP
33 \fB\-wrapper\fR <command>
34 Use command to run the program (e.g. "valgrind", "gdb --args", "rr record").
35 You usually want to use the "-foreground" option as well in order to have a TTY.
36 .TP
37 \fB\-foreground\fR
38 Run the child process in the foreground.
39 This gives the child process access to the TTY.
40 .TP
41 \fB\-map\fR
42 Display the machine on which each process rank is mapped.
43 .TP
44 \fB\-np\fR <numprocs>
45 Use that amount of processes. By default, there is the same number of processes as there are of hosts in the hostfile.
46 .TP
47 \fB\-no-privatize\fR
48 Disable the globals privatization, that is activated by default.
49 This should only be necessary if you use dynamic libraries, but you
50 should probably link statically instead of disabling this. Do not link
51 statically against SimGrid, only the others.
52 .TP
53 \fB\-trace\fR
54 Activate the trace mechanism if available (equivalent to \fB--cfg\fR=\fItracing\fR:\fIyes\fR \fB--cfg\fR=\fItracing/smpi\fR:\fIyes\fR)
55 .TP
56 \fB\-trace-ti\fR
57 Activate time independent tracing.
58 .TP
59 \fB\-trace-comment\fR <comment>
60 Put a comment on the top of the trace file.
61 .TP
62 \fB\-trace-comment-file\fR <file>
63 Insert the content of the file at the head of the trace file as a comment.
64 .TP
65 \fB\-trace-grouped\fR
66 Group MPI processes by location.
67 .TP
68 \fB\-trace-resource\fR
69 Trace resource utilization.
70 .TP
71 \fB\-trace-file\fR <tracefile>
72 Name of the tracefile
73
74 .SH SIMULATION OPTIONS
75 You can change many simulation parameter on the command line by passing
76 \fB--cfg\fR=\fIparameter\fR:\fIvalue\fR after the program name. 
77 A full list of existing parameters and their meaning can be found at
78 https://simgrid.org/doc/latest/Configuring_SimGrid.html
79
80 Here are some options commonly used with SMPI:
81 .TP
82 \fB--cfg=smpi/cpu-threshold:XXX\fR
83 Only simulate computation chunks that last more than XXX seconds.
84 .TP
85 \fB--cfg=smpi/simulate-computation:no\fR
86 Disable the simulation of all computation chunks (that are still executed on the host machine).
87
88 .SH AUTHORS
89 The SimGrid team (simgrid-devel@lists.gforge.inria.fr)
90 .SH COPYRIGHT AND LICENCE
91 Copyright (c) 2014-2019. The SimGrid Team. All rights reserved.
92
93 This program is free software; you may redistribute it and/or modify
94 it under the terms of GNU LGPL (v2.1) license. 
95 .SH SEE ALSO
96 .B smpicc\fR(1)
97 .B smpicxx\fR(1)
98 .B smpiff\fR(1)
99 .B smpif90\fR(1)