<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Quote:Pavel Gerasimov (Intel) in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125103#M16463</link>
    <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Pavel Gerasimov (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Nice! We almost done.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;OK, ( the LD_LIBRARY_PATH is useless as far I put the library into a default place)&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;&amp;lt; areGpuHardwareMetricsAvailable: UnsupportedInterfaceVersion
---
&amp;gt; areGpuHardwareMetricsAvailable: true
18a19,20
&amp;gt; isPAVPEnabled: false
&amp;gt; gpuPlatformIndex: 10
&lt;/PRE&gt;

&lt;P&gt;Its a bit annoying then, how to make it run automatically ? I mean, as the vtune drivers on the&amp;nbsp;target are loaded up on a request from the host ? I must admit that I do not understand why the standard c++ library has to be preloaded ... I can link `stdlibc++` from `../lib64` to the system's, hoping that any others tools will not complain about this.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;But we have one more problem. Your system kernel is built without CONFIG_DRM_I915_LOW_LEVEL_TRACEPOINTS, CONFIG_EXPERT. Enable this configurations and get context-value-list one more time.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I have started a new image generation for my distro with these configuration knobs. The i915 driver is build as a separate module. May I move it in-tree ?&lt;/P&gt;</description>
    <pubDate>Wed, 16 May 2018 07:42:39 GMT</pubDate>
    <dc:creator>TurtleCrazy</dc:creator>
    <dc:date>2018-05-16T07:42:39Z</dc:date>
    <item>
      <title>[Solved][Yocto linux] [Media sdk] gpu profiling</title>
      <link>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125097#M16457</link>
      <description>&lt;P&gt;Hi there.&lt;/P&gt;

&lt;P&gt;The intel media sdk is installed on the target and works well. I' m mainly using the `sample_encode` tool. But the intel driver isn't recognized by vtune:&lt;/P&gt;

&lt;P&gt;I follow the steps from &lt;A href="https://software.intel.com/en-us/vtune-amplifier-help-2019-beta-intel-media-sdk-program-analysis#MFX"&gt;https://software.intel.com/en-us/vtune-amplifier-help-2019-beta-intel-media-sdk-program-analysis#MFX&lt;/A&gt;&amp;nbsp;and the requested paths (INTEL_LIBITTNOTIFY64=/opt/intel/vtune_amplifier_xe/lib64/runtime/libittnotify_collector.so) are exported.&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;/opt/intel/system_studio_2018/vtune_amplifier/bin64/amplxe-cl -v -target-system=ssh:root@X.Y.0.5 -collect gpu-hotspots datatest/test.sh
amplxe: Using target: ssh:root@X.Y.0.5
amplxe: Error: Intel Graphics kernel module is not detected.
amplxe: Error: Cannot collect GPU hardware metrics. Make sure the Intel OpenCL SDK or Intel Media SDK is installed.

&lt;/PRE&gt;

&lt;P&gt;The Media SDK and HD driver were compiled from the opensource github repo:&lt;/P&gt;

&lt;UL&gt;
	&lt;LI&gt;&lt;A href="https://github.com/Intel-Media-SDK/MediaSDK"&gt;https://github.com/Intel-Media-SDK/MediaSDK&lt;/A&gt;&lt;/LI&gt;
	&lt;LI&gt;&lt;A href="https://github.com/intel/media-driver"&gt;https://github.com/intel/media-driver&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;How to fulfill the vtune requirements about HD gpu ?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;libva output:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;&amp;nbsp;vainfo
error: can't connect to X server!
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /usr/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.1.pre1)
vainfo: Driver version: Intel iHD driver - 2.0.0
vainfo: Supported profile and entrypoints
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileNone&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : VAEntrypointVideoProc
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileNone&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : VAEntrypointStats
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileMPEG2Simple&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : VAEntrypointVLD
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileMPEG2Main&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : VAEntrypointVLD
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileH264Main&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : VAEntrypointVLD
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileH264Main&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : VAEntrypointEncSlice
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileH264Main&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : VAEntrypointFEI
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileH264Main&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : VAEntrypointEncSliceLP
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileH264High&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : VAEntrypointVLD
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileH264High&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : VAEntrypointEncSlice
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileH264High&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : VAEntrypointFEI
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileH264High&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : VAEntrypointEncSliceLP
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileVC1Simple&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : VAEntrypointVLD
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileVC1Main&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : VAEntrypointVLD
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileVC1Advanced&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : VAEntrypointVLD
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileJPEGBaseline&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : VAEntrypointVLD
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileJPEGBaseline&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : VAEntrypointEncPicture
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileH264ConstrainedBaseline: VAEntrypointVLD
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileH264ConstrainedBaseline: VAEntrypointFEI
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileVP8Version0_3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : VAEntrypointVLD
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileHEVCMain&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : VAEntrypointVLD
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileHEVCMain&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : VAEntrypointEncSlice
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileHEVCMain&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : VAEntrypointFEI
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileHEVCMain10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : VAEntrypointVLD
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAProfileVP9Profile0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : VAEntrypointVLD
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 13:04:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125097#M16457</guid>
      <dc:creator>TurtleCrazy</dc:creator>
      <dc:date>2018-05-15T13:04:36Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125098#M16458</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Based on the error message. We may conclude that you have no libmd.so =)&lt;/P&gt;

