Download Platform MPI User's Guide - Platform Cluster Manager
Transcript
Understanding Platform MPI For example: % $MPI_ROOT/bin/mpirun -f my_appfile runs using an appfile named my_appfile, that might have contents such as: -h hostA -np 2 /path/to/a.out -h hostB -np 2 /path/to/a.out which specify that two ranks are to run on host A and two on host B. prun execution • Use the -prun option for applications that run on the Quadrics Elan interconnect. When using the prun option, mpirun sets environment variables and invokes prun utilities. The -prun argument to mpirun specifies that the prun command is to be used for launching. All arguments following -prun are passed unmodified to the prun command. % $MPI_ROOT/bin/mpirun <mpirun options> -prun <prun options> The -np option is not allowed with prun. Some features like mpirun -stdio processing are unavailable. % $MPI_ROOT/bin/mpirun -prun -n 2 ./a.out launches a.out on two processors. % $MPI_ROOT/bin/mpirun -prot -prun -n 6 -N 6 ./a.out turns on the print protocol option (-prot is an mpirun option, and therefore is listed before -prun) and runs on 6 machines, one CPU per node. Platform MPI also provides implied prun mode. The implied prun mode allows the user to omit the -prun argument from the mpirun command line with the use of the environment variable MPI_USEPRUN. srun execution • Applications that run on HP XC clusters require the -srun option. start-up directly from srun is not supported. When using this option, mpirun sets environment variables and invokes srun utilities. The -srun argument to mpirun specifies that the srun command is to be used for launching. All arguments following -srun are passed unmodified to the srun command. % $MPI_ROOT/bin/mpirun <mpirun options> -srun <srun options> The -np option is not allowed with srun. Some features like mpirun -stdio processing are unavailable. % $MPI_ROOT/bin/mpirun -srun -n 2 ./a.out launches a.out on two processors. % $MPI_ROOT/bin/mpirun -prot -srun -n 6 -N 6 ./a.out turns on the print protocol option (-prot is an mpirun option, and therefore is listed before -srun) and runs on 6 machines, one CPU per node. 74 Platform MPI User's Guide