Download Sun HPC Software, Linux Edition 2.0, Deployment and User Guide

Transcript
70
Sun Microsystems, Inc.
Checking to see if MPI has been installed correctly
1. Verify that the ClusterTools toolkit was correctly installed.
a. On the head node, enter:
# rpm -qa clustertools*
clustertools_pathscale-8.1-sunhpc7
clustertools_intel-8.1-sunhpc7
clustertools_gcc-8.1-sunhpc8
clustertools_sunstudio-8.1-sunhpc8
clustertools_pgi-8.1-sunhpc7
b. Use the module command to see which CusterTools have been loaded by default
(usually gcc/8.1):
# module list
Currently Loaded Modulefiles:
1) clustertools_gcc/8.1
# which mpirun
/usr/mpi/gcc/clustertools-8.1/bin/mpirun
2. Use the mpirun command to test communication between the head node and a client
node. The mpirun command is used to launch an MPI job on a compute resource. This
quick test requires a provisioned compute node.
In the example below, a job is launched from hpc-x4600-2 (head node) to cl10-0
(compute node).The command /bin/date is executed on the compute host cl10-0 and
the result is returned.
hpc-x4600-2:~ # mpirun -host cl10-0 /bin/date
Thu May 21 19:16:52 EDT 2009
Expanding this example to run on multiple hosts:
hpc-x4600-2:~ # mpirun -host cl10-0,cl10-1,cl10-2 /bin/hostname
cl10-1
cl10-0
cl10-2
At this point, the MPI library has not yet been used to execute code. To do this requires building
and running an MPI test program. An example can be found in the section A basic MPI example.