Table of Contents
|
|
$ . ~legion/setup.sh
or
$ source ~legion/setup.csh
legion_run_multi [-v] {-n <number of processors>}
[-s <schedule file name>] {-f <specification file name>}
<program class name> [<arg1> <arg2> ... <argn>]You must have already registered the program name and created the specification file. The specification file might look something like this:
in in.dat in.dat.* constant const.dat out out.dat
The in keyword identifies the line as a description of the input files. The in.dat string is the file name that the serial program expects for its input file. The final string, in.dat.*, is a pattern that the legion_run_multi will use to match all of the different input files in the current directory that will be individually fed to different runs of the serial program. The keyword constant names a single input file (const.dat)that is fed to each run.
The keyword out indicates the output file specification. The out.dat string is the name of the output file from the serial program. If in.dat.123 is an input file, for example, the command will direct the output to out.dat.123. You can use the keyword console to denote a set of files that will receive stdout from each serial run (i.e., you will end up with the same number of files as serial runs).
console console.dat
If you do not use the console keyword, stdout will be sent to your Legion tty object (if you have not yet created a tty object, see the tutorial).
For example, if you use following specification file:
in input input.* constant constant.dat out output output.* console console
input.1 input.2 constant.dat
output.1 output.2 console.1 console.2
More information about legion_run_multi is available here or in the man page. The Basic User manual has much more information on running applications in Legion, starting in section 8.0.
Other relevant on-line documents:
Last modified: Wed Jul 14 14:16:47 1999
[an error occurred while processing this directive]