Ubuntu 22.04 LTS failed GPU folding [SOLVED]

Moderators: Site Moderators, FAHC Science Team

Post Reply
tato
Posts: 3
Joined: Tue Aug 23, 2022 6:17 am

Ubuntu 22.04 LTS failed GPU folding [SOLVED]

Post by tato »

My AMD Radeon RX560 stopped folding after I upgraded to Ubuntu 22.04 LTS from 20.04 LTS. The driver is proprietary version 22.20 installed using:

Code: Select all

sudo amdgpu-install --no-32 --usecase=workstation --accept-eula --vulkan=pro --opencl=rocr,legacy --no-dkms
Here is a sample log file:

Code: Select all

06:09:30:FS01:Unpaused
06:09:33:WU00:FS01:Connecting to assign1.foldingathome.org:80
06:09:34:WU00:FS01:Assigned to work server 128.252.203.11
06:09:34:WU00:FS01:Requesting new work unit for slot 01: gpu:1:0 Baffin [Polaris11] from 128.252.203.11
06:09:34:WU00:FS01:Connecting to 128.252.203.11:8080
06:09:44:WU00:FS01:Downloading 26.51MiB
06:09:50:WU00:FS01:Download 23.11%
06:09:56:WU00:FS01:Download 51.17%
06:10:02:WU00:FS01:Download 80.88%
06:10:06:WU00:FS01:Download complete
06:10:06:WU00:FS01:Received Unit: id:00 state:DOWNLOAD error:NO_ERROR project:18202 run:6772 clone:1 gen:37 core:0x22 unit:0x00000001000000250000471a00001a74
06:10:06:WU00:FS01:Starting
06:10:06:WU00:FS01:Running FahCore: /usr/bin/FAHCoreWrapper /var/lib/fahclient/cores/cores.foldingathome.org/lin/64bit/22-0.0.20/Core_22.fah/FahCore_22 -dir 00 -suffix 01 -version 706 -lifeline 34975 -checkpoint 15 -opencl-platform 1 -opencl-device 0 -gpu-vendor amd -gpu 0 -gpu-usage 100
06:10:06:WU00:FS01:Started FahCore on PID 132048
06:10:06:WU00:FS01:Core PID:132052
06:10:06:WU00:FS01:FahCore 0x22 started
06:10:07:WU00:FS01:0x22:*********************** Log Started 2022-08-23T06:10:06Z ***********************
06:10:07:WU00:FS01:0x22:*************************** Core22 Folding@home Core ***************************
06:10:07:WU00:FS01:0x22:       Core: Core22
06:10:07:WU00:FS01:0x22:       Type: 0x22
06:10:07:WU00:FS01:0x22:    Version: 0.0.20
06:10:07:WU00:FS01:0x22:     Author: Joseph Coffland <joseph@cauldrondevelopment.com>
06:10:07:WU00:FS01:0x22:  Copyright: 2020 foldingathome.org
06:10:07:WU00:FS01:0x22:   Homepage: https://foldingathome.org/
06:10:07:WU00:FS01:0x22:       Date: Jan 20 2022
06:10:07:WU00:FS01:0x22:       Time: 00:57:52
06:10:07:WU00:FS01:0x22:   Revision: 3f211b8a4346514edbff34e3cb1c0e0ec951373c
06:10:07:WU00:FS01:0x22:     Branch: HEAD
06:10:07:WU00:FS01:0x22:   Compiler: GNU 9.4.0
06:10:07:WU00:FS01:0x22:    Options: -faligned-new -std=c++11 -fsigned-char -ffunction-sections
06:10:07:WU00:FS01:0x22:             -fdata-sections -O3 -funroll-loops -fno-pie
06:10:07:WU00:FS01:0x22:             -DOPENMM_VERSION="\"7.7.0\""
06:10:07:WU00:FS01:0x22:   Platform: linux 5.11.0-1025-azure
06:10:07:WU00:FS01:0x22:       Bits: 64
06:10:07:WU00:FS01:0x22:       Mode: Release
06:10:07:WU00:FS01:0x22:Maintainers: John Chodera <john.chodera@choderalab.org> and Peter Eastman
06:10:07:WU00:FS01:0x22:             <peastman@stanford.edu>
06:10:07:WU00:FS01:0x22:       Args: -dir 00 -suffix 01 -version 706 -lifeline 132048 -checkpoint 15
06:10:07:WU00:FS01:0x22:             -opencl-platform 1 -opencl-device 0 -gpu-vendor amd -gpu 0
06:10:07:WU00:FS01:0x22:             -gpu-usage 100
06:10:07:WU00:FS01:0x22:************************************ libFAH ************************************
06:10:07:WU00:FS01:0x22:       Date: Jan 20 2022
06:10:07:WU00:FS01:0x22:       Time: 00:57:22
06:10:07:WU00:FS01:0x22:   Revision: 9f4ad694e75c2350d4bb6b8b5b769ba27e483a2f
06:10:07:WU00:FS01:0x22:     Branch: HEAD
06:10:07:WU00:FS01:0x22:   Compiler: GNU 9.4.0
06:10:07:WU00:FS01:0x22:    Options: -faligned-new -std=c++11 -fsigned-char -ffunction-sections
06:10:07:WU00:FS01:0x22:             -fdata-sections -O3 -funroll-loops -fno-pie
06:10:07:WU00:FS01:0x22:   Platform: linux 5.11.0-1025-azure
06:10:07:WU00:FS01:0x22:       Bits: 64
06:10:07:WU00:FS01:0x22:       Mode: Release
06:10:07:WU00:FS01:0x22:************************************ CBang *************************************
06:10:07:WU00:FS01:0x22:       Date: Jan 20 2022
06:10:07:WU00:FS01:0x22:       Time: 00:57:00
06:10:07:WU00:FS01:0x22:   Revision: ab023d155b446906d55b0f6c9a1eedeea04f7a1a
06:10:07:WU00:FS01:0x22:     Branch: HEAD
06:10:07:WU00:FS01:0x22:   Compiler: GNU 9.4.0
06:10:07:WU00:FS01:0x22:    Options: -faligned-new -std=c++11 -fsigned-char -ffunction-sections
06:10:07:WU00:FS01:0x22:             -fdata-sections -O3 -funroll-loops -fno-pie -fPIC
06:10:07:WU00:FS01:0x22:   Platform: linux 5.11.0-1025-azure
06:10:07:WU00:FS01:0x22:       Bits: 64
06:10:07:WU00:FS01:0x22:       Mode: Release
06:10:07:WU00:FS01:0x22:************************************ System ************************************
06:10:07:WU00:FS01:0x22:        CPU: Intel(R) Core(TM) i7-9700F CPU @ 3.00GHz
06:10:07:WU00:FS01:0x22:     CPU ID: GenuineIntel Family 6 Model 158 Stepping 13
06:10:07:WU00:FS01:0x22:       CPUs: 8
06:10:07:WU00:FS01:0x22:     Memory: 15.56GiB
06:10:07:WU00:FS01:0x22:Free Memory: 2.87GiB
06:10:07:WU00:FS01:0x22:    Threads: POSIX_THREADS
06:10:07:WU00:FS01:0x22: OS Version: 5.15
06:10:07:WU00:FS01:0x22:Has Battery: false
06:10:07:WU00:FS01:0x22: On Battery: false
06:10:07:WU00:FS01:0x22: UTC Offset: 7
06:10:07:WU00:FS01:0x22:        PID: 132052
06:10:07:WU00:FS01:0x22:        CWD: /var/lib/fahclient/work
06:10:07:WU00:FS01:0x22:************************************ OpenMM ************************************
06:10:07:WU00:FS01:0x22:    Version: 7.7.0
06:10:07:WU00:FS01:0x22:********************************************************************************
06:10:07:WU00:FS01:0x22:Project: 18202 (Run 6772, Clone 1, Gen 37)
06:10:07:WU00:FS01:0x22:Reading tar file core.xml
06:10:07:WU00:FS01:0x22:Reading tar file integrator.xml
06:10:07:WU00:FS01:0x22:Reading tar file state.xml
06:10:07:WU00:FS01:0x22:Reading tar file system.xml
06:10:07:WU00:FS01:0x22:Digital signatures verified
06:10:07:WU00:FS01:0x22:Folding@home GPU Core22 Folding@home Core
06:10:07:WU00:FS01:0x22:Version 0.0.20
06:10:07:WU00:FS01:0x22:  Checkpoint write interval: 25000 steps (2%) [50 total]
06:10:07:WU00:FS01:0x22:  JSON viewer frame write interval: 12500 steps (1%) [100 total]
06:10:07:WU00:FS01:0x22:  XTC frame write interval: 20000 steps (1.6%) [62 total]
06:10:07:WU00:FS01:0x22:  Global context and integrator variables write interval: disabled
06:10:07:WU00:FS01:0x22:There are 3 platforms available.
06:10:07:WU00:FS01:0x22:Platform 0: Reference
06:10:07:WU00:FS01:0x22:Platform 1: CPU
06:10:07:WU00:FS01:0x22:Platform 2: OpenCL
06:10:07:WU00:FS01:0x22:  opencl-device 0 specified
06:10:12:WU00:FS01:0x22:Attempting to create OpenCL context:
06:10:12:WU00:FS01:0x22:  Configuring platform OpenCL
06:10:12:WU00:FS01:0x22:Failed to create OpenCL context:
06:10:12:WU00:FS01:0x22:Illegal value for OpenCLPlatformIndex: 1
06:10:12:WU00:FS01:0x22:ERROR:125: Failed to create a GPU-enabled OpenMM Context.
06:10:12:WU00:FS01:0x22:Saving result file ../logfile_01.txt
06:10:12:WU00:FS01:0x22:Saving result file science.log
06:10:12:WU00:FS01:0x22:Folding@home Core Shutdown: BAD_WORK_UNIT
06:10:12:WARNING:WU00:FS01:FahCore returned: BAD_WORK_UNIT (114 = 0x72)
06:10:12:WU00:FS01:Sending unit results: id:00 state:SEND error:FAULTY project:18202 run:6772 clone:1 gen:37 core:0x22 unit:0x00000001000000250000471a00001a74
06:10:12:WU00:FS01:Uploading 2.53KiB to 128.252.203.11
06:10:12:WU00:FS01:Connecting to 128.252.203.11:8080
06:10:13:WU00:FS01:Upload complete
06:10:13:WU01:FS01:Connecting to assign1.foldingathome.org:80
06:10:13:WU00:FS01:Server responded WORK_ACK (400)
06:10:13:WU00:FS01:Cleaning up
This happens to all Core22 work units after the upgrade to Ubuntu 22.04 LTS.

