The National Institute for Computational Sciences

How to use VTUNE

How to use VTUNE

Log in to Beacon with X forwarding enabled, and compression (optional) for a performance increase.

 $ ssh -XC username@beacon.nics.utk.edu 
Compile the source file with debug flags.
$ cd /lustre/medusa/userserv/vtune_example
$ icc -g -O2 hello_world.c
Launch an interactive job on a compute node for sampling
$ qsub -I -X -A UT-SUPPORT
Now perform the sampling
$ module load vtune
$ cd /lustre/medusa/userserv/vtune_example
$ amplxe-cl -collect hotspots -r=./Reports ./a.out
Below is the output :
$ amplxe-cl -collect hotspots -r=./Reports ./a.out

amplxe: Collection started. To stop the collection, either press CTRL-C or enter from another console window: amplxe-cl -r /lustre/medusa/userserv/vtune_example/Reports -command stop.
Hello world
amplxe: Collection stopped.
amplxe: Using result path `/lustre/medusa/userserv/vtune_example/Reports' 
amplxe: Executing actions 50 % Generating a report

Collection and Platform Information -------------------------------- Parameter result -------------------------------- Application Command Line ./a.out Operating System 2.6.32-358.23.2.el6.x86_64 CentOS release 6.2 (Final) Computer Name beacon007 Result Size 1653124 Collection start time 14:40:08 14/10/2014 UTC Collection stop time 14:40:10 14/10/2014 UTC
CPU ------------------------------ Parameter result ------------------------------ Name Intel(R) Xeon(R) E5 processor Frequency 2593751798 Logical CPU Count 32 Summary -------------------- Elapsed Time: 0.000 CPU Time: amplxe: Executing actions 100 % done $ exit

A report has now been generated in the folder named Reports. You can now use the gui to look at the report from the login node.

$ module load vtune
$ amplxe-gui ./Reports/Reports.amplxe