mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
Imported knowledge from a private repository
This commit is contained in:
@@ -3,9 +3,15 @@
|
||||
1. [TL;DR](#tldr)
|
||||
2. [Client management](#client-management)
|
||||
1. [Remote management](#remote-management)
|
||||
3. [Use the GPU for computation](#use-the-gpu-for-computation)
|
||||
3. [Use the GPU for computations](#use-the-gpu-for-computations)
|
||||
1. [On OpenSUSE](#on-opensuse)
|
||||
4. [Further readings](#further-readings)
|
||||
2. [Check the GPU is OpenCL-enabled](#check-the-gpu-is-opencl-enabled)
|
||||
4. [Use VirtualBox for computations](#use-virtualbox-for-computations)
|
||||
5. [Gotchas](#gotchas)
|
||||
6. [Further readings](#further-readings)
|
||||
|
||||
Files are located in `/var/lib/boinc` by default.
|
||||
Some distribution (debian and derivate) use `/etc/boinc-client` for configuration files instead, and create links to the ones in the default location.
|
||||
|
||||
## TL;DR
|
||||
|
||||
@@ -26,8 +32,14 @@ Name | Type | Description
|
||||
[boinccmd] | Command line |
|
||||
[boinctui] | Text |
|
||||
|
||||
Local control RPCs are authenticated using the GUI RPC password. This password is located in the `gui_rpc_auth.cfg` configuration file, as the single first line, with a max length of 255 characters.
|
||||
|
||||
A password is **required** from version FIXME, and is automatically generated if the file is not found or it is empty.
|
||||
|
||||
### Remote management
|
||||
|
||||
All remote RPCs (both status and control) are authenticated using the GUI RPC password.
|
||||
|
||||
Quick, dirty solution: use the `--allow_remote_gui_rpc` option when starting the client.<br/>
|
||||
This will make the BOINC client accept connections from **any** host (subject to password authentication) even if the client's configuration files are set otherwise.
|
||||
|
||||
@@ -42,12 +54,21 @@ Better solution:
|
||||
|
||||
1. check the `gui_rpc_auth.cfg` file in the BOINC data directory to get the password for authentication
|
||||
|
||||
## Use the GPU for computation
|
||||
## Use the GPU for computations
|
||||
|
||||
Also see [AMD Linux drivers] and [Radeon™ Software for Linux® Installation].
|
||||
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.
|
||||
@@ -65,11 +86,41 @@ At the next restart of the boinc-client, something similar to this line should a
|
||||
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
|
||||
$ clinfo
|
||||
Number of platforms 1
|
||||
Platform Name NVIDIA CUDA
|
||||
Platform Vendor NVIDIA Corporation
|
||||
Platform Version OpenCL 1.2 CUDA 10.0.132
|
||||
…
|
||||
```
|
||||
|
||||
## Use VirtualBox for computations
|
||||
|
||||
Install VirtualBox, then add the `boinc` user to the `vboxusers` group:
|
||||
|
||||
```sh
|
||||
usermod --append --groups 'vboxusers' 'boinc'
|
||||
```
|
||||
|
||||
## Gotchas
|
||||
|
||||
- it seems to work much better on debian-based distribution
|
||||
- In order to suspend computing when the computer is in use, the `boinc` user should have access to your X session so that mouse and keyboard input can be communicated to the client:
|
||||
|
||||
```sh
|
||||
xhost +SI:localuser:boinc
|
||||
```
|
||||
|
||||
## Further readings
|
||||
|
||||
- [BOINC Manager]
|
||||
- [boinccmd]
|
||||
- [boinctui]
|
||||
- [boinccmd] for the bare CLI utility
|
||||
- [boinctui] for a TUI manager
|
||||
- [GUI RPC bind to port 31416 failed: 98]
|
||||
|
||||
<!-- internal references -->
|
||||
@@ -83,3 +134,11 @@ Oct 09 23:09:40 hostnameHere boinc[1709]: 09-Oct-2022 23:09:40 [---] OpenCL: AMD
|
||||
[radeon™ software for linux® installation]: https://amdgpu-install.readthedocs.io/en/latest/
|
||||
|
||||
[gui rpc bind to port 31416 failed: 98]: https://boinc.mundayweb.com/wiki/index.php?title=GUI_RPC_bind_to_port_31416_failed:_98
|
||||
|
||||
<!-- FIXME -->
|
||||
|
||||
[boinc on arch wiki]: https://wiki.archlinux.org/title/BOINC
|
||||
[client configuration]: https://boinc.berkeley.edu/wiki/Client_configuration
|
||||
[controlling boinc remotely]: https://boinc.berkeley.edu/wiki/Controlling_BOINC_remotely
|
||||
[installing or uninstalling the amdgpu stack]: https://amdgpu-install.readthedocs.io/en/latest/install-installing.html
|
||||
[linux suspend when computer is in use bug]: https://boinc.berkeley.edu/dev/forum_thread.php?id=14019&postid=101146#101146
|
||||
|
||||
Reference in New Issue
Block a user