Intel® VTune™ Amplifier XE and Intel® VTune™ Amplifier for Systems Help
For Linux* target systems, enable analysis of Intel® Media SDK tasks execution over time.
Prerequisites:
To analyze the Intel HD Graphics and Intel Iris™ Graphics Processor hardware events, install the Intel Media Server Studio (starting with version 2015 R5) and build the kernel driver as described in the Intel® Media Server Studio Getting Started Guide.
For remote collection, configure your target Linux system.
To configure the Intel Media SDK program analysis, do the following:
Configure your target for analysis.
For the Attach to Process target type, enable MFX tracing.
Enable tracing Intel Media SDK programs and run the analysis.
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:
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
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.
Click the New Analysis button on the VTune Amplifier toolbar.
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.
In the configuration pane on the right, make sure the Trace OpenCL and Intel Media SDK programs option is selected.
Optionally: For custom analysis, select the Analyze GPU usage option.
For the GPU Hotspots analysis, this option is enabled by default.
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.