![](/images/new-backgrounds/1308340/308340105x1.webp)
6 Debugging Applications
This chapter describes how to debug serial and parallel applications in the HP XC development environment. In general, effective debugging of applications requires the applications to be compiled with debug symbols, typically the
This chapter addresses the following topics:
•Debugging Serial Applications (page 53)
•Debugging Parallel Applications (page 53)
Debugging Serial Applications
Debugging a serial application on an HP XC system is performed the same as debugging a serial application on a conventional Linux operating system. Refer to standard Linux documentation for information about debugging serial programs.
The following serial debuggers are available for use in the HP XC environment for local debugging:
•The gdb utility is provided with the standard Linux distribution; it performs
•The idb utility is generally available with the Intel compiler suite.
•The pgdbg utility is generally available with the PGI compilers.
For information about using these debuggers, refer to standard Linux documentation and the documentation that is available with the specific debugger that you are using.
Debugging Parallel Applications
The following parallel debuggers are recommended for use in the HP XC environment are TotalView and DDT.
TotalView
TotalView is a
http://www.etnus.com
Note
TotalView is not included with the HP XC software and is not supported. If you have any problems installing or using TotalView, contact Etnus, Inc.
DDT
DDT (Distributed Debugging Tool) is a parallel debugger from Streamline Computing. DDT is a comprehensive graphical debugger designed for debugging parallel code. It gives users a common interface for most compilers, languages and MPI distributions. For information about using DDT, refer to Streamline Computing documentation and the Streamline Computing Web site:
Debugging with TotalView
TotalView is a
You can purchase the TotalView debugger, from Etnus, Inc., for use on the HP XC cluster.
TotalView is not included with the HP XC software and technical support is not provided by HP. Contact Etnus, Inc. for any issues with TotalView.
Debugging Serial Applications 53