User Guide

Contents

Intel® Media SDK Program Analysis

Use Intel® VTune™ Profiler to enable analysis of Intel® Media SDK tasks execution over time.
Prerequisites
:
To analyze the Intel Media SDK tasks execution, make sure to do the following:
To configure the Intel Media SDK program analysis, do the following:

Configure Target

Launch the
VTune
Profiler
with root privileges and configure analysis for your Intel Media SDK target.
For the
Launch Application
mode, follow the standard project setup and analysis target setup process and specify your application or a script as a target.
VTune
Profiler
automatically sets environment variables and, on Linux, creates an
.mfx_trace
configuration file for Intel Media SDK program analysis.
For the
Attach To Process
and
Profile System
modes, the
.mfx_trace
is not created by the
VTune
Profiler
automatically, which makes the Intel Media SDK program analysis incomplete. You need to manually enable MFX tracing as follows:
  1. Configure the system to include ITT traces to the result.
    For Linux:
    
    
        
    export INTEL_LIBITTNOTIFY32=opt/intel/vtune_profiler/lib32/runtime/libittnotify_collector.so export INTEL_LIBITTNOTIFY64=/opt/intel/vtune_profiler/lib64/runtime/libittnotify_collector.so
    For Windows:
    
    
        
    set INTEL_LIBITTNOTIFY32=C:\Program Files (x86)\IntelSWTools\VTune Profiler 2020\bin32\runtime\ittnotify_collector.dll set INTEL_LIBITTNOTIFY64=C:\Program Files (x86)\IntelSWTools\VTune Profiler 2020\bin64\runtime\ittnotify_collector.dll
  2. On Linux, before running the analysis, generate the
    .mfx_trace
    file:
    
    
        
    echo "Output=0x30" > $HOME/.mfx_trace chmod +r $HOME/.mfx_trace
If, for some reason, settings in this file are different from the settings specified in the
VTune
Profiler
project, the
.mfx_trace
settings will prevail and re-write the
VTune
Profiler
project settings.

Run Analysis

  1. Click the
    Configure Analysis
    button on the
    VTune
    Profiler
    toolbar.
  2. In the
    HOW
    pane, select an analysis type for Intel Media SDK program profiling, for example: GPU Compute/Media Hotspots analysis, GPU Offload analysis, or a custom analysis.
  3. Make sure the
    Trace GPU Programming APIs
    option is selected.
  4. Optionally: For custom analysis, select the
    GPU Utilization
    option.
    For the GPU Compute/Media Hotspots and GPU Offload analysis types, this option is enabled by default.
  5. Click
    Start
    to launch the analysis.
When the data collection completes, the
VTune
Profiler
opens the result in the default viewpoint. Start with the
Graphics
window to analyze the CPU workload during the execution of the Intel Media SDK tasks.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804