openCL/AMD APU/Folding@home compatibility issue
Posted: Sat Jun 19, 2021 7:00 pm
I use my Linux Mint 20.1 machine to do folding@home using the Ryzen 3400G APU, using just the CPU. I now want to try using the graphics part as well. This requires openCL. You can only get this from AMD drivers, as openCL is not installed by default. Having found that AMD now have drivers for Ubuntu 20.04 (which Mint 20.1 is based on), I thought i'd give this a shot. So i've installed https://www.amd.com/en/support/kb/relea ... inux-20-40
And sure enough, I now have openCL installed. However, "Number of devices - 0"
Here's where things get really weird. FAHControl can see the graphics chip, but NOT openCL!
I'm currently using kernel 5.8, but have tried 5.4 as well.
Can anyone figure out how I get openCL to see the graphics chip, and FAHControl to see openCL?!
I have posted this in the Linux Mint forum as well.
Code: Select all
/amdgpu-pro-install --opencl=rocr,legacy
Code: Select all
$ clinfo
Number of platforms 1
Platform Name AMD Accelerated Parallel Processing
Platform Vendor Advanced Micro Devices, Inc.
Platform Version OpenCL 2.1 AMD-APP (3180.7)
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd cl_amd_event_callback cl_amd_offline_devices
Platform Host timer resolution 1ns
Platform Extensions function suffix AMD
Platform Name AMD Accelerated Parallel Processing
Number of devices 0
NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) No platform
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) No platform
clCreateContext(NULL, ...) [default] No platform
clCreateContext(NULL, ...) [other] No platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) No devices found in platform
Code: Select all
*********************** Log Started 2021-06-19T15:26:39Z ***********************
15:26:39:******************************* libFAH ********************************
15:26:39: Date: Oct 20 2020
15:26:39: Time: 20:36:39
15:26:39: Revision: 5ca109d295a6245e2a2f590b3d0085ad5e567aeb
15:26:39: Branch: master
15:26:39: Compiler: GNU 8.3.0
15:26:39: Options: -faligned-new -std=c++11 -fsigned-char -ffunction-sections
15:26:39: -fdata-sections -O3 -funroll-loops -fno-pie
15:26:39: Platform: linux2 5.8.0-1-amd64
15:26:39: Bits: 64
15:26:39: Mode: Release
15:26:39:****************************** FAHClient ******************************
15:26:39: Version: 7.6.21
15:26:39: Author: Joseph Coffland <joseph@cauldrondevelopment.com>
15:26:39: Copyright: 2020 foldingathome.org
15:26:39: Homepage: https://foldingathome.org/
15:26:39: Date: Oct 20 2020
15:26:39: Time: 20:39:00
15:26:39: Revision: 6efbf0e138e22d3963e6a291f78dcb9c6422a278
15:26:39: Branch: master
15:26:39: Compiler: GNU 8.3.0
15:26:39: Options: -faligned-new -std=c++11 -fsigned-char -ffunction-sections
15:26:39: -fdata-sections -O3 -funroll-loops -fno-pie
15:26:39: Platform: linux2 5.8.0-1-amd64
15:26:39: Bits: 64
15:26:39: Mode: Release
15:26:39: Args: --child /etc/fahclient/config.xml --run-as fahclient
15:26:39: --pid-file=/var/run/fahclient.pid --daemon
15:26:39: Config: /etc/fahclient/config.xml
15:26:39:******************************** CBang ********************************
15:26:39: Date: Oct 20 2020
15:26:39: Time: 18:37:59
15:26:39: Revision: 7e4ce85225d7eaeb775e87c31740181ca603de60
15:26:39: Branch: master
15:26:39: Compiler: GNU 8.3.0
15:26:39: Options: -faligned-new -std=c++11 -fsigned-char -ffunction-sections
15:26:39: -fdata-sections -O3 -funroll-loops -fno-pie -fPIC
15:26:39: Platform: linux2 5.8.0-1-amd64
15:26:39: Bits: 64
15:26:39: Mode: Release
15:26:39:******************************* System ********************************
15:26:39: CPU: AMD Ryzen 5 3400G with Radeon Vega Graphics
15:26:39: CPU ID: AuthenticAMD Family 23 Model 24 Stepping 1
15:26:39: CPUs: 8
15:26:39: Memory: 13.61GiB
15:26:39:Free Memory: 11.62GiB
15:26:39: Threads: POSIX_THREADS
15:26:39: OS Version: 5.4
15:26:39:Has Battery: false
15:26:39: On Battery: false
15:26:39: UTC Offset: 1
15:26:39: PID: 2311
15:26:39: CWD: /var/lib/fahclient
15:26:39: OS: Linux 5.4.0-74-generic x86_64
15:26:39: OS Arch: AMD64
15:26:39: GPUs: 1
15:26:39: GPU 0: Bus:10 Slot:0 Func:0 AMD:5 raven [Radeon RX Vega gfx902]
15:26:39: CUDA: Not detected: Failed to open dynamic library 'libcuda.so':
15:26:39: libcuda.so: cannot open shared object file: No such file or
15:26:39: directory
15:26:39:***********************************************************************
15:26:39:<config>
15:26:39: <!-- Client Control -->
15:26:39: <fold-anon v='true'/>
15:26:39:
15:26:39: <!-- Folding Slot Configuration -->
15:26:39: <cause v='HIGH_PRIORITY'/>
15:26:39:
15:26:39: <!-- HTTP Server -->
15:26:39: <allow v='198.168.1.33/24'/>
15:26:39:
15:26:39: <!-- Network -->
15:26:39: <proxy v=':8080'/>
15:26:39:
15:26:39: <!-- Remote Command Server -->
15:26:39: <command-allow-no-pass v='192.168.1.33/24'/>
15:26:39: <password v='*****'/>
15:26:39:
15:26:39: <!-- Slot Control -->
15:26:39: <pause-on-start v='true'/>
15:26:39:
15:26:39: <!-- User Information -->
15:26:39: <passkey v='*****'/>
15:26:39: <team v='76140'/>
15:26:39: <user v='Demmers'/>
15:26:39:
15:26:39: <!-- Folding Slots -->
15:26:39: <slot id='0' type='CPU'>
15:26:39: <cpus v='4'/>
15:26:39: <paused v='true'/>
15:26:39: </slot>
15:26:39: <slot id='1' type='GPU'>
15:26:39: <paused v='true'/>
15:26:39: <pci-bus v='10'/>
15:26:39: <pci-slot v='0'/>
15:26:39: </slot>
15:26:39:</config>
15:26:39:Trying to access database...
15:26:39:Successfully acquired database lock
15:26:39:FS00:Initialized folding slot 00: cpu:4
15:26:39:WARNING:FS01:No CUDA or OpenCL 1.2+ support detected for GPU slot 01: gpu:10:0 raven [Radeon RX Vega gfx902]. Disabling.
Code: Select all
$ inxi -Fxrz
System:
Kernel: 5.8.0-55-generic x86_64 bits: 64 compiler: N/A
Desktop: Cinnamon 4.8.6 Distro: Linux Mint 20.1 Ulyssa
base: Ubuntu 20.04 focal
Machine:
Type: Desktop System: Gigabyte product: B450 I AORUS PRO WIFI v: N/A
serial: <filter>
Mobo: Gigabyte model: B450 I AORUS PRO WIFI-CF v: x.x serial: <filter>
UEFI: American Megatrends v: F51 date: 07/29/2020
Battery:
Device-1: hid-34:88:5d:43:de:cb-battery model: Keyboard K380 charge: N/A
status: Discharging
CPU:
Topology: Quad Core model: AMD Ryzen 5 3400G with Radeon Vega Graphics
bits: 64 type: MT MCP arch: Zen+ rev: 1 L2 cache: 2048 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
bogomips: 63882
Speed: 1257 MHz min/max: 1400/4000 MHz Core speeds (MHz): 1: 1257 2: 1257
3: 1257 4: 1258 5: 1258 6: 1257 7: 1258 8: 1257
Graphics:
Device-1: AMD Picasso vendor: Gigabyte driver: amdgpu v: kernel
bus ID: 0a:00.0
Display: x11 server: X.Org 1.20.9 driver: amdgpu,ati
unloaded: fbdev,modesetting,vesa resolution: 1920x1080~60Hz
OpenGL: renderer: AMD RAVEN (DRM 3.38.0 5.8.0-55-generic LLVM 10.0.1)
v: 4.6 Mesa 20.1.5 direct render: Yes
Audio:
Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio driver: snd_hda_intel
v: kernel bus ID: 0a:00.1
Device-2: AMD Family 17h HD Audio vendor: Gigabyte driver: snd_hda_intel
v: kernel bus ID: 0a:00.6
Device-3: Thesycon System & Consulting D10s type: USB
driver: snd-usb-audio bus ID: 1-1:2
Sound Server: ALSA v: k5.8.0-55-generic
Network:
Device-1: Intel Wireless-AC 9260 driver: iwlwifi v: kernel bus ID: 06:00.0
IF: wlp6s0 state: up mac: <filter>
Device-2: Intel I211 Gigabit Network vendor: Gigabyte driver: igb
v: 5.6.0-k port: f000 bus ID: 08:00.0
IF: enp8s0 state: down mac: <filter>
IF-ID-1: wgivpn state: unknown speed: N/A duplex: N/A mac: N/A
Drives:
Local Storage: total: 290.19 GiB used: 80.08 GiB (27.6%)
ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO Plus 250GB
size: 232.89 GiB
ID-2: /dev/sda type: USB vendor: SanDisk model: Ultra Fit size: 57.30 GiB
Partition:
ID-1: / size: 98.40 GiB used: 21.84 GiB (22.2%) fs: ext4
dev: /dev/nvme0n1p2
ID-2: /home size: 124.17 GiB used: 23.89 GiB (19.2%) fs: ext4
dev: /dev/nvme0n1p3
ID-3: swap-1 size: 5.00 GiB used: 0 KiB (0.0%) fs: swap
dev: /dev/nvme0n1p4
Sensors:
System Temperatures: cpu: 38.2 C mobo: 34.0 C gpu: amdgpu temp: 38 C
Fan Speeds (RPM): cpu: 0 fan-2: 0 fan-3: 0
Voltages: 12v: N/A 5v: N/A 3.3v: 1.68 vbat: 1.58
Info:
Processes: 336 Uptime: 4m Memory: 13.61 GiB used: 1.57 GiB (11.5%)
Init: systemd runlevel: 5 Compilers: gcc: 9.3.0 Shell: bash v: 5.0.17
inxi: 3.0.38
I have posted this in the Linux Mint forum as well.