&lt;P&gt;The library is distributed as a part of Intel OpenCl package.&lt;/P&gt;

&lt;P&gt;To solve the problem you have 2 options:&lt;BR /&gt;
	1) Install OpenCl&lt;BR /&gt;
	2) Build and install opensource libmd.so. You are able to get sources form:&amp;nbsp;&lt;A href="https://github.com/intel/metrics-discovery"&gt;https://github.com/intel/metrics-discovery&lt;/A&gt;&lt;BR /&gt;
	After the compilation add the library path to LD_LIBRARY_PATH environment variable.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 14:02:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125098#M16458</guid>
      <dc:creator>PAVEL_G_Intel</dc:creator>
      <dc:date>2018-05-15T14:02:00Z</dc:date>
    </item>
    <item>
      <title>Quote:Pavel Gerasimov (Intel)</title>
      <link>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125099#M16459</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Pavel Gerasimov (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Based on the error message. We may conclude that you have no libmd.so =)&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I do not see any mention of this library is the error message !?&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;The library is distributed as a part of Intel OpenCl package.&lt;/P&gt;

&lt;P&gt;To solve the problem you have 2 options:&lt;BR /&gt;
	1) Install OpenCl&lt;BR /&gt;
	2) Build and install opensource libmd.so. You are able to get sources form:&amp;nbsp;&lt;A href="https://github.com/intel/metrics-discovery" rel="nofollow"&gt;https://github.com/intel/metrics-discovery&lt;/A&gt;&lt;BR /&gt;
	After the compilation add the library path to LD_LIBRARY_PATH environment variable.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I quickly wrote a yocto recipe that installs the "libmd.so" library, compiled from the github repo, into the "/lib", "/lib64" and "/usr/lib" folders. (to make sure)&lt;/P&gt;

&lt;P&gt;I still get the same error.&lt;/P&gt;

&lt;P&gt;NB, the `install` target is missing from the CMake file of the metrics project.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 15:07:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125099#M16459</guid>
      <dc:creator>TurtleCrazy</dc:creator>
      <dc:date>2018-05-15T15:07:01Z</dc:date>
    </item>
    <item>
      <title>It may be a problem of</title>
      <link>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125100#M16460</link>
      <description>&lt;P style="font-size: 13.008px;"&gt;&lt;SPAN style="font-size: 13.008px;"&gt;It may be a problem of different libstdc++ used on system and in VTune Amplifier.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;Let's run context-value-list with and without environment variables. Please send both of the result here.&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;/opt/intel/vtune_amplifier_2018.2.0.551022/bin64/amplxe-runss --context-value-list
