Installing Sampling Driver via RPM

ID 658345
Updated 1/2/2018
Version Latest



Some users have expressed interest in manually installing the sampling driver from an RPM package. This article describes the necessary steps.  If you are new to the VTune™ Amplifier, do NOT use this method. This method should only be employed by experienced VTune Amplifier and Linux users. The file names and paths in this article match those of VTune Amplifier version 2018 and newer. The instructions are applicable to previous versions, but some changes in file naming schemes should be expected.

After downloading the VTune Amplifier tar file and extracting it via the 'tar xzvf <filename>' command, changing directory into the extracted directory and then into the CLI_Install/rpm directory, will reveal a RPM package named intel-vtune-amplifier-<versionnumber>-sep-<versionnumber>.<updatenumber>-<buildnumber>.noarch.rpm.  For example, in 2018 Update 1, the filename is intel-vtune-amplifier-2018-sep-2018.1-535340.noarch.rpm.

Use the RPM package manager to manually install this RPM.  For example,

$> rpm -i intel-vtune-amplifier-2018-sep-2018.1-535340.noarch.rpm

This will install the files of the package into the default location of /opt/intel/vtune_amplifier_<versionnumber>.<updatenumber>.0.<buildnumber>/sepdk. The RPM contents can be installed to a different location by using the --prefix option. Any path specified after the prefix option will substitute the /opt/intel default base installation path.

At this point, check to see if a pre-built driver was included for your version of Linux by changing directory into src and executing the script ./insmod-sep.  Note: you may want to specify the group of users that should get access to the driver via the '-g' option (use './insmod-sep -help' to see all options).  Group membership is required so that customers can limit access to this kernel module to a subset of all users, if required by their environment.  If there are no limits on access to kernel modules, you can just use a group name that everyone belongs to, for example, 'users'.  The default is the 'vtune' group.

If the script declares that no driver is available for your version of Linux use the build-driver script to build a driver for your kernel.  See the README.txt file for details about building the driver, if you run into any errors during the driver build.  In general, accept the defaults for all the prompts from the script. Note that kernel sources and headers must be configured correctly in order to build the driver.  Again, see the README.txt file for details.

Once a driver is built, execute './insmod-sep -g <groupname>' to load the driver.  Note: there is also a script named boot-script that can be used to cause the driver to be loaded after every system reboot.  This is the normal operation when VTune Amplifier is installed via the installation script.