Could someone please point me in the right direction to solve this error?

SOLUTION
Put option on the GPU slot:

Code: Select all

extra-core-args = '-opencl-platform 0'
This option passes the argument "-opencl-platform 0" to the Core.
Last edited by tato on Sat Aug 27, 2022 4:37 am, edited 1 time in total.
bollix47
Posts: 2941
Joined: Sun Dec 02, 2007 5:04 am
Location: Canada

Re: Ubuntu 22.04 LTS failed GPU folding

Post by bollix47 »

Welcome to the community-driven support forum tato.

Do you have ocl-icd-dev installed?

Code: Select all

sudo apt install ocl-icd-dev
You may have to reboot after installing the above.

Also, have you looked under Software & Updates > Additional drivers .... it should list a tested driver.
tato
Posts: 3
Joined: Tue Aug 23, 2022 6:17 am

Re: Ubuntu 22.04 LTS failed GPU folding

Post by tato »

bollix47 wrote: Tue Aug 23, 2022 9:24 am Welcome to the community-driven support forum tato.
Thank you for your reply.
Do you have ocl-icd-dev installed?

Code: Select all

sudo apt install ocl-icd-dev
You may have to reboot after installing the above.
Yes, I have it installed before my initial post.
Also, have you looked under Software & Updates > Additional drivers .... it should list a tested driver.
Sorry, I don't get where to find this.

