User Guide


GPU Offload Analysis

Explore code execution on various CPU and GPU cores on your platform, correlate CPU and GPU activity, and identify whether your application is GPU or CPU bound.
Run the GPU Offload analysis for applications that use a Graphics Processing Unit (GPU) for rendering, video processing, and computations with explicit support of DPC++, Intel® Media SDK and OpenCL™ software technology.
The tool infrastructure automatically aligns clocks across all cores in the entire system so that you can analyze some CPU-based workloads together with GPU-based workloads within a unified time domain.
This analysis enables you to:
  • Identify how effectively your application uses DPC++ or OpenCL kernels and explore them further with GPU Compute/Media Hotspots analysis
  • Analyze execution of Intel Media SDK tasks over time (for Linux targets only)
  • Explore GPU usage and analyze a software queue for GPU engines at each moment of time
For the GPU Offload analysis, Intel® VTune™ Profiler instruments your code executing both on CPU and GPU. Depending on your configuration settings, VTune Profiler provides performance metrics that serve as insights on the efficiency of GPU hardware use as well as next steps in your analysis.

Aspects of the GPU Offload Analysis

By default, the GPU Offload analysis enables the
GPU Utilization
option to explore GPU busyness over time and understand whether your application is CPU or GPU bound. Consequently, if you explore the Timeline view in the
window, you may observe:
  • The GPU is busy most of the time
  • There are small idle gaps between busy intervals
  • The GPU software queue is rarely decreased to zero
If these behaviors exist, you can conclude that your application is GPU bound.
If the gaps between busy intervals are big and the CPU is busy during these gaps, your application is CPU bound.
But such obvious situations are rare and you need a detailed analysis to understand all dependencies. For example, an application may be mistakenly considered GPU bound when the usage of GPU engines is serialized (for example, when GPU engines responsible for video processing and for rendering are loaded in turns). In this case, an ineffective scheduling on the GPU results from the application code running on the CPU.

Configure the Analysis

On Windows systems, to monitor general GPU usage over time, run
as an Administrator.

Run the Analysis

  1. Open the
    Configure Analysis
    window. Click the button on the welcome screen (standalone version) or the
    Configure Analysis
    (Visual Studio IDE) toolbar button.
  2. Open the Analysis Tree from the
    pane and select
    GPU Offload
    analysis from the
    The GPU Offload analysis is pre-configured to collect GPU usage data and collect Processor Graphics hardware events (Compute Basic preset).
    If you have multiple Intel GPUs connected to your system, run the analysis on the GPU of your choice or on all connected devices. For more information, see Analyze Multiple GPUs.
  3. Configure these GPU analysis options:
    • Use the
      Trace GPU programming APIs
      option to analyze DPC++, Level-Zero, OpenCL™, and Intel Media SDK programs running on Intel Processor Graphics. This option may affect the performance of your application on the CPU side.
    • Use the
      Collect host stacks
      option to analyze call stacks executed on the CPU and identify critical paths. You can also examine the CPU-side stacks for GPU computing tasks to investigate the efficiency of your GPU offload. When results display, sort through SYCL*, Level-Zero, or OpenCL™ runtime call stacks by selecting a
      Call Stack
      mode in the filter bar.
    • Use the
      Analyze CPU host-GPU bandwidth
      option to display data transfers based on hardware events on the timeline. This type of analysis requires Intel sampling drivers to be installed.
    • Use the
      Show GPU performance insights
      to get metrics (based on the analysis of Processor Graphics events) that help you estimate the efficiency of hardware usage and learn next steps. The following Insights metrics are collected:
      • The
        EU Array
        metric shows the breakdown of GPU core array cycles, where:
        • Active
          : The normalized sum of all cycles on all cores spent actively executing instructions. Formula:
        • Stalled
          : The normalized sum of all cycles on all cores spent stalled. At least one thread is loaded, but the core is stalled for some reason. Formula:
        • Idle
          : The normalized sum of all cycles on all cores when no threads were scheduled on a core. Formula:
      • The
        EU Threads Occupancy
        metric shows the normalized sum of all cycles on all cores and thread slots when a slot has a thread scheduled.
      • The
        Computing Threads Started
        metric shows the number of threads started across all EUs for compute work.
  4. Click
    to run the analysis.

Run from Command Line

