Intel® Media SDK Program Analysis

For Linux* target systems, enable analysis of Intel® Media SDK tasks execution over time.


To configure the Intel Media SDK program analysis, do the following:

  1. Configure your target for analysis.

  2. Enable tracing Intel Media SDK programs and run the analysis.

Configure Target

Launch the VTune Amplifier 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 Amplifier automatically creates an .mfx_trace configuration file for Intel Media SDK program analysis when you run the collection.

For the Attach To Process and Profile System modes, the .mfx_trace is not created by the VTune Amplifier 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 :

    $ export INTEL_LIBITTNOTIFY64=/opt/intel/vtune_amplifier_xe/lib64/runtime/
    $ export INTEL_LIBITTNOTIFY32= /opt/intel/vtune_amplifier_xe/lib32/runtime/
  2. 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 Amplifier project, the .mfx_trace settings will prevail and re-write the VTune Amplifier project settings.

Run Analysis

  1. Click the Configure Analysis button on the VTune Amplifier toolbar.

  2. In the HOW pane, select an analysis type for Intel Media SDK program profiling, for example: GPU Compute/Media Hotspots analysis or a Custom Analysis.

  3. Make sure the Trace OpenCL and Intel Media SDK programs option is selected.

  4. Optionally: For custom analysis, select the Analyze GPU usage option.

    For the GPU Compute/Media Hotspots analysis, this option is enabled by default.

  5. Click Start to launch the analysis.

When the data collection completes, the VTune Amplifier opens the result in the default GPU Compute/Media Hotspots viewpoint. Start with the Platform window to analyze the CPU workload during the execution of the Intel Media SDK tasks.

For more complete information about compiler optimizations, see our Optimization Notice.
Select sticky button color: 
Orange (only for download buttons)