How to analyse performance using Oracle's SunStudio

There are a number of packages installed on the HPC to analyze performance of your code, for example Gnu's gprof. An easy package to use is Oracle's SunStudio. To use its profiling tools, you first have to compile your code with SunStudio's compilers. This article will only touch a small part of the suite, for more information please read this documentation. A seminar on performance analysis was given by Nick Forinash, which can be found here.

To get the compilers and profilers in your patch, you have to run:

source /usr/local/profile.d/sunstudio.csh if your shell is (t)csh
source /usr/local/profile.d/sunstudio.sh if your shell is bash

Compilers

The following compilers are part of the suite:

  • cc/c89/c99 - c compilers
  • CC - c++ compiler
  • f77/f90/f95 - fortran compilers

Profiling tools

The following tools are part of the suite:

  • collect
  • analyzer