From 30cf501a56c7b34113d235fd889a32fd4b8fe8d2 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Thu, 28 Dec 2023 22:41:12 +0100 Subject: [PATCH] chore: added findings after trying to install the amdgpu packages --- knowledge base/boinc.md | 72 ++++++++++++++++++++------------------- knowledge base/microos.md | 2 +- knowledge base/zypper.md | 7 ++++ 3 files changed, 45 insertions(+), 36 deletions(-) diff --git a/knowledge base/boinc.md b/knowledge base/boinc.md index a3f2364..0d12925 100644 --- a/knowledge base/boinc.md +++ b/knowledge base/boinc.md @@ -6,8 +6,7 @@ 1. [Client management](#client-management) 1. [Remote management](#remote-management) 1. [Use the GPU for computations](#use-the-gpu-for-computations) - 1. [On OpenSUSE](#on-opensuse) - 1. [Check the GPU is OpenCL-enabled](#check-the-gpu-is-opencl-enabled) + 1. [AMD drivers](#amd-drivers) 1. [Use VirtualBox for computations](#use-virtualbox-for-computations) 1. [Ask for tasks for alternative platforms](#ask-for-tasks-for-alternative-platforms) 1. [Gotchas](#gotchas) @@ -64,39 +63,7 @@ Better solution: ## Use the GPU for computations -To use the GPU for projects you may need the proprietary nVidia or AMD drivers. See [AMD Linux drivers] and [Radeon™ Software for Linux® Installation]. - -```sh -amdgpu-install --usecase=workstation --opencl=rocr -``` - -The BOINC client seems to need to be added to the `video` group to be able to use the drivers correctly - this is something I still need to check. - -```sh -gpasswd -a 'boinc' 'video' -usermod --append --groups 'video' 'boinc' -``` - -### On OpenSUSE - -Install the `amdgpu-install` package from [AMD's Linux drivers][amd linux drivers] page, then execute it. - -```sh -# Previous versions of the package (like the one in the official documentation -# at the time of writing) made DKMS fail. -sudo zypper install 'https://repo.radeon.com/amdgpu-install/22.20.3/sle/15.4/amdgpu-install-22.20.50203-1.noarch.rpm' -sudo amdgpu-install -``` - -At the next restart of the boinc-client, something similar to this line should appear in the client's logs: - -```txt -Oct 09 23:09:40 hostnameHere boinc[1709]: 09-Oct-2022 23:09:40 [---] OpenCL: AMD/ATI GPU 0: gfx90c:xnack- (driver version 3452.0 (HSA1.1,LC), device ve> -``` - -### Check the GPU is OpenCL-enabled - -Just install and run `clinfo`: +Check the GPU is OpenCL-enabled installing and running `clinfo`: ```sh $ clinfo @@ -107,6 +74,39 @@ Number of platforms 1 … ``` +If the resulting number of platform is `0`, you need to install the proprietary drivers for your card. + +The BOINC client seems to need to be added to the `video` group to be able to use the drivers correctly - this is something I still need to check. + +```sh +gpasswd -a 'boinc' 'video' +usermod --append --groups 'video' 'boinc' +``` + +### AMD drivers + +See [AMD Linux drivers] and [Radeon™ Software for Linux® Installation] for the AMD drivers.
+If you want to install also the ROCm component, see also the [AMD ROCm™ documentation]. + +
On OpenSUSE + +Install the `amdgpu-install` package from [AMD's Linux drivers][amd linux drivers] page, then execute it. + +```sh +# Previous versions of the package (like the one in the official documentation +# at the time of writing) made DKMS fail. +sudo zypper install 'https://repo.radeon.com/amdgpu-install/22.20.3/sle/15.4/amdgpu-install-22.20.50203-1.noarch.rpm' +sudo amdgpu-install --usecase=workstation --opencl=rocr +``` + +

+ +At the next restart of the BOINC client, something similar to this line should appear in the event logs: + +```txt +Oct 09 23:09:40 hostnameHere boinc[1709]: 09-Oct-2022 23:09:40 [---] OpenCL: AMD/ATI GPU 0: gfx90c:xnack- (driver version 3452.0 (HSA1.1,LC), device ve> +``` + ## Use VirtualBox for computations Install VirtualBox, then add the `boinc` user to the `vboxusers` group: @@ -149,6 +149,7 @@ In `cc_config.xml`: - [boinccmd] for the bare CLI utility - [boinctui] for a TUI manager - [GUI RPC bind to port 31416 failed: 98] +- [AMD ROCm™ documentation] diff --git a/knowledge base/microos.md b/knowledge base/microos.md index 52a8bdf..9cde484 100644 --- a/knowledge base/microos.md +++ b/knowledge base/microos.md @@ -17,7 +17,7 @@ sudo transactional-update dup pkcon update # Install a package. -sudo transactional-update pkg install tlp ntfs-3g fuse-exfat nano +sudo transactional-update pkg install 'tlp' 'ntfs-3g' 'fuse-exfat' 'nano' pkcon install gnu_parallel # Get a shell on the next snapshot. diff --git a/knowledge base/zypper.md b/knowledge base/zypper.md index ab1781a..2ad5c61 100644 --- a/knowledge base/zypper.md +++ b/knowledge base/zypper.md @@ -43,6 +43,9 @@ zypper ref 'updates' zypper search 'nmap' zypper se 'mariadb' +# Show all available versions of resolvables. +zypper se -s 'kernel-default' + # Display detailed information about resolvables. zypper info 'workrave' zypper if -t 'patch' 'libzypp' @@ -58,6 +61,9 @@ zypper in --no-recommends 'gv' 'virtualbox-ose=2.0.6' '/root/ansible.rpm' zypper in -r 'packman' 'libavdevice60' zypper in -r 'https://repo.vivaldi.com/archive/vivaldi-suse.repo' 'vivaldi' +# Reinstall resolvables. +zypper in -f 'amdgpu-dkms' + # Install resolvables from source. # The source packages *must* be available in the repositories one is using. zypper source-install -d 'dbus-1' @@ -121,6 +127,7 @@ zypper renamerepo 'firefox' 'mozilla' zypper nr '5' 'packman' # Modify repositories. +# Disable with '-d'. zypper modifyrepo -er 'updates' zypper mr -da