I use my Linux Mint 20.1 machine to do folding@home using the Ryzen 3400G, using just the CPU. I now want to try using the graphics part as well. This requires openCL. 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/release-notes/rn-amdgpu-unified-linux-20-40
/amdgpu-pro-install --opencl=rocr,legacy
And sure enough, I now have openCL installed. However, "Number of devices - 0"
$ 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
Here's where things get really weird. The folding@home control panel (FAHControl) can see the graphics chip, but NOT openCL!
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.
I'm currently using kernel 5.8, but have tried 5.4 as well.
$ 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
Can anyone figure out how I get openCL to see the graphics chip, and FAHControl to see openCL?!
I have already installed ocl-icd-opencl-dev
There is no difference between "clinfo" and "sudo clinfo".
I have already added the fahclient user to the video and render groups
sudo adduser fahclient render
sudo adduser fahclient video
I have already posted this query in the Linux Mint and folding@home forums, so will update here accordingly.