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:
- Execute the following
commands:
$ tar –xf AMDuProf_Linux_x64_x.y.z.tar.bz2cd AMDuProf_Linux_x64_x.y.z/bin$ sudo ./AMDPowerProfilerDriver.sh install - 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