Difference between revisions of "Intel VTune Tutorial/Introduction"

From HPC Wiki
Intel VTune Tutorial/Introduction
Jump to navigation Jump to search
m (Fix missing whitespace in media reference of Slides)
 
(One intermediate revision by one other user not shown)
Line 12: Line 12:
 
<youtube width="600" height="340" right>4jwhjsN_Ock</youtube>
 
<youtube width="600" height="340" right>4jwhjsN_Ock</youtube>
  
([[Media:VTune_introduction.pdf|Slides as pdf]])
+
([[Media:VTune_introduction.pdf |Slides as pdf]])
  
 
=== Quiz === <!--T:5-->   
 
=== Quiz === <!--T:5-->   
Line 76: Line 76:
 
- <source enclose="none">vtune-gui</source> will always work
 
- <source enclose="none">vtune-gui</source> will always work
 
|| Not correct. This depends on how VTune was installed. It is often required to use a source script or load an environment module.
 
|| Not correct. This depends on how VTune was installed. It is often required to use a source script or load an environment module.
+ <source enclose="none">vtune-gui</source>, after the environment was set up with a source script or through <source enclose="none">module load</source>. (depends on installation)
+
+ <source enclose="none">vtune-gui</source>, after the environment was set up with a source script or through <source enclose="none">module load</source> (depends on installation)
 
|| Correct! It is likely that you have to set up your environment first. Either through a source script that is shipped with the installation or a module load.
 
|| Correct! It is likely that you have to set up your environment first. Either through a source script that is shipped with the installation or a module load.
 
</quiz>
 
</quiz>
 
{{hidden end}}
 
{{hidden end}}

Latest revision as of 09:36, 9 August 2023

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

The first tutorial video is introducing the Intel VTune profiler. It covers questions of what it is and how it works. The video ends with an example of how to run a first analysis with the "performance snapshot" type.

Video

(Slides as pdf)

Quiz

1. What does a profiler do?

Producing pretty screenshots of source code for presentations
Improving the performance of a program
Provides insight into an application

2. What does the Performance Snapshot analysis type do?

Use first measurements to recommend which analysis types should be considered next
Provide an in-depth performance analysis with detailed results
Automatically run a shorter version of an existing application

3. What does event based sampling refer to??

In-depth instrumentation of an application during compilation to send performance "events" to the analysis application
Performance analysis of an application by analysing the user input events
Regular sampling of performance counters during program execution

4. Do you always need the kernel module to profile with Intel VTune?

Yes, there is no other way for VTune to access the hardware performance counters
No, VTune can use "Linux perf" or the less detailed "user sampling" mode
No, VTune can always access performance counters

5. How do you start Intel VTune? (Assuming a working installation)

By typing intelvtune in the commandline
vtune-gui will always work
vtune-gui, after the environment was set up with a source script or through module load (depends on installation)