Installing Power Profiling Driver on Linux - Installing Power Profiling Driver on Linux - 57368

uProf User Guide

Document ID
57368
Release Date
2025-06-09
Revision
5.1 English
While installing AMD uProf using RPM and Debian installer packages, the Power Profiler Linux Driver build is generated and installed automatically. However, if you downloaded the AMD uProf tar.bz2 archive, you must install the Power Profiler Linux Driver manually.
Note: If the Power Profiling driver installation fails due to a kernel GCC version mismatch (as stated in the warning message), make sure the GCC version used to build the kernel is also present on the system.
The GCC and MAKE software packages are prerequisites for installing Power Profiler Driver. If you do not have these packages, you can install them using the following commands:

On RHEL and CentOS distros:

$ sudo yum install gcc make

On Debian/Ubuntu distros:

$ sudo apt install build-essential
Note: By default, the GCC 11 PP driver installation fails on Ubuntu 24.04 and needs GCC 12 to proceed with the installation. This is because, by default, Ubuntu 24.04 comes bundled with GCC 11 but the kernel is built upon GCC 12. Hence, GCC 12 must be installed in this case.
To install:
  1. Execute the following commands:
    $ tar –xf AMDuProf_Linux_x64_x.y.z.tar.bz2
    cd AMDuProf_Linux_x64_x.y.z/bin
    $ sudo ./AMDPowerProfilerDriver.sh install
  2. Installer will create a source tree for Power Profiler Driver in the directory /usr/src/AMDPowerProfiler-<version>. All the source files required for module compilation are in this directory and under MIT license.
To uninstall the driver, run the following commands:
$ cd AMDuProf_Linux_x64_x.y.z/bin
$ sudo ./AMDPowerProfilerDriver.sh uninstall