(Solved) ERROR:126: Bad platformId size. AMD RX 5500M

It seems that a lot of GPU problems revolve around specific versions of drivers. Though AMD has their own support structure, you can often learn from information reported by others who fold.

Moderators: Site Moderators, FAHC Science Team

Post Reply
Juanro49
Posts: 16
Joined: Wed Mar 18, 2020 8:10 pm
Contact:

(Solved) ERROR:126: Bad platformId size. AMD RX 5500M

Post by Juanro49 »

Hi, I have a problem with assigned projects to my GPU, I always have the error ERROR:126: Bad platformId size.
GPU: AMD RX 5500M
Driver: amdgpu and Mesa 20
OS: SparkyLinux

System Info:
Image

Error log:

Code: Select all

20:20:25:WU02:FS00:Connecting to 128.252.203.10:80
20:20:57:WU02:FS00:Upload 100.00%
20:21:01:WU00:FS00:Downloading 4.53MiB
20:21:07:WU00:FS00:Download 2.76%
20:21:15:WU00:FS00:Download 5.52%
20:21:25:WU00:FS00:Download 6.90%
20:21:33:WU00:FS00:Download 9.66%
20:21:41:WU00:FS00:Download 11.04%
20:21:48:WU00:FS00:Download 13.81%
20:21:49:WU02:FS00:Upload complete
20:21:49:WU02:FS00:Server responded WORK_ACK (400)
20:21:49:WU02:FS00:Cleaning up
20:21:55:WU00:FS00:Download 16.57%
20:22:03:WU00:FS00:Download 19.33%
20:22:11:WU00:FS00:Download 20.71%
20:22:19:WU00:FS00:Download 23.47%
20:22:28:WU00:FS00:Download 24.85%
20:22:38:WU00:FS00:Download 27.61%
20:22:45:WU00:FS00:Download 30.37%
20:22:53:WU00:FS00:Download 31.75%
20:22:59:WU00:FS00:Download 34.51%
20:23:06:WU00:FS00:Download 37.28%
20:23:16:WU00:FS00:Download 40.04%
20:23:25:WU00:FS00:Download 42.80%
20:23:39:WU00:FS00:Download 45.56%
20:23:50:WU00:FS00:Download 48.32%
20:24:02:WU00:FS00:Download 51.08%
20:24:10:WU00:FS00:Download 53.84%
20:24:21:WU00:FS00:Download 56.60%
20:24:30:WU00:FS00:Download 59.37%
20:24:38:WU00:FS00:Download 62.13%
20:24:47:WU00:FS00:Download 63.51%
20:24:56:WU00:FS00:Download 66.27%
20:25:06:WU00:FS00:Download 69.03%
20:25:14:WU00:FS00:Download 71.79%
20:25:22:WU00:FS00:Download 74.55%
20:25:29:WU00:FS00:Download 75.93%
20:25:33:WU01:FS01:0xa7:Completed 30000 out of 125000 steps (24%)
20:25:37:WU00:FS00:Download 78.69%
20:25:45:WU00:FS00:Download 81.46%
20:25:51:WU00:FS00:Download 82.84%
20:26:00:WU00:FS00:Download 84.22%
20:26:08:WU00:FS00:Download 88.36%
20:26:15:WU00:FS00:Download 89.74%
20:26:29:WU00:FS00:Download 91.12%
20:26:36:WU00:FS00:Download 93.88%
20:26:43:WU00:FS00:Download 96.64%
20:26:49:WU00:FS00:Download 98.02%
20:26:55:WU00:FS00:Download 100.00%
20:26:55:WU00:FS00:Download complete
20:26:55:WU00:FS00:Received Unit: id:00 state:DOWNLOAD error:NO_ERROR project:11742 run:0 clone:3070 gen:5 core:0x22 unit:0x000000098ca304f15e69a0a7f5ee9f62
20:26:55:WU00:FS00:Starting
20:26:55:WU00:FS00:Running FahCore: /usr/bin/FAHCoreWrapper /home/juanro/cores/cores.foldingathome.org/v7/lin/64bit/Core_22.fah/FahCore_22 -dir 00 -suffix 01 -version 705 -lifeline 11515 -checkpoint 5 -gpu-vendor amd -opencl-platform 0 -opencl-device 0 -gpu 0
20:26:55:WU00:FS00:Started FahCore on PID 13711
20:26:55:WU00:FS00:Core PID:13715
20:26:55:WU00:FS00:FahCore 0x22 started
20:26:55:WU00:FS00:0x22:*********************** Log Started 2020-03-18T20:26:55Z ***********************
20:26:55:WU00:FS00:0x22:*************************** Core22 Folding@home Core ***************************
20:26:55:WU00:FS00:0x22:       Type: 0x22
20:26:55:WU00:FS00:0x22:       Core: Core22
20:26:55:WU00:FS00:0x22:    Website: https://foldingathome.org/
20:26:55:WU00:FS00:0x22:  Copyright: (c) 2009-2018 foldingathome.org
20:26:55:WU00:FS00:0x22:     Author: John Chodera <john.chodera@choderalab.org> and Rafal Wiewiora
20:26:55:WU00:FS00:0x22:             <rafal.wiewiora@choderalab.org>
20:26:55:WU00:FS00:0x22:       Args: -dir 00 -suffix 01 -version 705 -lifeline 13711 -checkpoint 5
20:26:55:WU00:FS00:0x22:             -gpu-vendor amd -opencl-platform 0 -opencl-device 0 -gpu 0
20:26:55:WU00:FS00:0x22:     Config: <none>
20:26:55:WU00:FS00:0x22:************************************ Build *************************************
20:26:55:WU00:FS00:0x22:    Version: 0.0.2
20:26:55:WU00:FS00:0x22:       Date: Dec 6 2019
20:26:55:WU00:FS00:0x22:       Time: 21:20:17
20:26:55:WU00:FS00:0x22: Repository: Git
20:26:55:WU00:FS00:0x22:   Revision: f87d92b58abdf7e6bf2e173cfbc4dc3e837c7042
20:26:55:WU00:FS00:0x22:     Branch: core22
20:26:55:WU00:FS00:0x22:   Compiler: GNU 4.8.2 20140120 (Red Hat 4.8.2-15)
20:26:55:WU00:FS00:0x22:    Options: -std=gnu++98 -O3 -funroll-loops
20:26:55:WU00:FS00:0x22:   Platform: linux2 4.9.87-linuxkit-aufs
20:26:55:WU00:FS00:0x22:       Bits: 64
20:26:55:WU00:FS00:0x22:       Mode: Release
20:26:55:WU00:FS00:0x22:************************************ System ************************************
20:26:55:WU00:FS00:0x22:        CPU: AMD Ryzen 7 3750H with Radeon Vega Mobile Gfx
20:26:55:WU00:FS00:0x22:     CPU ID: AuthenticAMD Family 23 Model 24 Stepping 1
20:26:55:WU00:FS00:0x22:       CPUs: 8
20:26:55:WU00:FS00:0x22:     Memory: 13.65GiB
20:26:55:WU00:FS00:0x22:Free Memory: 8.43GiB
20:26:55:WU00:FS00:0x22:    Threads: POSIX_THREADS
20:26:55:WU00:FS00:0x22: OS Version: 5.5
20:26:55:WU00:FS00:0x22:Has Battery: true
20:26:55:WU00:FS00:0x22: On Battery: false
20:26:55:WU00:FS00:0x22: UTC Offset: 1
20:26:55:WU00:FS00:0x22:        PID: 13715
20:26:55:WU00:FS00:0x22:        CWD: /home/juanro/work
20:26:55:WU00:FS00:0x22:         OS: Linux 5.5.9-sparky-amd64 x86_64
20:26:55:WU00:FS00:0x22:    OS Arch: AMD64
20:26:55:WU00:FS00:0x22:********************************************************************************
20:26:55:WU00:FS00:0x22:Project: 11742 (Run 0, Clone 3070, Gen 5)
20:26:55:WU00:FS00:0x22:Unit: 0x000000098ca304f15e69a0a7f5ee9f62
20:26:55:WU00:FS00:0x22:Reading tar file core.xml
20:26:55:WU00:FS00:0x22:Reading tar file integrator.xml
20:26:55:WU00:FS00:0x22:Reading tar file state.xml
20:26:56:WU00:FS00:0x22:Reading tar file system.xml
20:26:56:WU00:FS00:0x22:Digital signatures verified
20:26:56:WU00:FS00:0x22:Folding@home GPU Core22 Folding@home Core
20:26:56:WU00:FS00:0x22:Version 0.0.2
20:26:56:WU00:FS00:0x22:ERROR:126: Bad platformId size.
20:26:56:WU00:FS00:0x22:Saving result file ../logfile_01.txt
20:26:56:WU00:FS00:0x22:Saving result file science.log
20:26:56:WU00:FS00:0x22:Folding@home Core Shutdown: BAD_WORK_UNIT
[93m20:26:56:WARNING:WU00:FS00:FahCore returned: BAD_WORK_UNIT (114 = 0x72)[0m
20:26:56:WU00:FS00:Sending unit results: id:00 state:SEND error:FAULTY project:11742 run:0 clone:3070 gen:5 core:0x22 unit:0x000000098ca304f15e69a0a7f5ee9f62
20:26:56:WU00:FS00:Uploading 2.27KiB to 140.163.4.241
Last edited by Juanro49 on Sat Mar 28, 2020 8:03 pm, edited 1 time in total.
Consulta como ver TV y leer noticias desde tu movil en una sola app con FeedTV.
Apoya la investigación desde esta imagen Image
_r2w_ben
Posts: 285
Joined: Wed Apr 23, 2008 3:11 pm

Re: ERROR:126: Bad platformId size. AMD RX 5500M

Post by _r2w_ben »

Since you have a Ryzen with graphics and a dedicated 5500M GPU, it's likely that the core is ending up running on the wrong OpenCL device. You'll probably need to experiment with gpu-index and opencl-index in the advanced config to find the correct combination.
It's currently trying gpu-index = 0 and opencl-index = 0 (values of -1 are equivalent to 0).
Try gpu-index = 0 and opencl-index = 1.
Juanro49
Posts: 16
Joined: Wed Mar 18, 2020 8:10 pm
Contact:

Re: ERROR:126: Bad platformId size. AMD RX 5500M

Post by Juanro49 »

_r2w_ben wrote:Since you have a Ryzen with graphics and a dedicated 5500M GPU, it's likely that the core is ending up running on the wrong OpenCL device. You'll probably need to experiment with gpu-index and opencl-index in the advanced config to find the correct combination.
It's currently trying gpu-index = 0 and opencl-index = 0 (values of -1 are equivalent to 0).
Try gpu-index = 0 and opencl-index = 1.
I try with opencl-index = 1 and gpu-index = 0 y gpu-index = 1 but now I have this error

Code: Select all

19:52:28:WU02:FS00:Download complete
19:52:28:WU02:FS00:Received Unit: id:02 state:DOWNLOAD error:NO_ERROR project:11760 run:0 clone:7485 gen:3 core:0x22 unit:0x0000000680fccb0a5e6f0e45e6f51e14
19:52:28:WU02:FS00:Starting
19:52:28:WU02:FS00:Running FahCore: /usr/bin/FAHCoreWrapper /home/juanro/cores/cores.foldingathome.org/v7/lin/64bit/Core_22.fah/FahCore_22 -dir 02 -suffix 01 -version 705 -lifeline 25223 -checkpoint 5 -gpu-vendor amd -opencl-platform 0 -opencl-device 1 -gpu 1
19:52:28:WU02:FS00:Started FahCore on PID 26198
19:52:28:WU02:FS00:Core PID:26202
19:52:28:WU02:FS00:FahCore 0x22 started
19:52:29:WARNING:WU02:FS00:FahCore returned: BAD_WORK_UNIT (114 = 0x72)
19:52:29:WU02:FS00:Sending unit results: id:02 state:SEND error:FAULTY project:11760 run:0 clone:7485 gen:3 core:0x22 unit:0x0000000680fccb0a5e6f0e45e6f51e14
19:52:29:WU02:FS00:Uploading 7.50KiB to 128.252.203.10
Can I change opencl-platform from 0 to 1? what is the parameter?

Thanks
Consulta como ver TV y leer noticias desde tu movil en una sola app con FeedTV.
Apoya la investigación desde esta imagen Image
_r2w_ben
Posts: 285
Joined: Wed Apr 23, 2008 3:11 pm

Re: ERROR:126: Bad platformId size. AMD RX 5500M

Post by _r2w_ben »

Juanro49 wrote:Can I change opencl-platform from 0 to 1? what is the parameter?

Thanks
No, I don't think so. Near the bottom of the System Info tab, you can see that both entries have platform of 0.

I think you might need different drivers or permission changes. I'm not familiar with GPU folding on Linux but these threads might help:
viewtopic.php?f=81&t=31293&start=15
viewtopic.php?f=81&t=32793
Juanro49
Posts: 16
Joined: Wed Mar 18, 2020 8:10 pm
Contact:

Re: ERROR:126: Bad platformId size. AMD RX 5500M

Post by Juanro49 »

_r2w_ben wrote:
Juanro49 wrote:Can I change opencl-platform from 0 to 1? what is the parameter?

Thanks
No, I don't think so. Near the bottom of the System Info tab, you can see that both entries have platform of 0.

I think you might need different drivers or permission changes. I'm not familiar with GPU folding on Linux but these threads might help:
viewtopic.php?f=81&t=31293&start=15
viewtopic.php?f=81&t=32793
I have followed this guide to install OpenCL from the proprietary drivers and now it is well recognized (also changing the user from fahclient to root in /etc/init.d/FAHClient), it seems a problem with the Mesa OpenCL implementation not detecting bus and slot well (both as NA) https://math.dartmouth.edu/~sarunas/amdgpu.html
Image

But now, I have this problem

Code: Select all

23:49:28:WU00:FS00:0x22:Project: 11778 (Run 0, Clone 6346, Gen 2)
23:49:28:WU00:FS00:0x22:Unit: 0x00000004287234c95e74326e0a20be71
23:49:28:WU00:FS00:0x22:Reading tar file core.xml
23:49:28:WU00:FS00:0x22:Reading tar file integrator.xml
23:49:28:WU00:FS00:0x22:Reading tar file state.xml
23:49:28:WU00:FS00:0x22:Reading tar file system.xml
23:49:28:WU00:FS00:0x22:Digital signatures verified
23:49:28:WU00:FS00:0x22:Folding@home GPU Core22 Folding@home Core
23:49:28:WU00:FS00:0x22:Version 0.0.2
23:49:41:WU00:FS00:0x22:Completed 0 out of 2000000 steps (0%)
23:49:41:WU00:FS00:0x22:Temperature control disabled. Requirements: single Nvidia GPU, tmax must be < 110 and twait >= 900
23:49:56:WU00:FS00:0x22:Bad State detected... attempting to resume from last good checkpoint. Is your system overclocked?
23:49:56:WU00:FS00:0x22:Following exception occured: Particle coordinate is nan
23:50:05:WU00:FS00:0x22:Bad State detected... attempting to resume from last good checkpoint. Is your system overclocked?
23:50:05:WU00:FS00:0x22:Following exception occured: Particle coordinate is nan
23:50:13:WU00:FS00:0x22:Bad State detected... attempting to resume from last good checkpoint. Is your system overclocked?
23:50:13:WU00:FS00:0x22:Following exception occured: Particle coordinate is nan
23:50:13:WU00:FS00:0x22:ERROR:114: Max Retries Reached
23:50:13:WU00:FS00:0x22:Saving result file ../logfile_01.txt
23:50:13:WU00:FS00:0x22:Saving result file badstate-0.xml
23:50:13:WU00:FS00:0x22:Saving result file badstate-1.xml
23:50:13:WU00:FS00:0x22:Saving result file badstate-2.xml
23:50:13:WU00:FS00:0x22:Saving result file checkpt.crc
23:50:13:WU00:FS00:0x22:Saving result file science.log
23:50:13:WU00:FS00:0x22:Folding@home Core Shutdown: BAD_WORK_UNIT
23:50:14:WARNING:WU00:FS00:FahCore returned: BAD_WORK_UNIT (114 = 0x72)
23:50:14:WU00:FS00:Sending unit results: id:00 state:SEND error:FAULTY project:11778 run:0 clone:6346 gen:2 core:0x22 unit:0x00000004287234c95e74326e0a20be71
Consulta como ver TV y leer noticias desde tu movil en una sola app con FeedTV.
Apoya la investigación desde esta imagen Image
Juanro49
Posts: 16
Joined: Wed Mar 18, 2020 8:10 pm
Contact:

Re: ERROR:126: Bad platformId size. AMD RX 5500M

Post by Juanro49 »

I had to uninstall the OpenCL implementation of amdgpu-pro because when I restarted Xorg it did not start because it did not detect the OpenGL configuration. Because of this, the priority is to know why the OpenCL implementation of Mesa does not work properly detecting Bus: NA Slot: NA in FAHClient System Info. This is inxi info before install and after install amdgpu-pro OpenCL implementation:

Image

https://gist.github.com/tuxutku/79daa2e ... b650cdbe0a
Consulta como ver TV y leer noticias desde tu movil en una sola app con FeedTV.
Apoya la investigación desde esta imagen Image
Juanro49
Posts: 16
Joined: Wed Mar 18, 2020 8:10 pm
Contact:

Re: ERROR:126: Bad platformId size. AMD RX 5500M

Post by Juanro49 »

solved with viewtopic.php?f=81&t=33353&p=319562#p319562
Consulta como ver TV y leer noticias desde tu movil en una sola app con FeedTV.
Apoya la investigación desde esta imagen Image
Post Reply