From the log:

Code: Select all

06:10:07:WU00:FS01:0x22:There are 3 platforms available.
06:10:07:WU00:FS01:0x22:Platform 0: Reference
06:10:07:WU00:FS01:0x22:Platform 1: CPU
06:10:07:WU00:FS01:0x22:Platform 2: OpenCL
06:10:07:WU00:FS01:0x22:  opencl-device 0 specified
06:10:12:WU00:FS01:0x22:Attempting to create OpenCL context:
06:10:12:WU00:FS01:0x22:  Configuring platform OpenCL
06:10:12:WU00:FS01:0x22:Failed to create OpenCL context:
06:10:12:WU00:FS01:0x22:Illegal value for OpenCLPlatformIndex: 1
06:10:12:WU00:FS01:0x22:ERROR:125: Failed to create a GPU-enabled OpenMM Context.
Could there be an argument that can be passed to the core to select a specific OpenCL platform?

Should I post in GPU Projects and FahCores instead?
bollix47
Posts: 2941
Joined: Sun Dec 02, 2007 5:04 am
Location: Canada

Re: Ubuntu 22.04 LTS failed GPU folding

Post by bollix47 »

Sorry, I don't get where to find this.
On the bottom left of the screen you should see a series of dots. Clicking on that should bring up a list of software on your system. Look/search for Software & updates and click on it. Look for a tab titled Additional Drivers and click on it. Wait for the information to populate and select the tested drivers version. It takes a while but you should have working drivers after it's finished ... you will probably have to reboot after doing the above.

