Hp XC System 3.x Software Uživatelský manuál Strana 60

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 118
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 59
Example 7-1 The vtjacobic Example Program
For the purposes of this example, the examples directory under /opt/IntelTrace/ITC is copied to the
user's home directory and renamed to examples_directory.
The GNU makefile 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
FLDFLAGS = -static-libcxa -L$(VT_ROOT)/lib $(TLIB) -lvtunwind \
-ldwarf -lnsl -lm -lelf -lpthread
In the cases where Intel compilers are used, add the -static-libcxa option to the link line. Otherwise
the following type of error will occur at run-time:
$ mpirun.mpich -np 2 ~/examples_directory/vtjacobic
~/examples_directory/vtjacobic:
error while loading shared libraries:
libcprts.so.6: cannot open shared object file:
No such file or directory
MPI Application rank 0 exited before MPI_Init() with status 127
mpirun exits with status: 127
In The vtjacobic Example Program, ~/examples_directory/vtjacobic represents the file specification
for the vtjacobic example program.
For more information, see the following Web site:
http://support.intel.com/support/performancetools/c/linux/sb/CS-010097.htm
Running a Program – Intel Trace Collector and HP-MPI
Assuming that you have built your program using the -static-libcxa option, as discussed in "Building
a Program — Intel Trace Collector and HP-MPI" , you can launch the program with the mpirun.mpich
command, as shown in the following example.
Example 7-2 shows how to run the vtjacobic example program discussed in "Building a Program —
Intel Trace Collector and HP-MPI" .
Example 7-2 C Example – Running the vtjacobic Example Program
$ mpirun.mpich -np 2 ~/examples_directory/vtjacobic
~/examples_directory/vtjacobic:100 iterations
in 0.228252 secs (28.712103 MFlops), m=130 n=130 np=2 [0]
Intel Trace Collector INFO: Writing tracefile vtjacobic.stf
in ~/examples_directory/vtjacobic
mpirun exits with status: 0
In Example 7-2, ~/examples_directory/vtjacobic represents the file specification for the vtjacobic
example program.
Visualizing Data – Intel Trace Analyzer and HP-MPI
The Intel Trace Analyzer is used in a straightforward manner on an HP XC system, as described in its standard
documentation. For more information, refer to the
Intel Trace Analyzer Users Guide
. This document is located
on the HP XC system at the following location:
60 Tuning Applications
Zobrazit stránku 59
1 2 ... 55 56 57 58 59 60 61 62 63 64 65 ... 117 118

Komentáře k této Příručce

Žádné komentáře