Profiling your binary
Profiling a binary is a way to dynamically analyze a program at runtime in order to identify the parts where its performance can be boosted/improved.
On our HPC clusters, we support the following tools:
- gprof gprof
- Performance Application Programming Interface PAPI
- Intel vtune amplifier xe Vtune Amplifier XE
You can find a good quick tutorial for gprof at gprof quick tutorial
PAPI provides you an interface that you can use to instrument and profile your code. PAPI provides ways to get performance counter hardware, which is found in our HPC Clusters. Please have a look at PAPI doc for a documentation about PAPI.
Intel Vtune amplifier xe
Vtune amplifier is a tool that helps you to optimize your program by doing a profiling analysis. It supports command line and graphical user interface (GUI), which requires X11-forwarding to be configured. Tutorials on how you can use it are available in the Intel website vtune
To use Vtune, you need to start an interactive job running on a compute node in order to run the program that you would like to profile.
- CLI: on the compute node of the interactive job
[leonhard@e1001 ~]$ amplxe-cl <-action> program
- GUI: on a shell on any login node with X11-forwarding:
[leonhard@euler05 ~]$ amplxe-gui
and the GUI of intel Vtune will start.