LD_PRELOAD=&amp;lt;path_to_libstdc++.so&amp;gt; LD_LIBRARY_PATH=&amp;lt;path_to_parent_dir_of_libmd.so&amp;gt; /opt/intel/vtune_amplifier_2018.2.0.551022/bin64/amplxe-runss --context-value-list
&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 May 2018 15:21:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125100#M16460</guid>
      <dc:creator>PAVEL_G_Intel</dc:creator>
      <dc:date>2018-05-15T15:21:48Z</dc:date>
    </item>
    <item>
      <title>First run:</title>
      <link>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125101#M16461</link>
      <description>&lt;P&gt;First run:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;/opt/intel/vtune_amplifier_2018.2.0.551022/bin64/amplxe-runss --context-value-list
targetOS: Linux
OS: Linux
OSBuildNumber: 33
OSBitness: 64
RootPrivileges: true
isPtraceScopeLimited: false
isTSXAvailable: false
isHTEnabled: false
fpgaOnBoard: None
pciClassParts:
isSGXAvailable: false
LinuxRelease: 4.14.33-intel-pk-standard
IsNUMANodeWithoutCPUsPresent: false
Hypervisor: None
PerfmonVersion: 4
isPtraceAvailable: true
areGpuHardwareMetricsAvailable: UnsupportedInterfaceVersion
i915Status: MissingDriver
isFtraceAvailable: yes
isMdfEtwAvailable: false
isCSwitchAvailable: yes
isGpuBusynessAvailable: notAccessible
isGpuWaitAvailable: yes
isFunctionTracingAvailable: yes
isIowaitTracingAvailable: yes
isVSyncAvailable: yes
isPAXDriverLoaded: true
isHyperVEnabled: false
isDeviceOrCredentialGuardEnabled: false
isSEPDriverAvailable: true
platformType: 106
CPU_NAME: Intel(R) Processor code named Broxton
PMU: goldmont
referenceFrequency: 1600000000
isVTSSPPDriverAvailable: true
isNMIWatchDogTimerRunning: false
LinuxPerfCredentials: Unlimited
LinuxPerfCapabilities: breakpoint:raw;cpu:raw,format,events;cstate_core:raw,format,events;cstate_pkg:raw,format,events;intel_bts:raw;intel_pt:raw,format;msr:raw,format,events;power:raw,format,events;software:raw;tracepoint:raw
LinuxPerfStackCapabilities: fp,dwarf
isTPSSAvailable: true
isPytraceAvailable: true
isGENDebugInfoAvailable: false
isGTPinCollectionAvailable: Yes
isSTTAvailable: no
isCOHNPKCtrlLibAvailable: false
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Second run:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;LD_PRELOAD=/usr/lib/libstdc++.so LD_LIBRARY_PATH=/usr/lib /opt/intel/vtune_amplifier_2018.2.0.551022/bin64/amplxe-runss --context-value-list
targetOS: Linux
OS: Linux
OSBuildNumber: 33
OSBitness: 64
RootPrivileges: true
isPtraceScopeLimited: false
isTSXAvailable: false
isHTEnabled: false
fpgaOnBoard: None
pciClassParts:
isSGXAvailable: false
LinuxRelease: 4.14.33-intel-pk-standard
IsNUMANodeWithoutCPUsPresent: false
Hypervisor: None
PerfmonVersion: 4
isPtraceAvailable: true
areGpuHardwareMetricsAvailable: true
i915Status: MissingDriver
isPAVPEnabled: false
gpuPlatformIndex: 10
isFtraceAvailable: yes
isMdfEtwAvailable: false
isCSwitchAvailable: yes
isGpuBusynessAvailable: notAccessible
isGpuWaitAvailable: yes
isFunctionTracingAvailable: yes
isIowaitTracingAvailable: yes
isVSyncAvailable: yes
isPAXDriverLoaded: true
isHyperVEnabled: false
isDeviceOrCredentialGuardEnabled: false
isSEPDriverAvailable: true
platformType: 106
CPU_NAME: Intel(R) Processor code named Broxton
PMU: goldmont
referenceFrequency: 1600000000
isVTSSPPDriverAvailable: true
isNMIWatchDogTimerRunning: false
LinuxPerfCredentials: Unlimited
LinuxPerfCapabilities: breakpoint:raw;cpu:raw,format,events;cstate_core:raw,format,events;cstate_pkg:raw,format,events;intel_bts:raw;intel_pt:raw,format;msr:raw,format,events;power:raw,format,events;software:raw;tracepoint:raw
LinuxPerfStackCapabilities: fp,dwarf
isTPSSAvailable: true
isPytraceAvailable: true
isGENDebugInfoAvailable: false
isGTPinCollectionAvailable: Yes
isSTTAvailable: no
isCOHNPKCtrlLibAvailable: false
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 15:47:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125101#M16461</guid>
      <dc:creator>TurtleCrazy</dc:creator>
      <dc:date>2018-05-15T15:47:06Z</dc:date>
    </item>
    <item>
      <title>Nice! We almost done. </title>
      <link>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125102#M16462</link>
      <description>&lt;P&gt;Nice! We almost done.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;But we have one more problem. Your system kernel is built without CONFIG_DRM_I915_LOW_LEVEL_TRACEPOINTS, CONFIG_EXPERT. Enable this configurations and get context-value-list one more time.&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 16:22:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125102#M16462</guid>
      <dc:creator>PAVEL_G_Intel</dc:creator>
      <dc:date>2018-05-15T16:22:07Z</dc:date>
    </item>
    <item>
      <title>Quote:Pavel Gerasimov (Intel)</title>
      <link>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125103#M16463</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Pavel Gerasimov (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Nice! We almost done.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;OK, ( the LD_LIBRARY_PATH is useless as far I put the library into a default place)&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;&amp;lt; areGpuHardwareMetricsAvailable: UnsupportedInterfaceVersion
