Amd gpu tool linux

AMDGPU PRO

This page describes close source drivers for AMD GPUs.

Purpose of proprietary components

AMD releases their open source drivers via standard distribution channels. And they also periodically do releases of their Radeon Software for Linux suite, which includes both open and proprietary components. Open source components are not needed from there, and proprietary components are repacked from the latest ubuntu lts version. They are published in AUR in the amdgpu-pro-installer package base.

Comment by John Bridgman from AMD explaining why they still package close source drivers:

  • customers using slower moving enterprise/LTS distros which do not automatically pick up the latest graphics drivers — we offer them both open source and proprietary/workstation options
  • customers using workstation apps who need the extra performance/certification from a workstation-oriented driver (although Marek has done a lot of great work over the last year to improve Mesa performance on workstation apps)
  • The third target audience is customers looking for ready-to-go OpenCL, either for use with the packaged open/closed drivers or with the upstream-based stack in a recent distro.

There are several proprietary components: OpenGL, OpenCL, Vulkan and AMF. Sometimes you may want to use these components due to specific features that open source components may lack.

AMDGPU PRO OpenGL is a proprietary, binary userland driver, which works on top of the open-source amdgpu kernel driver. From Radeon Software 18.50 vs Mesa 19 benchmarks article: When it comes to OpenGL games, the RadeonSI Gallium3D driver simply dominates the proprietary AMD OpenGL driver. Users of graphic cards other than Radeon Pro are advised to use the amdgpu graphics stack. Mostly used because of lacking compatibility layers that some software relies on. See gentoo wiki linked below.

AMDGPU PRO Vulkan — currently the only implementation that has ray tracing (however, reported by users as glitchy). Also it is required dependency for AMF.

AMDGPU PRO OpenCL — used because Mesa OpenCL is not fully complete. Proprietary component only for Polaris GPUs. The onward GPUs use the open ROCm OpenCL.

AMDGPU AMF — used for gpu encoding/decoding.

Installation

For proprietary OpenGL implementation, use the amdgpu-pro-installer package base. It contains all the following packages:

  • amdgpu-pro-oglpAUR : For proprietary OpenGL implementation
  • lib32-amdgpu-pro-oglpAUR : For proprietary OpenGL implementation 32 bit applications support
  • vulkan-amdgpu-proAUR : For proprietary Vulkan implementation
  • lib32-vulkan-amdgpu-proAUR : For proprietary Vulkan implementation 32 bit applications support
  • amf-amdgpu-proAUR : For Advanced Media Framework implementation

Note: OGLP is not a performance optimization of opengl, it is an all-new GL driver codebase written from scratch, based on the PAL architecture. in version > 22.20.5 it replaces the libgl

Читайте также:  Работа с nginx linux

For available OpenCL implementations see GPGPU#AMD/ATI.

For OBS to work with it use obs-studio-amf AUR

Usage

Using proprietary OpenGL

Launch your application with progl prefix, for example:

How to ensure you are using AMDGPU-PRO driver

Run the following command:

$ glxinfo | grep "OpenGL vendor string" | cut -f2 -d":" | xargs

If it returns AMD , then you are running open source driver. If it returns Advanced Micro Devices, Inc. , then you are running proprietary driver.

Alternatively, run glmark2. When using open driver, in OpenGL Information you will see:

GL_VENDOR: AMD GL_RENDERER: Radeon RX 580 Series (POLARIS10, DRM 3.40.0, 5.10.7-arch1-1, LLVM 11.0.1) GL_VERSION: 4.6 (Compatibility Profile) Mesa 20.3.3

But when using closed driver, you will see:

GL_VENDOR: ATI Technologies Inc. GL_RENDERER: Radeon RX 580 Series GL_VERSION: 4.6.14756 Compatibility Profile Context

Using proprietary Vulkan

Launch your application with vk_pro , for example:

Using Advanced Multimedia Framework

Troubleshooting

Intel + AMD hybrid graphics

For users of a hybrid setup with both an Intel GPU and an AMD GPU, usage of the proprietary AMDGPU Pro Workstation Driver might not work as expected due to different MESA implementations.

The symptom is the following: when you boot your machine, you get a black screen, but with your mouse cursor is moving normally.

Unfortunately, Reverse PRIME is not a solution. See the developer response.

Uninstalling packages

If you are in trouble, for example, you cannot login to your system due to black screen, you can revert all back by uninstalling all packages related to AMDGPU PRO.

Switch a virtual console (with e.g. Ctrl+Alt+F2 ), login and run:

# pacman -R $(pacman -Qg Radeon_Software_for_Linux | cut -f2 -d" ")

Southern Islands (SI) or Sea Islands (CIK) GPUs

If using Southern Islands (SI) or Sea Islands (CIK) GPU, when running clinfo , you get:

amdgpu_device_initialize: DRM version is 2.50.0 but this driver is only compatible with 3.x.x.

then ensure you are using amdgpu driver, but not radeon.

Check which driver is currently in use:

03:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Opal XT [Radeon R7 M265/M365X/M465] Subsystem: Acer Incorporated [ALI] Aspire V5 Radeon R7 M265 Kernel driver in use: radeon Kernel modules: radeon, amdgpu

Firmware and AMD drivers

AMD drivers and firmware (especially recent firmware) can get out of sync and create issues or not work at all. You can search in the journal for VNC :