After searching a little I'm not sure my method will work for AMD.

There are numerous reports of problems:
https://www.google.com/search?q=ubuntu+ ... e&ie=UTF-8

The youtube video may help.
tato
Posts: 3
Joined: Tue Aug 23, 2022 6:17 am

Re: Ubuntu 22.04 LTS failed GPU folding

Post by tato »

I have the latest AMD driver installed from amd.com. FAH recognizes the card and OpenCL.

Code: Select all

04:53:06:******************************* System ********************************
04:53:06:            CPU: Intel(R) Core(TM) i7-9700F CPU @ 3.00GHz
04:53:06:         CPU ID: GenuineIntel Family 6 Model 158 Stepping 13
04:53:06:           CPUs: 8
04:53:06:         Memory: 15.56GiB
04:53:06:    Free Memory: 10.12GiB
04:53:06:        Threads: POSIX_THREADS
04:53:06:     OS Version: 5.15
04:53:06:    Has Battery: false
04:53:06:     On Battery: false
04:53:06:     UTC Offset: 7
04:53:06:            PID: 3516
04:53:06:            CWD: /var/lib/fahclient
04:53:06:             OS: Linux 5.15.0-46-generic x86_64
04:53:06:        OS Arch: AMD64
04:53:06:           GPUs: 1
04:53:06:          GPU 0: Bus:1 Slot:0 Func:0 AMD:5 Baffin [Polaris11]
04:53:06:           CUDA: Not detected: Failed to open dynamic library 'libcuda.so':
04:53:06:                 libcuda.so: cannot open shared object file: No such file or
04:53:06:                 directory
04:53:06:OpenCL Device 0: Platform:0 Device:0 Bus:NA Slot:NA Compute:1.1 Driver:22.0
04:53:06:OpenCL Device 1: Platform:1 Device:0 Bus:1 Slot:0 Compute:2.0 Driver:3380.4
04:53:06:***********************************************************************
It was GPU folding just fine on Ubuntu 20.04.
Post Reply