Difference between revisions of "Intel VTune Tutorial/Useful Tips"

From HPC Wiki
Intel VTune Tutorial/Useful Tips
Jump to navigation Jump to search
Line 24: Line 24:
 
|type="()"}
 
|type="()"}
 
+ <source enclose="none">vtune -help</source>
 
+ <source enclose="none">vtune -help</source>
|| Correct. You can also use `vtune -help <action>` to learn more abouth other commands and `vtune -help collect <anlaysis>` to get more info on analysis types.
+
|| Correct. You can also use <source enclose="none">vtune -help <action></source> to learn more abouth other commands and <source enclose="none">vtune -help collect <anlaysis></source> to get more info on analysis types.
 
- <source enclose="none">vtune --help</source>
 
- <source enclose="none">vtune --help</source>
 
|| Not correct. The command expects a single dash!
 
|| Not correct. The command expects a single dash!
 
- <source enclose="none">vtune -h</source>
 
- <source enclose="none">vtune -h</source>
|| Not correct. Although commonly used, VTune does expect a `-help` (single dash)
+
|| Not correct. Although commonly used, VTune does expect a <source enclose="none">-help</source> (single dash)
 
</quiz>
 
</quiz>
 
{{hidden end}}
 
{{hidden end}}

Revision as of 09:46, 14 June 2022

Tutorial
Title: Intel VTune Tutorial
Provider: HPC.NRW

Contact: tutorials@hpc.nrw
Type: Multi-part video
Topic Area: Performance analysis
License: CC-BY-SA
Syllabus

1. Introduction
2. CPU Architecture
3. Analysis Types
4. Useful Tips

This fourth tutorial of the Intel VTune series contains a loose collection of tips and tricks that did not fit anywhere else. It covers the commandline interface, steering data taking with the ITT API, and third party tooling.

Video

(Slides as pdf)

Links

Quiz

1. How can you get help on VTunes commandline interface?

vtune -help
vtune --help
vtune -h

2. How can you get the CLI command of a configured analysis in the GUI?

This is not possible
It is automatically printed in a log file
By pressing the 4th button at the bottom right on the "Configure Analysis" screen

3. What are typical causes of non-deterministic effects on profile results?

Quantum mechanical effects in the CPU
Unstable system clocks
Network communication, statistical nature of event based sampling, other processes competing for resources

4. What is the ITT API?

A library to integrate a standalone profiler with a program during compilation
An interactive VTune tutorial that automatically uses your program as an example
A library for instrumentation and tracing. Allows for steering profile collection from the source code