system VCN FW Encode interface version=1.9, expected version=1.8

Downgrading the firmware seems to fix the problem.

  • As of 2023-05-06, the 7900 cards works with the linux-firmware version 20221214.f3c283e-1, see amdgpu-pro GitHub issue.
  • As of 2023-05-30 version 23.10-1595145 of the AMDGPU PRO seems to fix the 7900 cards if use the linux-firmware-gitAUR

See also

Источник

Apps to Monitor AMD GPUs Using Open Source Drivers in Linux

This article will cover a few useful applications that can be used to monitor statistics about AMD GPUs installed in your Linux system. These applications will only work properly and show correct information if you are using open source AMD GPU drivers (typically called AMDGPU drivers). If you have an AMD GPU, most Linux distributions should install and enable open source drivers automatically during OS installation. Since the release of “RX” series GPUs, open source drivers for AMD cards have improved leaps and bounds and now have performance almost at par with proprietary drivers. You should prefer open source drivers for AMD GPUs unless you are facing some hiccups or exceptions.

Читайте также:  Linux kernel headers files

Radeontop

Radeontop is an open source application to monitor GPU usage statistics for AMD cards. It works with both open source drivers and legacy catalyst drivers. Though some features may be limited for catalyst drivers. It can show a variety of data about GPU usage in real time and all statistics are updated automatically periodically. Note that it cannot show GPU temperature or fan speed.

To install Radeontop in Ubuntu, execute the command specified below:

In other Linux distributions, you can install Radeontop from the package manager. You can also compile its source code to get executable binary files.

To run Radeontop, use a command in the following format:

To know more about Radeontop, you can run these commands in terminal:

Radeon Profile

Radeon profile is a powerful open source tool to both monitor and control GPU parameters and profiles for AMD cards that use open source drivers in Linux. It supports extensive statistics monitoring including GPU temperature values and fan speeds, something that “radeontop” lacks. It can also overclock your AMD GPU card, change power profiles and manage fan curves.

To install Radeon Profile in Ubuntu, you will need to use its official PPA repository. Run the following three commands in succession to add the PPA and install Radeon Profile on your Ubuntu system:

$ sudo add-apt-repository ppa:radeon-profile/stable
$ sudo apt update
$ sudo apt install radeon-profile

Installation instructions for other major Linux distributions can be found here. You can also compile a build from its source code.

Lm-sensors

Lm-sensors is a tool to monitor statistics about your CPU, GPU and the hardware components. It is most commonly used to monitor temperature sensors for CPU and GPU units in your Linux system. You can use Lm-sensors to view current temperature and fan speed for your AMD card. It can fill the gap for “Radeontop” command line utility that lacks indicators for GPU temperature and fan speed.

To install Lm-sensors package in Ubuntu, execute the command mentioned below:

In other major Linux distributions, you can search for the “lm-sensors” package in the package manager. You can also compile an executable binary from its source code.

Once installed, run the command below and follow the on-screen instructions. It will probe your PC hardware and enable sensors as needed.

Читайте также:  Sharing printer in linux

If you are asked to automatically add some lines to a config file, choose “yes”. Reboot your Linux system.

Now just use one of these two commands to view information about your AMD GPU:

To show updated values every second, use this command instead:

You can modify the “-n” switch to change interval in seconds.

Psensor

Psensor is a graphical system monitoring tool that can view temperature and other statistics about CPU and GPU units installed in your Linux system. It is based on the “Lm-sensors” utility mentioned above, so it is recommended that you follow instructions for the “Lm-sensors” section above to enable necessary sensors first.

To install Psensor packages in Ubuntu, execute the following command:

In other Linux distributions, Psensor can be installed from the package manager. You can also follow instructions on its homepage to install it.

Psensor can show real-time information about your AMD GPU on the system panel as an indicator applet.

The “fan1” and “edge” fields in the screenshot above show information about AMD GPU. These names can be different for other AMD GPUs and you can rename them as well for easier identification.

To identify names for AMD GPU indicators, go to “Sensor Preferences” and check their details (as shown in the screenshot below).

To enable real-time indicators on the system panel, click on “Application Indicator” tab for any field on the sidebar and select “Display sensor in the label” checkbox (as shown in the screenshot below).

Both “Psensor” and “Lm-sensors” work with multiple GPUs, so you can view information about multiple AMD cards installed in your Linux system by using these tools.

Ricks-Lab GPU Utilities

Ricks-Lab GPU Utilities is an open source command app that provides a bunch of tools to monitor statistics for both NVIDIA and AMD GPUs. You can install these utilities in Ubuntu by executing the command specified below:

Packages for Ricks-Lab GPU Utilities can be installed from the package manager in other major Linux distributions. You can also follow its official installation guide available here.

Once installed, run the command specified below to view information about your AMD GPU:

Run the command below to show a continuously updating GPU monitor in terminal:

Run the command below to show GPU monitor in a graphical window:

Run the command below to view plots and charts for data collected on your AMD GPU. Charts may take some time to populate.

Conclusion

These are some of the best GPU monitoring tools available on Linux to monitor real-time information about your AMD GPU. These utilities are mainly designed and developed for open source drivers that are simply called “AMDGPU” drivers.

About the author

Nitesh Kumar

I am a freelancer software developer and content writer who loves Linux, open source software and the free software community.

Источник

Оцените статью
Adblock
detector