Download Legion 1.8 Basic User Manual

Transcript
June 28, 2001
10.2.6
Legion 1.8 Basic User Manual
Example
We have provided two sample native MPI programs, available in
$LEGION_HPC/src/Examples/MPI/. The first, nativempi.c, produces
exactly the same output as the mpitest_c.c program discussed in
section 10.1.6 on page 55. The second, mixedmpi.c, is the same code
but with Legion calls.
Please note two important adaptations that were made to mixedmpi.c
in order to access Legion files. There are two new include files:
#include “legion/Legion_libBasicFiles.h”
#include “legion/LegionNativeMPIUtils.h”
and a new function call:
LegionNativeMPI_init(&argc, &argv);
These lines must be added to a native MPI code that makes any kind
of Legion call.
10.2.7
Scheduling native MPI processes
Legion does not schedule native MPI processes. When a program is
run with legion_native_mpi_run, the local mpirun utility on the
destination host schedules the processes.
Basic User
page 69