Using DDT on NREL HPC systems
Allinea DDT is parallel debugger that can be used to debug C, C++ and F90 applications.
- To get an interactive session on Peregrine follow the steps in Running Matlab on Peregrine.
- Load the Allinea Forge module on Peregrine.
module load allinea/5.0
- Make sure that your application is compiled with the debug flag (-g)
- Open the Allinea Forge UI with :
- Configure the application and click the "Run" button, which will bring up the main debugging window paused at the MPI_Init statement. From there you can debug your code from the GUI.
- To use the DDT remote client follow the steps on Allinea MAP on NREL HPC Systems.
Running DDT from Command Line
DDT can also be used to debug an application from the command line without the GUI.
ddt --offline <report_filenme>.html -n <#procs> <application>
An html file is generated which can be viewed in a browser.
Creating a session file to use with DDT in offline mode:
Session files can be created from the command line, you can set breakpoints, watchpoint, memory debugging levels etc.The session file can also be created from the GUI - You wouldn't have to remember line numbers for codes in the file.
Some useful features of the debugger:
- breakpoints and watch points
- Array View
- Version Control Information
- Evaluate tab
- Build and configure:
- Memory Debugging
- Overall Memory Stats
- Current Memory Usage
Allinea doesn't automatically save your files to the current directory, make sure you select the correct location for your session files and profiling results