---
&amp;gt; areGpuHardwareMetricsAvailable: true
18a19,20
&amp;gt; isPAVPEnabled: false
&amp;gt; gpuPlatformIndex: 10
&lt;/PRE&gt;

&lt;P&gt;Its a bit annoying then, how to make it run automatically ? I mean, as the vtune drivers on the&amp;nbsp;target are loaded up on a request from the host ? I must admit that I do not understand why the standard c++ library has to be preloaded ... I can link `stdlibc++` from `../lib64` to the system's, hoping that any others tools will not complain about this.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;But we have one more problem. Your system kernel is built without CONFIG_DRM_I915_LOW_LEVEL_TRACEPOINTS, CONFIG_EXPERT. Enable this configurations and get context-value-list one more time.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I have started a new image generation for my distro with these configuration knobs. The i915 driver is build as a separate module. May I move it in-tree ?&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 07:42:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125103#M16463</guid>
      <dc:creator>TurtleCrazy</dc:creator>
      <dc:date>2018-05-16T07:42:39Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125104#M16464</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;It still failed to detect the driver with the new build of the kernel.&lt;/P&gt;

&lt;P&gt;The only difference is :&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;&amp;nbsp;isGpuBusynessAvailable: yes&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 11:25:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125104#M16464</guid>
      <dc:creator>TurtleCrazy</dc:creator>
      <dc:date>2018-05-16T11:25:15Z</dc:date>
    </item>
    <item>
      <title>Hi, </title>
      <link>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125105#M16465</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Why we need to use library preload?&lt;BR /&gt;
	VTune Amplifier uses its own libstdc++.so and the version of this library is GLIBCXX_3.4.20. But libmd.so depends on another libstdc++.so version. Therefore VTune Amplifier cannot load it.&lt;/P&gt;

&lt;P&gt;The changes of context values says, that the GPU analysis is possible right now. But you have a problem with the preload during remote collection.&lt;BR /&gt;
	&lt;EM&gt;I have never did it before...&lt;/EM&gt; Try to replace amplxe-runss on target with bash script which will start amplxe-runss with correct version of libstdc++ preloaded.&lt;/P&gt;

