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

From HPC Wiki
Intel VTune Tutorial/Useful Tips
Jump to navigation Jump to search
(Created page with "Intel VTune Tutorials: Useful Tips<nowiki /> {{DISPLAYTITLE:Intel VTune Tutorial: Useful Tips}}<nowiki /> {{Syllabus Intel VTune Tutorial}} __TOC__ Thi...")
 
 
(4 intermediate revisions by one other user not shown)
Line 9: Line 9:
 
=== Video === <!--T:5-->
 
=== Video === <!--T:5-->
  
<youtube width="600" height="340" right>ghFn5IBzjrc</youtube>
+
<youtube width="600" height="340" right>5hQcd3MQpBw</youtube>
  
 
([[Media:VTune_UsefulTips.pdf |Slides as pdf]])
 
([[Media:VTune_UsefulTips.pdf |Slides as pdf]])
 +
 +
=== Links ===
 +
* [https://www.intel.com/content/www/us/en/develop/documentation/gpa-user-guide/top/instrumentation-and-tracing-technology-apis.html Instrumentation and Tracing Technology API Support]
 +
* [https://github.com/intel/ittapi github.com/intel/ittapi]
  
 
=== Quiz === <!--T:5-->   
 
=== Quiz === <!--T:5-->   
Line 20: 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 <analysis></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}}
Line 36: Line 40:
 
- It is automatically printed in a log file
 
- It is automatically printed in a log file
 
|| Not correct.
 
|| Not correct.
+ By pressing the 4th button at the bottom right on the "Configure Analysis" screen.
+
+ By pressing the 4th button at the bottom right on the "Configure Analysis" screen
 
|| Correct. This is a very useful feature to explore commandline options from existing analysis configurations in the GUI.
 
|| Correct. This is a very useful feature to explore commandline options from existing analysis configurations in the GUI.
 
</quiz>
 
</quiz>

Latest revision as of 12:12, 15 July 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