MPIEvents.texi 611 Bytes
Newer Older
Stefan Hoeche's avatar
Stefan Hoeche committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
@node MPIEvents
@subsection Generate events with MPI using scripts

This example shows how to generate events with Sherpa
using a Python wrapper script and MPI. For each event the weight,
the number of trials and the particle information is send to the
MPI master node and written into a single gzip'ed output file.
Note that you need the @uref{http://mpi4py.scipy.org,,mpi4py}
module to run this Example. Sherpa must be configured and 
installed using @option{--enable-mpi}, see @ref{MPI parallelization}.

@example
@smallformat
@verbatiminclude Examples/API/MPIEvents/test.py.in
@end smallformat
@end example