Intel® VTune™ Amplifier XE and Intel® VTune™ Amplifier for Systems Help

Intel® Media SDK Program Analysis Configuration

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

Prerequisites:

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.

Configuring the Target

Launch the VTune Amplifier with root privileges and configure to analyze your Intel Media SDK target in the Launch Application or Attach to Process mode.

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_file configuration file for Intel Media SDK program analysis when you run the collection.

For the Attach To Process mode, the .mfx_file 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/libittnotify_collector.so
    export INTEL_LIBITTNOTIFY32= /opt/intel/vtune_amplifier_xe/lib32/runtime/libittnotify_collector.so
  2. Before running the analysis, generate the .mfx_file 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_file settings will prevail and re-write the VTune Amplifier project settings.

Running the Analysis

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

  2. In the Choose Analysis Type window, select an analysis type for Intel Media SDK program profiling, for example: GPU Hotspots Analysis or a Custom Analysis.

  3. In the configuration pane on the right, 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 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 Hotspots viewpoint. Start with the Platform window to analyze the CPU workload during the execution of the Intel Media SDK tasks.

See Also