HP-MPI Version 2.2 for HP-UX Release Note

HP-MPI V2.2 for HP-UX Release Note
What’s in This Version
16
c The bytes of shared memory for other generic use, such as
MPI_Alloc_mem() call. The default is 87.5% of the total memory.
Running Applications
Set the following environment variables:
If you choose to move the HP-MPI installation directory from its default location in
/opt/mpi, set the MPI_ROOT environment variable to point to the location where HP-MPI
is installed.
•Add $MPI_ROOT/bin to PATH.
•Add $MPI_ROOT/share/man to MANPATH.
NOTE HP-MPI must be installed in the same directory on every execution host.
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 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 on all hosts from 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 remsh 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/ssh 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