File: smpirun.1

package info (click to toggle)
simgrid 4.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 39,236 kB
  • sloc: cpp: 124,918; ansic: 66,744; python: 8,560; java: 6,773; fortran: 6,079; f90: 5,123; xml: 4,587; sh: 2,194; perl: 1,436; makefile: 111; lisp: 49; javascript: 7; sed: 6
file content (120 lines) | stat: -rw-r--r-- 4,082 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
.TH smpirun 1
.SH NAME
smpirun \- Execute MPI programs in the SimGrid simulator
.SH SYNOPSIS
smpirun [\fISMPI OPTIONS\fR]… \fB\-platform\fR <platform.xml> \fB\-hostfile\fR <hostfile> program [\fISIMULATION OPTIONS\fR] [\fIPROGRAM OPTIONS\fR]
.SH DESCRIPTION
smpirun can run MPI programs that were compiled with smpicc on top of
the simulator. Basically, it generates a deployment file from the
provided hostfile (if needed), and launches the simulation with the right
arguments. It is intended to be easy to use to regular MPI users.
.SH MANDATORY PARAMETERS
.TP
\fB\-platform\fR <platform.xml>
XML file describing the platform on which we want to deploy the program.
Please refer to the
.UR https://simgrid.org/doc/latest/Tutorial_MPI_Applications.html#describing-your-platform
online documentation.
.UE
.TP
\fB\-hostfile\fR, \fB\-machinefile\fR <hostfile>
Hostfile listing all the machines in use
.SH SMPI OPTIONS
The smpirun itself accepts some optional parameters, that are not to
be mixed with the configuration options described in the next section.

.TP
\fB\-help\fR
Print the usage and a summary of the available options.
.TP
\fB\-keep-temps\fR
Do not remove the generated files after execution.
.TP
\fB\-wrapper\fR <command>
Use command to run the program (e.g. "valgrind", "gdb --args", "rr record").
You usually want to use the "-foreground" option as well in order to have a TTY.
.TP
\fB\-gdb\fR
Run within GDB (equivalent to -wrapper "gdb --args" -keep-temps).
.TP
\fB\-lldb\fR
Run within LLDB (equivalent to -wrapper "lldb --" -keep-temps).
.TP
\fB\-vgdb\fR
Run within Valgrind+GDB (equivalent to -wrapper "valgrind --vgdb=yes --vgdb-error=0" -keep-temps).
.TP
\fB\-foreground\fR
Run the child process in the foreground.
This gives the child process access to the TTY.
.TP
\fB\-map\fR
Display the machine on which each process rank is mapped.
.TP
\fB\-np\fR <numprocs>
Use that amount of processes. By default, there is the same number of processes as there are of hosts in the hostfile.
.TP
\fB\-no-privatize\fR
Disable the privatization of global variables, that is activated by default.
This should only be necessary if you use dynamic libraries, but you
should probably link statically instead of disabling this. Do not link
statically against SimGrid, only against the other libraries.
.TP
\fB\-trace\fR
Activate the trace mechanism if available (equivalent to \fB--cfg\fR=\fItracing\fR:\fIyes\fR \fB--cfg\fR=\fItracing/smpi\fR:\fIyes\fR)
.TP
\fB\-trace-ti\fR
Activate time independent tracing.
.TP
\fB\-trace-comment\fR <comment>
Put a comment on the top of the trace file.
.TP
\fB\-trace-comment-file\fR <file>
Insert the content of the file at the head of the trace file as a comment.
.TP
\fB\-trace-grouped\fR
Group MPI processes by location.
.TP
\fB\-trace-resource\fR
Trace resource utilization.
.TP
\fB\-trace-file\fR <tracefile>
Name of the tracefile
.TP
\fB\-replay\fR <tracefile>
Replay a trace instead of actually executing an application.
.TP
\fB\-quiet\fR
Reduce output verbosity. This is useful to make tests reproducible.
.TP
\fB\-version\fR
Displays the SimGrid version (human readable).
.TP
\fB\-git-version\fR
Displays the git hash of SimGrid.
.TP
.SH SIMULATION OPTIONS
You can change many simulation parameters on command line by passing
\fB--cfg\fR=\fIparameter\fR:\fIvalue\fR after the program name.
A full list of the existing parameters and their meaning can be found at
https://simgrid.org/doc/latest/Configuring_SimGrid.html

Here are some options commonly used with SMPI:
.TP
\fB--cfg=smpi/cpu-threshold:XXX\fR
Only simulate computation chunks that last more than XXX seconds.
.TP
\fB--cfg=smpi/simulate-computation:no\fR
Disable the simulation of all computation chunks (that are still executed on the host machine).

.SH AUTHORS
The SimGrid team
.SH COPYRIGHT AND LICENCE
Copyright (c) 2014-2025. The SimGrid Team. All rights reserved.

This program is free software; you may redistribute it and/or modify
it under the terms of GNU LGPL (v2.1) license.
.SH SEE ALSO
.B smpicc\fR(1)
.B smpicxx\fR(1)
.B smpiff\fR(1)
.B smpif90\fR(1)