chore: added findings after trying to install the amdgpu packages

This commit is contained in:
Michele Cereda
2023-12-28 22:41:12 +01:00
parent badcc19423
commit 30cf501a56
3 changed files with 45 additions and 36 deletions

View File

@@ -6,8 +6,7 @@
1. [Client management](#client-management) 1. [Client management](#client-management)
1. [Remote management](#remote-management) 1. [Remote management](#remote-management)
1. [Use the GPU for computations](#use-the-gpu-for-computations) 1. [Use the GPU for computations](#use-the-gpu-for-computations)
1. [On OpenSUSE](#on-opensuse) 1. [AMD drivers](#amd-drivers)
1. [Check the GPU is OpenCL-enabled](#check-the-gpu-is-opencl-enabled)
1. [Use VirtualBox for computations](#use-virtualbox-for-computations) 1. [Use VirtualBox for computations](#use-virtualbox-for-computations)
1. [Ask for tasks for alternative platforms](#ask-for-tasks-for-alternative-platforms) 1. [Ask for tasks for alternative platforms](#ask-for-tasks-for-alternative-platforms)
1. [Gotchas](#gotchas) 1. [Gotchas](#gotchas)
@@ -64,39 +63,7 @@ Better solution:
## Use the GPU for computations ## 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]. Check the GPU is OpenCL-enabled installing and running `clinfo`:
```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`:
```sh ```sh
$ clinfo $ 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.<br/>
If you want to install also the ROCm component, see also the [AMD ROCm™ documentation].
<details><summary>On OpenSUSE</summary>
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
```
</details><br/>
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 ## Use VirtualBox for computations
Install VirtualBox, then add the `boinc` user to the `vboxusers` group: 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 - [boinccmd] for the bare CLI utility
- [boinctui] for a TUI manager - [boinctui] for a TUI manager
- [GUI RPC bind to port 31416 failed: 98] - [GUI RPC bind to port 31416 failed: 98]
- [AMD ROCm™ documentation]
<!-- <!--
References References
@@ -162,6 +163,7 @@ In `cc_config.xml`:
[installing or uninstalling the amdgpu stack]: https://amdgpu-install.readthedocs.io/en/latest/install-installing.html [installing or uninstalling the amdgpu stack]: https://amdgpu-install.readthedocs.io/en/latest/install-installing.html
[platforms]: https://boinc.berkeley.edu/trac/wiki/BoincPlatforms [platforms]: https://boinc.berkeley.edu/trac/wiki/BoincPlatforms
[radeon™ software for linux® installation]: https://amdgpu-install.readthedocs.io/en/latest/ [radeon™ software for linux® installation]: https://amdgpu-install.readthedocs.io/en/latest/
[amd rocm™ documentation]: https://rocm.docs.amd.com/en/latest/
[website]: https://boinc.berkeley.edu/ [website]: https://boinc.berkeley.edu/
<!-- In-article sections --> <!-- In-article sections -->

View File

@@ -17,7 +17,7 @@ sudo transactional-update dup
pkcon update pkcon update
# Install a package. # 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 pkcon install gnu_parallel
# Get a shell on the next snapshot. # Get a shell on the next snapshot.

View File

@@ -43,6 +43,9 @@ zypper ref 'updates'
zypper search 'nmap' zypper search 'nmap'
zypper se 'mariadb' zypper se 'mariadb'
# Show all available versions of resolvables.
zypper se -s 'kernel-default'
# Display detailed information about resolvables. # Display detailed information about resolvables.
zypper info 'workrave' zypper info 'workrave'
zypper if -t 'patch' 'libzypp' 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 'packman' 'libavdevice60'
zypper in -r 'https://repo.vivaldi.com/archive/vivaldi-suse.repo' 'vivaldi' zypper in -r 'https://repo.vivaldi.com/archive/vivaldi-suse.repo' 'vivaldi'
# Reinstall resolvables.
zypper in -f 'amdgpu-dkms'
# Install resolvables from source. # Install resolvables from source.
# The source packages *must* be available in the repositories one is using. # The source packages *must* be available in the repositories one is using.
zypper source-install -d 'dbus-1' zypper source-install -d 'dbus-1'
@@ -121,6 +127,7 @@ zypper renamerepo 'firefox' 'mozilla'
zypper nr '5' 'packman' zypper nr '5' 'packman'
# Modify repositories. # Modify repositories.
# Disable with '-d'.
zypper modifyrepo -er 'updates' zypper modifyrepo -er 'updates'
zypper mr -da zypper mr -da