runMPI - Job startup
Log output from all MPI processes is written to
$TWD/tr_<runid>_mpi/tr_<runid>_mpi.log. Process mpi-n pauses for 10n
seconds in settrn2, so that the log output is generally in process
order rather than interleaved.
- All processes
run settrn2 ; process 0 continues, setting up directories &
unpacking <runid>EXP_0.tgz, then waits for lock ( files )
@mpi-001 to n-1 to be created
- Processes
mpi-001 to n-1 start, in sequence. Each creates the
directory tree by copying $TWD/TSD to the run directory $TSD,
then waits for the last process lock ( @mpi-007 in the example )
- Once lock @mpi-007 has been created,
all processes
start running the MPI executable
- When the run
has completed, each process returns its status, & releases
its lock ( file renamed from .lock to .stat )
- Process
mpi-000 continues, runing poplt2 and cdfcnv to create the
netCDF output file, which is then copied back to $TWD
|