&lt;P&gt;Something like this:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;#!/bin/bash
LD_PRELOAD=/usr/lib/libstdc++.so /opt/intel/vtune_amplifier_2018.2.0.551022/bin64/amplxe-runss.orig&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 May 2018 12:13:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125105#M16465</guid>
      <dc:creator>PAVEL_G_Intel</dc:creator>
      <dc:date>2018-05-16T12:13:45Z</dc:date>
    </item>
    <item>
      <title>Quote:Pavel Gerasimov (Intel)</title>
      <link>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125106#M16466</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Pavel Gerasimov (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Why we need to use library preload?&lt;BR /&gt;
	VTune Amplifier uses its own libstdc++.so and the version of this library is GLIBCXX_3.4.20. But libmd.so depends on another libstdc++.so version. Therefore VTune Amplifier cannot load it.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Wow, as far as there is only short differences between the two (6.20 -&amp;gt; 6.24).&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;The changes of context values says, that the GPU analysis is possible right now. But you have a problem with the preload during remote collection.&lt;BR /&gt;
	&lt;EM&gt;I have never did it before...&lt;/EM&gt; Try to replace amplxe-runss on target with bash script which will start amplxe-runss with correct version of libstdc++ preloaded.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Fortunately `libstdc++.so.6` is not a regular file but a link;&amp;nbsp;So&amp;nbsp;I re-link libstdc++.so.6 to the system library and it seems to work. Actually, I was able to run a "gpu-hotspot" profiling suite. I have now to make sure that I get relevant results. Thanks.&lt;/P&gt;

&lt;P&gt;I m currently running an in tree &lt;STRONG&gt;i915 &lt;/STRONG&gt;module; I will check this on a &lt;EM&gt;off-tree &lt;/EM&gt;module later on. Here is the differences between the two:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;+pciClassParts:
+isGpuBusynessAvailable: i915TaintUnknown&lt;/PRE&gt;

&lt;P&gt;What sounds weird is also this:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;i915Status: MissingDriver&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Reading this I first thought that I would not be able to profile the GPU.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 13:16:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125106#M16466</guid>
      <dc:creator>TurtleCrazy</dc:creator>
      <dc:date>2018-05-16T13:16:04Z</dc:date>
    </item>
    <item>
      <title>As for context values there</title>
      <link>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125107#M16467</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;As for context values there are not for end-user. The confusing values are used for better error reporting and not influence the collection.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 13:38:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125107#M16467</guid>
      <dc:creator>PAVEL_G_Intel</dc:creator>
      <dc:date>2018-05-16T13:38:13Z</dc:date>
    </item>
    <item>
      <title>Quote:Pavel Gerasimov (Intel)</title>
      <link>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125108#M16468</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Pavel Gerasimov (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;As for context values there are not for end-user. The confusing values are used for better error reporting and not influence the collection.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;OK, it sounds that this part works well now. I am facing a new issue with cpugpu-concurrency analysis but it is&amp;nbsp;somehow a different problem.&lt;/P&gt;

&lt;P&gt;So I started a new thread; thanks again.&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 15:24:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125108#M16468</guid>
      <dc:creator>TurtleCrazy</dc:creator>
      <dc:date>2018-05-16T15:24:36Z</dc:date>
    </item>
    <item>
      <title>Quote:Pavel Gerasimov (Intel)</title>
      <link>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125109#M16469</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Pavel Gerasimov (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;#!/bin/bash
LD_PRELOAD=/usr/lib/libstdc++.so /opt/intel/vtune_amplifier_2018.2.0.551022/bin64/amplxe-runss.orig&lt;/PRE&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Just in case, append&amp;nbsp; `$@` to populate arguments.&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;#!/bin/sh
LD_PRELOAD=/usr/lib/libstdc++.so /opt/intel/vtune_amplifier_2018.2.0.551022/bin64/amplxe-runss.orig ${@}
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;I have never did it before&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;I did. It seems to work also. my other solution follows:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;cd /opt/intel/vtune_amplifier_2018.2.0.551022/lib64
unlink libstdc++.so.6
ln -s /usr/lib/libstdc++.so.6.24&amp;nbsp; libstdc++.so.6
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 12:32:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Solved-Yocto-linux-Media-sdk-gpu-profiling/m-p/1125109#M16469</guid>
      <dc:creator>TurtleCrazy</dc:creator>
      <dc:date>2018-05-17T12:32:32Z</dc:date>
    </item>
  </channel>
</rss>

