smpirun(1)

NAME
smpirun - Exectute MPI programs in the SimGrid simulator

SYNOPSIS
smpirun [SMPI OPTIONS]… -platform <platform.xml> -hostfile <hostfile> program [SIMULATION OPTIONS] [PROGRAM OPTIONS]

DESCRIPTION
smpirun car run MPI programs that were compiled with smpicc on top of the simulator. Basically, it generates a deployment files 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.

MANDATORY PARAMETERS

-platform <platform.xml>
    XML file describing the platform on which we want to deploy the program

-hostfile, -machinefile <hostfile>
    Hostfile listing all the machines in use

SMPI OPTIONS
The smpirun itself accepts some optional parameters, that are not to be mixed with the configuration options described in the next section.

-help
    Print the usage and a résumé of the available options

-keep-temps
    Do not remove the generated files after execution.

-wrapper <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.

-foreground
    Run the child process in the foreground. This gives the child process access to the TTY.

-map
    Display the machine on which each process rank is mapped.

-np <numprocs>
    Use that amount of processes. By default, there is the same number of processes as there are of hosts in the hostfile.

-no-privatize
    Disable the globals privatization, 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 the others.

-trace
    Activate the trace mechanism if available (equivalent to --cfg=tracing:yes --cfg=tracing/smpi:yes)

-trace-ti
    Activate time independent tracing.

-trace-comment <comment>
    Put a comment on the top of the trace file.

-trace-comment-file <file>
    Insert the content of the file at the head of the trace file as a comment.

-trace-grouped
    Group MPI processes by location.

-trace-resource
    Trace resource utilization.

-trace-file <tracefile>
    Name of the tracefile

SIMULATION OPTIONS
You can change many simulation parameter on the command line by passing --cfg=parameter:value after the program name. A full list of existing parameters and their meaning can be found at http://simgrid.gforge.inria.fr/simgrid/latest/doc/options.html Here are some options commonly used with SMPI:

--cfg=smpi/cpu-threshold:XXX
    Only simulate computation chunks that last more than XXX seconds.

--cfg=smpi/simulate-computation:no
    Disable the simulation of all computation chunks (that are still executed on the host machine).

AUTHORS
The SimGrid team (simgrid-devel@lists.gforge.inria.fr)

COPYRIGHT AND LICENCE
Copyright (c) 2014-2016. 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.

SEE ALSO
smpicc(1) smpicxx(1) smpiff(1) smpif90(1)