Possible error messages:
Cannot collect GPU hardware metrics because libmd.so cannot be loaded. Make sure you have installed Metrics Discovery API from https://github.com/intel/metrics-discovery correctly.
Cannot collect GPU hardware metrics because libmd.so was not found. Make sure you have installed Metrics Discovery Application Programming Interface from https://github.com/intel/metrics-discovery.
Cannot collect GPU hardware metrics because your version of the Metrics Discovery API is obsolete.
To collect GPU hardware metrics and GPU usage data on Linux, the VTune Amplifier uses the Intel® Metric Discovery API library distributed with the product. If it cannot access the library, the corresponding error message is provided.
Install the Intel Metric Discovery API library from the official repository at https://github.com/intel/metrics-discovery and make sure to meet the following requirements:
To enable the VTune Amplifier to successfully load the library, it should be linked to libstdc++ (version GLIBCXX_3.4.20 or older) or statically linked to libstd++. If libmd.so is dynamically linked to a newer version of libstdc++, make sure to have it loaded to the process before loading libmd.so. You can do this, for example, by re-defining the environment variable LD_PRELOAD:
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 amplxe-cl -c gpu-hotspots.
If you use su or sudo command to run the VTune Amplifier, you need to redefine LD_PRELOAD directly in the command, for example:
sudo LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 amplxe-cl -c gpu-hotspots