Debugging and profiling: Difference between revisions

From Alliance Doc
Jump to navigation Jump to search
(remove access to deleted page)
No edit summary
Line 27: Line 27:
Please see [[Gprof | Gprof page]]
Please see [[Gprof | Gprof page]]


== PGI Profiler (pgprof) == <!--T:11-->
== Scalasca Profiler == <!--T:11-->
 
Scalasca is an open-source, GUI-driven parallel profiling tool set. It is currently available for '''gcc 9.3.0''' and '''OpenMPI 4.0.3''', with AVX2 or AVX512 architecture. Its environment can be loaded with:
 
<code>module load StdEnv/2020 gcc/9.3.0 openmpi/4.0.3 scalasca</code>
 
The current version is '''2.5'''. More information can be found in the 2.x user guide, which contains workflow examples [https://apps.fz-juelich.de/scalasca/releases/scalasca/2.5/docs/manual/ here].
 
== PGI Profiler (pgprof) == <!--T:12-->
Please see [[PGPROF | Pgprof page]]
Please see [[PGPROF | Pgprof page]]


== Nvidia command-line profiler (nvprof) == <!--T:12-->
== Nvidia command-line profiler (nvprof) == <!--T:13-->
Please see [[Nvprof | nvprof page]]
Please see [[Nvprof | nvprof page]]


== Nvidia Visual Profiler (nvvp) == <!--T:13-->
== Nvidia Visual Profiler (nvvp) == <!--T:14-->


==Valgrind== <!--T:14-->
==Valgrind== <!--T:15-->


<!--T:15-->
<!--T:15-->

Revision as of 18:19, 17 May 2023

Other languages:

An important step in the software development process, particularly for compiled languages like Fortran and C/C++, concerns the use of a program called a debugger to detect and identify the origin of runtime errors (e.g. memory leaks, floating point exceptions and so forth) so that they can be eliminated. Once the program's correctness is assured, a further step is profiling the software. This involves the use of another software tool, a profiler, determine what percentage of the total execution time each section of the source code is responsible for when run with a representative test case. A profiler can give information like how many times a particular function is called, which other functions are calling it and how many milli-seconds of time each invocation of this function costs on average.

Debugging and profiling tools

The Compute Canada national clusters offer a variety of debugging and profiling tools, both command line and those with a graphical user interface, whose use requires an X11 connection. Note that debugging sessions should be conducted using an interactive job and not run on the login node.

GNU Debugger (gdb)

Please see GDB page

PGI Debugger (pgdb)

See Pgdbg

ARM Debugger (ddt)

Please see the ARM software page.

GNU Profiler (gprof)

Please see Gprof page

Scalasca Profiler

Scalasca is an open-source, GUI-driven parallel profiling tool set. It is currently available for gcc 9.3.0 and OpenMPI 4.0.3, with AVX2 or AVX512 architecture. Its environment can be loaded with:

module load StdEnv/2020 gcc/9.3.0 openmpi/4.0.3 scalasca

The current version is 2.5. More information can be found in the 2.x user guide, which contains workflow examples here.

PGI Profiler (pgprof)

Please see Pgprof page

Nvidia command-line profiler (nvprof)

Please see nvprof page

Nvidia Visual Profiler (nvvp)

Valgrind

Please see Valgrind page

External references