This list is a summary of the key performance tips found in this document. They are organized under the following categories:
Compilation and Linking
Compilation and linking are discussed in Chapter 7.
- Use Sun ONE Studio 7 Compiler Collection compilers for best performance.
See Compiler Version.
- Use the mpf77, mpf90, mpcc, and mpCC utilities where possible. Link with
-lmpi. For programs that use S3L, link with -ls3l.
% mpf90 -fast -g a.f -lmpi
% mpcc -fast -g a.c -ls3l -lmopt
See The mp* Utilities.
See The -fast Switch.
- As appropriate, add the following -xarch setting after -fast:
|
32-bit binary
|
64-bit binary
|
UltraSPARC II
(will also run on UltraSPARC III)
|
-xarch=v8plusa
|
-xarch=v9a
|
UltraSPARC III
(will not run on UltraSPARC II)
|
-xarch=v8plusb
|
-xarch=v9b
|
See The -xarch Switch.
- Compile with -xalias=actual due to Fortran binding issues in the MPI standard. See The -xalias Switch.
- Compile and link with -g.
See The -g Switch.
- Link with -lopt for C programs.
- Compile and link with -xvector if math library intrinsics (logarithms, exponentials, or trigonometric functions) appear inside long loops.
- Compile with -xprefetch selectively.
- Compile with -xrestrict and -xalias_level, as appropriate, for C programs.
- Compile with -xsfpconst, as appropriate, for C programs.
- Compile with -stackvar, as appropriate, for Fortran programs.
See Other Useful Switches.
MPProf
- Before running your Sun MPI program, set
% setenv MPI_PROFILE 1
- After running your Sun MPI program, you will find a file of the form mpprof.index.rm.jid in your working directory. Type
% mpprof mpprof.index.rm.jid
- To archive profiling results, use
% mpprof -r -g archive_directory mpprof.index.rm.jid
% mpprof -r mpprof.index.rm.jid
Analyzer Profiling
Use of the Performance Analyzer with Sun MPI programs is discussed in Chapter 7.
- Set your path to include the most recent compiler software, usually /opt/SUNWspro/bin
- Basic usage to collect performance data and analyze results:
% mprun -np 16 collect a.out 3 5 341
% analyzer test.*.er
Sun HPC ClusterTools 5 Software Performance Guide
| 817-0090-10
|
|
Copyright © 2003, Sun Microsystems, Inc. All rights reserved.