HP-MPI Version 2.2 for Linux Release Note

HP-MPI V2.2 for Linux Release Note
What’s in This Version
23
•Add $MPI_ROOT/share/man to MANPATH.
NOTE HP-MPI must be installed in the same directory on every execution host.
2. The following is an example of basic compilation and run steps to execute hello_world.c
on a cluster with 4-way parallelism given the ability to rsh/remsh/ssh between hosts. To
build and run hello_world.c on a cluster using an appfile:
Change to a writable directory that is visible from all hosts on which the job will run.
Compile the hello_world executable file:
% $MPI_ROOT/bin/mpicc -o hello_world $MPI_ROOT/help/hello_world.c
Create a file "appfile" as:
-h n01 -np 2 /path/to/hello_world
-h n02 -np 2 /path/to/hello_world
Run the hello_world executable file:
% $MPI_ROOT/bin/mpirun -f appfile
By default, mpirun will ssh to the remote machines n01 and n02. If desired, the
environment variable MPI_REMSH can be used to specify a different command, such as
/usr/bin/rsh or "ssh -x".
•Analyze hello_world output.
HP-MPI prints the output from running the hello_world executable in
non-deterministic order. The following is an example of the output:
Hello world!I’m 1 of 4 on n01
Hello world!I’m 3 of 4 on n02
Hello world!I’m 0 of 4 on n01
Hello world!I’m 2 of 4 on n02
3. The following is an example using prun|srun with mpirun:
% $MPI_ROOT/bin/mpirun [mpirun options] [-prun|-srun] [prun|srun options]
This method runs with no restrictions on MPI-2 functionality. Some features like mpirun
-stdio processing are still unavailable.
The -np option is not allowed with -prun or -srun. The following options are allowed
with -prun and -srun:
% $MPI_ROOT/bin/mpirun [-help] [-version] [-jv] [-i <spec>]
[-universe_size=#] [-sp <paths>] [-T] [-prot] [-spawn] [-tv] [-1sided] [-e
var[=val]] [-prun|-srun] <prun|srun options> <program> [<args>]