HP XC System Software Release Notes for Version 3.0

8 Programming and User Environment Notes
This chapter contains information that applies to the programming and user environment.
8.1 Notes About HP MPI and Modulefiles
If the HP Message Passing Interface (MPI) is being used, it is important to make sure the mpi**
compiler scripts use the intended compiler, for example, by setting the MPI_CC or MPI_F90
environment variables (or both). Failure to do so may cause the compiler scripts to discover a
compiler that is not the intended compiler, and thus introduce an unintended inconsistency.
For more information, see the MPI User's Guide, which is located on the HP XC documentation
CD and at:
http://www.hp.com/go/mpi
8.2 Configuring the Intel Trace Collector and Analyzer with HP MPI on
HP XC
The Intel Trace Collector was formely known as VampirTrace. The Intel Trace Analyzer was
formely known as Vampir.
8.2.1 Installation Notes
The following are installation-related notes:
Installation kits:
ITC-IA64-LIN-MPICH-PRODUCT.4.0.2.1.tar.gz
ITA-IA64-LIN-AS21-PRODUCT.4.0.2.1.tar.gz
Installation locations:
The Intel Trace Collector is installed in the /opt/IntelTrace/ITC directory.
The Intel Trace Analyzer is installed in the /opt/IntelTrace/ITA directory.
The license file is located in the /opt/IntelTrace/ directory so both tools can find
it.
8.2.2 HP MPI and the Intel Trace Collector (OTA)
The following are notes regarding building a program with OTA.
HP MPI is MPICH compatible if you use the following HP MPI MPICH scripts, which are located
in the /opt/mpi/bin directory:
mpicc is replaced by mpicc.mpich
mpif77 is replaced by mpif77.mpich
mpirun is replaced by mpirun.mpich
In summary: mpiXX becomes mpiXX.mpich
As an example, the examples directory under /opt/IntelTrace/ITC was copied to a home
directory and renamed to ITC_examples_xc6000. The GNU makefile makefile now looks
as follows:
CC = mpicc.mpich
F77 = mpif77.mpich
CLINKER = mpicc.mpich
FLINKER = mpif77.mpich
IFLAGS = -I$(VT_ROOT)/include
CFLAGS = -g
FFLAGS = -g
LIBS = -lvtunwind -ldwarf -lnsl -lm -lelf -lpthread
CLDFLAGS = -static-libcxa -L$(VT_ROOT)/lib $(TLIB) -lvtunwind -ldwarf
-lnsl -lm -lelf -lpthread
8.1 Notes About HP MPI and Modulefiles 47