This command was renamed from escript (used in previous releases) to avoid clashing with an unrelated program installed by default on
some systems.
Most 3.1 releases
of esys.escript allow either run-escript or escript to be used but the latter name will be removed in future releases:
escript myscript.pyas already shown in section 1.2
. In some cases
it can be useful to work interactively e.g. when debugging a script, with the command
run-escript -i myscript.pyThis will execute myscript.py and when it completes (or an error occurs), a python prompt will be provided. To leave the prompt press Control-d.
To start run-escript using four threads (eg. if you use a multi-core processor) you can use
run-escript -t 4 myscript.pyThis will require escript to be compiled for OpenMP [27].
To start run-escript using MPI [23] with
processes you use
run-escript -p 8 myscript.pyIf the processors which are used are multi-core processors or multi-processor shared memory architectures you can use threading in addition to MPI. For instance to run
run-escript -p 8 -t 4 myscript.pyIn the case of a super computer or a cluster, you may wish to distribute the workload over a number of nodes
.
For example, to use run-escript -n 8 -p 4 myscript.pySince threading has some performance advantages over processes, you may specify a number of threads as well.
run-escript -n 8 -p 4 -t 2 myscript.pyThis runs the script on