Type this command:
-collect gpu-offload [-knob <
>] -- <
> [
To generate the command line for any analysis configuration, use the
Command Line
button at the bottom of the interface.
Once the GPU Offload Analysis completes data collection, the
window displays metrics that describe:
  • GPU usage
  • GPU idle time
  • The most active computing tasks that ran on the CPU host
  • The most active computing tasks that ran on the CPU when the GPU was idle
  • The most active computing tasks that ran on the GPU, along with occupancy information
Summary window of GPU Offload Analysis
You also see
and guidance for next steps.

Analyze Multiple GPUs

If you connect multiple Intel GPUs to your system,
identifies all of these adapters in the
Target GPU
pull down menu. Follow these guidelines:
  • Use the
    Target GPU
    pulldown menu to specify the device you want to profile.
  • The
    Target GPU
    pulldown menu displays only when
    detects multiple GPUs running on the system. The menu then displays the name of each GPU with the bus/device/function (BDF) of its adapter. You can also find this information on your Windows (see Task Manager) or Linux (run
    ) system.
  • If you do not select a GPU,
    selects the most recent device family in the list by default.
  • Select
    All devices
    to run the analysis on all of the GPUs connected to your system.
  • Full compute set in
    mode is not available for multi-adapter/tile analysis.
Once the analysis completes,
displays summary results per GPU including tile information in the

Analyze Data Transfer Between Host and Device

To understand the efficiency of data transfer between the CPU host and GPU device, see metrics in the Summary and Graphics windows.
The Summary window displays the total time spent on computing tasks as well as the execution time per task. The difference indicates the amount of time spent on data transfers between host and device. If the execution time is lower than the data transfer time, this indicates that your offload schema could benefit from optimization.
In the Summary window, look for offload cost metrics including
Host-to-Device Transfer
Device-to-Host Transfer
. These metrics can help you locate unnecessary memory transfers that reduce performance.
In the Graphics window, see the
Total Time by Device Operation Type
column, which displays the total time for each computation task.
Data Transfer Metrics
The total time is broken down into:
  • Allocation time
  • Time for data transfer from host to device
  • Execution time
  • Time for data transfer from device to host
This breakdown can help you understand better the balance between data transfer and GPU execution time. The Graphics window also displays in the
Transfer Size
section, the size of the data transfer between host and device per computation task.
Computation tasks with sub-optimal offload schemas are highlighted in the table with details to help you improve those schemes.

Examine Energy Consumption by your GPU

In Linux environments, when you run the GPU Offload analysis on an Intel® Iris® X
MAX graphics discrete GPU, you can see energy consumption information for the GPU device. To collect this information, make sure you check the
Analyze power usage
option when you configure the analysis.
Energy consumption metrics do not display in GPU profiling analyses that scan Intel® Iris® X
MAX graphics on Windows machines.
Once the analysis completes, see energy consumption data in these sections of your results.
In the
window, observe the
Energy Consumption
column in the grid when grouped by
Computing Task
. Sort this column to identify the GPU kernels that consumed the most energy. You can also see this information mapped in the timeline.
Tune for Power Usage
When you locate individual GPU kernels that consume the most energy, for optimum power efficiency, start by tuning the top energy hotspot.
Tune for Processing Time
If your goal is to optimize GPU processing time, keep a check on energy consumption metrics per kernel to monitor the tradeoff between performance time and power use.
Move the
Energy Consumption
column next to
Total Time
to make this comparison easier.
Energy Consumption in GPU by Computing Task
You may notice that the correlation between power use and processing time is not direct. The kernels that compute the fastest may not be the same kernels that consume the least amounts of energy. Check to see if larger values of power usage correspond to longer stalls/wait periods.

Support for DPC++ Applications using oneAPI Level Zero API

This section describes support in the GPU Offload analysis for DPC++ applications that run OpenCL or oneAPI Level Zero API in the back end.
supports version 1.0.4 of the oneAPI Level Zero API.
Support Aspect
DPC++ application with OpenCL as back end
DPC++ application with Level Zero as back end
Operating System
Linux OS
Windows OS
Linux OS
Windows OS
Data collection
collects and shows GPU computing tasks and the GPU computing queue.
collects and shows GPU computing tasks and the GPU computing queue.
Data display
maps the collected GPU HW metrics to specific kernels and displays them on a diagram.
maps the collected GPU HW metrics to specific kernels and displays them on a diagram.
Display Host side API calls
Source Assembler for computing tasks

Support for DirectX Applications

This section describes support available in the GPU analysis to trace Microsoft® DirectX* applications running on the CPU host. This support is available in the
Launch Application
mode only.
Support Aspect
DirectX Application
Operating system
Windows OS
API version
DXGI, Direct3D 11, Direct3D 12, Direct3D 11 on 12
Display host side API calls
Device side computing tasks
Source Assembler for computing tasks

Product and Performance Information


Performance varies by use, configuration and other factors. Learn more at