Issues with Ubuntu and AMD southern island cards

hericks
hericks
Joined: 1 Aug 11
Posts: 5
Credit: 9797556
RAC: 0
Topic 220562

Hi

There was an issue on Ubuntu >18.04 from a recent update that broke southern islands grafic cards running opencl.

Before you throw your card away, fix is there and it works.

https://bugs.launchpad.net/ubuntu/+source/libclc/+bug/1860042?comments=all

jay
jay
Joined: 25 Jan 07
Posts: 99
Credit: 84044023
RAC: 0

HiI think I am having the

Hi

I think I am having the same problem...

The BOINC event log says:

Tue 28 Jan 2020 01:25:08 PM EST |  | OpenCL: AMD/ATI GPU 0: AMD VERDE (DRM 2.50.0, 5.3.0-28-generic, LLVM 9.0.0) (driver version 19.2.1, device version OpenCL 1.1 Mesa 19.2.1, 2048MB, 2048MB available, 512 GFLOPS peak)
Tue 28 Jan 2020 01:25:08 PM EST |  | [libc detection] gathered: 2.27, Ubuntu GLIBC 2.27-3ubuntu1
Tue 28 Jan 2020 01:25:08 PM EST |  | Host name: pc-14
Tue 28 Jan 2020 01:25:08 PM EST |  | Processor: 8 AuthenticAMD AMD FX(tm)-8150 Eight-Core Processor [Family 21 Model 1 Stepping 2]
Tue 28 Jan 2020 01:25:08 PM EST |  | Processor features: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt fma4 nodeid_msr topoext perfctr_core perfctr_nb cpb hw_pstate ssbd ibpb vmmcall arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold
Tue 28 Jan 2020 01:25:08 PM EST |  | OS: Linux Ubuntu: Ubuntu 18.04.3 LTS [5.3.0-28-generic|libc 2.27 (Ubuntu GLIBC 2.27-3ubuntu1)]
Tue 28 Jan 2020 01:25:08 PM EST |  | Memory: 11.62 GB physical, 48.83 GB virtual
Tue 28 Jan 2020 01:25:08 PM EST |  | Disk: 133.57 GB total, 124.81 GB free

the WU status says:  (  https://einsteinathome.org/task/918038566  )

Using OpenCL platform provided by: Mesa Using OpenCL device "AMD VERDE (DRM 2.50.0, 5.3.0-28-generic, LLVM 9.0.0)" by: AMD Max allocation limit: 1503238553 Global mem size: 2147483648 OpenCL device has FP64 support

 

and

ac_rtld error: shdr->sh_size & 3
ELF error: invalid section index

----------------

I will try the patch and post the results.

could you test with a newer mesa from this ppa  https://launchpad.net/~ubuntu-x-swat/+archive/ubuntu/updates

it's got latest bugfix release of the series, 19.2.8, and it's now pending as a distro update as well

Timo Aaltonen (tjaalton) wroteon 2020-01-22: #2

=========================================================

PPa installe and updated.

boinc-client restarted

 

 

still get error.

% Starting semicoherent search over f0 and f1.
% nf1dots: 41  df1dot: 2.512676418e-15  f1dot_start: -1e-13  f1dot_band: 1e-13
% Filling array of photon pairs
ac_rtld error: shdr->sh_size & 3
ELF error: invalid section index

-- signal handler called: signal 1
4 stack frames obtained for this thread:
Frame 14:
Binary file: ../../projects/einstein.phys.uwm.edu/hsgamma_FGRPB1G_1.18_x86_64-pc-linux-gnu__FGRPopencl1K-ati (0x48b101)
Source file: hs_boinc_extras.c (Function: sighandler / Line: 291)
Frame 13:
Binary file: /usr/lib/x86_64-linux-gnu/gallium-pipe/pipe_radeonsi.so (0x7fd64d9d21ab)
Offset info: +0x14a1ab
Frame 12:
Binary file: /usr/lib/x86_64-linux-gnu/gallium-pipe/pipe_radeonsi.so (0x7fd64d9d21ab)
Offset info: +0x14a1ab
Frame 11:
Binary file: /usr/lib/x86_64-linux-gnu/libMesaOpenCL.so.1 (0x7fd653e77fdb)
Offset info: +0x36ffdb
Frame 10:
Binary file: /usr/lib/x86_64-linux-gnu/libMesaOpenCL.so.1 (0x7fd653e78936)
Offset info: +0x370936
Frame 9:
Binary file: /usr/lib/x86_64-linux-gnu/libMesaOpenCL.so.1 (0x7fd653e74677)
Offset info: +0x36c677
Frame 8:
Binary file: /usr/lib/x86_64-linux-gnu/libMesaOpenCL.so.1 (0x7fd653e74eae)
Offset info: +0x36ceae
Frame 7:
Binary file: /usr/lib/x86_64-linux-gnu/libMesaOpenCL.so.1 (0x7fd653e5a8b1)
Offset info: +0x3528b1
Frame 6:
Binary file: ../../projects/einstein.phys.uwm.edu/hsgamma_FGRPB1G_1.18_x86_64-pc-linux-gnu__FGRPopencl1K-ati (0x48fe01)
Offset info: opencl_setup_photon_pairs_array+0x4c1
Source file: unknown (Function: opencl_setup_photon_pairs_array / Line: 0)
Frame 5:
Binary file: ../../projects/einstein.phys.uwm.edu/hsgamma_FGRPB1G_1.18_x86_64-pc-linux-gnu__FGRPopencl1K-ati (0x47480d)
Offset info: setup_photon_pairs_array+0x36d
Source file: HSgammaPulsar.c (Function: setup_photon_pairs_array / Line: 2107)
Frame 4:
Binary file: ../../projects/einstein.phys.uwm.edu/hsgamma_FGRPB1G_1.18_x86_64-pc-linux-gnu__FGRPopencl1K-ati (0x47e28e)
Offset info: MAIN+0x4dee
Source file: HSgammaPulsar.c (Function: MAIN / Line: 4866)
Frame 3:
Binary file: ../../projects/einstein.phys.uwm.edu/hsgamma_FGRPB1G_1.18_x86_64-pc-linux-gnu__FGRPopencl1K-ati (0x46c06f)
Offset info: main+0x5ff
Source file: hs_boinc_extras.c (Function: worker / Line: 833)
Source file: hs_boinc_extras.c (Function: main / Line: 1039)
Frame 2:
Binary file: /lib/x86_64-linux-gnu/libc.so.6 (0x7fd655439b97)
Offset info: __libc_start_main+0xe7
Frame 1:
Binary file: ../../projects/einstein.phys.uwm.edu/hsgamma_FGRPB1G_1.18_x86_64-pc-linux-gnu__FGRPopencl1K-ati (0x46e569)
Source file: unknown (Function: _start / Line: 0)

End of stcaktrace
14:12:22 (5274): called boinc_finish
Warning: Program terminating, but clFFT resources not freed.
Please consider explicitly calling clfftTeardown( ).

</stderr_txt>

 

==================================================

==================================================

Will shutdown completely and try again and repost.

Shutdown and reboot did not solve.

see https://einsteinathome.org/task/918054640

it says:

<core_client_version>7.9.3</core_client_version>
<![CDATA[
<message>
process exited with code 11 (0xb, -245)</message>
<stderr_txt>
14:20:45 (2133): [normal]: This Einstein@home App was built at: Jan 16 2017 08:09:16

14:20:45 (2133): [normal]: Start of BOINC application '../../projects/einstein.phys.uwm.edu/hsgamma_FGRPB1G_1.18_x86_64-pc-linux-gnu__FGRPopencl1K-ati'.
14:20:45 (2133): [debug]: 1e+16 fp, 2.8e+09 fp/s, 3721521 s, 1033h45m21s42
command line: ../../projects/einstein.phys.uwm.edu/hsgamma_FGRPB1G_1.18_x86_64-pc-linux-gnu__FGRPopencl1K-ati --inputfile ../../projects/einstein.phys.uwm.edu/LATeah1062L27.dat --alpha 1.41058464281 --delta -0.444366280137 --skyRadius 5.526880e-07 --ldiBins 30 --f0start 380.0 --f0Band 8.0 --firstSkyPoint 0 --numSkyPoints 1 --f1dot -1e-13 --f1dotBand 1e-13 --df1dot 2.512676418e-15 --ephemdir ../../projects/einstein.phys.uwm.edu/JPLEPH --Tcoh 2097152.0 --toplist 10 --cohFollow 10 --numCells 1 --useWeights 1 --Srefinement 1 --CohSkyRef 1 --cohfullskybox 1 --mmfu 0.1 --reftime 56100 --model 0 --f0orbit 0.005 --mismatch 0.1 --demodbinary 1 --BinaryPointFile ../../projects/einstein.phys.uwm.edu/templates_LATeah1062L27_0388_27030563.dat --debug 1 --device 0 -o LATeah1062L27_388.0_0_0.0_27030563_2_0.out
output files: 'LATeah1062L27_388.0_0_0.0_27030563_2_0.out' '../../projects/einstein.phys.uwm.edu/LATeah1062L27_388.0_0_0.0_27030563_2_0' 'LATeah1062L27_388.0_0_0.0_27030563_2_0.out.cohfu' '../../projects/einstein.phys.uwm.edu/LATeah1062L27_388.0_0_0.0_27030563_2_1'
14:20:45 (2133): [debug]: Flags: X64 SSE SSE2 GNUC X86 GNUX86
14:20:45 (2133): [debug]: glibc version/release: 2.27/stable
14:20:45 (2133): [debug]: Set up communication with graphics process.
boinc_get_opencl_ids returned [0x1dd4e88 , 0x7f0f8808e200]
Using OpenCL platform provided by: Mesa
Using OpenCL device "AMD VERDE (DRM 2.50.0, 5.3.0-28-generic, LLVM 9.0.0)" by: AMD
Max allocation limit: 1503238553
Global mem size: 2147483648
OpenCL device has FP64 support
% Opening inputfile: ../../projects/einstein.phys.uwm.edu/LATeah1062L27.dat
% Total amount of photon times: 8950
% Preparing toplist of length: 10
% Read 1631 binary points
read_checkpoint(): Couldn't open file 'LATeah1062L27_388.0_0_0.0_27030563_2_0.out.cpt': No such file or directory (2)
% fft_size: 16777216 (0x1000000); alloc: 67108872
% Sky point 1/1
% Binary point 1/1631
% Creating FFT plan.
% fft length: 16777216 (0x1000000)
% Scratch buffer size: 136314880
% Starting semicoherent search over f0 and f1.
% nf1dots: 41 df1dot: 2.512676418e-15 f1dot_start: -1e-13 f1dot_band: 1e-13
% Filling array of photon pairs
ac_rtld error: shdr->sh_size & 3
ELF error: invalid section index

-- signal handler called: signal 1
4 stack frames obtained for this thread:
Frame 14:
Binary file: ../../projects/einstein.phys.uwm.edu/hsgamma_FGRPB1G_1.18_x86_64-pc-linux-gnu__FGRPopencl1K-ati (0x48b101)
Source file: hs_boinc_extras.c (Function: sighandler / Line: 291)
Frame 13:
Binary file: /usr/lib/x86_64-linux-gnu/gallium-pipe/pipe_radeonsi.so (0x7f0f806521ab)
Offset info: +0x14a1ab
Frame 12:
Binary file: /usr/lib/x86_64-linux-gnu/gallium-pipe/pipe_radeonsi.so (0x7f0f806521ab)
Offset info: +0x14a1ab
Frame 11:
Binary file: /usr/lib/x86_64-linux-gnu/libMesaOpenCL.so.1 (0x7f0f86af7fdb)
Offset info: +0x36ffdb
Frame 10:
Binary file: /usr/lib/x86_64-linux-gnu/libMesaOpenCL.so.1 (0x7f0f86af8936)
Offset info: +0x370936
Frame 9:
Binary file: /usr/lib/x86_64-linux-gnu/libMesaOpenCL.so.1 (0x7f0f86af4677)
Offset info: +0x36c677
Frame 8:
Binary file: /usr/lib/x86_64-linux-gnu/libMesaOpenCL.so.1 (0x7f0f86af4eae)
Offset info: +0x36ceae
Frame 7:
Binary file: /usr/lib/x86_64-linux-gnu/libMesaOpenCL.so.1 (0x7f0f86ada8b1)
Offset info: +0x3528b1
Frame 6:
Binary file: ../../projects/einstein.phys.uwm.edu/hsgamma_FGRPB1G_1.18_x86_64-pc-linux-gnu__FGRPopencl1K-ati (0x48fe01)
Offset info: opencl_setup_photon_pairs_array+0x4c1
Source file: unknown (Function: opencl_setup_photon_pairs_array / Line: 0)
Frame 5:
Binary file: ../../projects/einstein.phys.uwm.edu/hsgamma_FGRPB1G_1.18_x86_64-pc-linux-gnu__FGRPopencl1K-ati (0x47480d)
Offset info: setup_photon_pairs_array+0x36d
Source file: HSgammaPulsar.c (Function: setup_photon_pairs_array / Line: 2107)
Frame 4:
Binary file: ../../projects/einstein.phys.uwm.edu/hsgamma_FGRPB1G_1.18_x86_64-pc-linux-gnu__FGRPopencl1K-ati (0x47e28e)
Offset info: MAIN+0x4dee
Source file: HSgammaPulsar.c (Function: MAIN / Line: 4866)
Frame 3:
Binary file: ../../projects/einstein.phys.uwm.edu/hsgamma_FGRPB1G_1.18_x86_64-pc-linux-gnu__FGRPopencl1K-ati (0x46c06f)
Offset info: main+0x5ff
Source file: hs_boinc_extras.c (Function: worker / Line: 833)
Source file: hs_boinc_extras.c (Function: main / Line: 1039)
Frame 2:
Binary file: /lib/x86_64-linux-gnu/libc.so.6 (0x7f0f880b9b97)
Offset info: __libc_start_main+0xe7
Frame 1:
Binary file: ../../projects/einstein.phys.uwm.edu/hsgamma_FGRPB1G_1.18_x86_64-pc-linux-gnu__FGRPopencl1K-ati (0x46e569)
Source file: unknown (Function: _start / Line: 0)

End of stcaktrace
14:20:57 (2133): called boinc_finish
Warning: Program terminating, but clFFT resources not freed.
Please consider explicitly calling clfftTeardown( ).

</stderr_txt>

 

 Any Suggestions???

   Delete the shader cache?

 

THANKS in advance!!

 =============================================

PS,

after getting the PPA, these were upgraded...

 

The following packages will be upgraded:
  libegl-mesa0 libegl1-mesa libgbm1 libgl1-mesa-dri libgl1-mesa-dri:i386 libgl1-mesa-glx libgl1-mesa-glx:i386
  libglapi-mesa libglapi-mesa:i386 libglx-mesa0 libglx-mesa0:i386 libwayland-egl1-mesa libxatracker2 mesa-opencl-icd
  mesa-va-drivers mesa-vdpau-drivers
16 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 34.6 MB of archives. After unpacking 69.6 kB will be used.
Do you want to continue? [Y/n/?] y
Get: 1 http://ppa.launchpad.net/ubuntu-x-swat/updates/ubuntu bionic/main amd64 libegl-mesa0 amd64 19.2.8-0ubuntu0~18.04.1~ppa3 [149 kB]
Get: 2 http://ppa.launchpad.net/ubuntu-x-swat/updates/ubuntu bionic/main amd64 libgbm1 amd64 19.2.8-0ubuntu0~18.04.1~ppa3 [80.3 kB]
Get: 3 http://ppa.launchpad.net/ubuntu-x-swat/updates/ubuntu bionic/main i386 libgl1-mesa-dri i386 19.2.8-0ubuntu0~18.04.1~ppa3 [9,488 kB]
Get: 4 http://ppa.launchpad.net/ubuntu-x-swat/updates/ubuntu bionic/main amd64 libgl1-mesa-dri amd64 19.2.8-0ubuntu0~18.04.1~ppa3 [8,865 kB]
Get: 5 http://ppa.launchpad.net/ubuntu-x-swat/updates/ubuntu bionic/main amd64 libglx-mesa0 amd64 19.2.8-0ubuntu0~18.04.1~ppa3 [192 kB]
Get: 6 http://ppa.launchpad.net/ubuntu-x-swat/updates/ubuntu bionic/main i386 libglx-mesa0 i386 19.2.8-0ubuntu0~18.04.1~ppa3 [201 kB]
Get: 7 http://ppa.launchpad.net/ubuntu-x-swat/updates/ubuntu bionic/main i386 libglapi-mesa i386 19.2.8-0ubuntu0~18.04.1~ppa3 [78.9 kB]
Get: 8 http://ppa.launchpad.net/ubuntu-x-swat/updates/ubuntu bionic/main amd64 libglapi-mesa amd64 19.2.8-0ubuntu0~18.04.1~ppa3 [78.7 kB]
Get: 9 http://ppa.launchpad.net/ubuntu-x-swat/updates/ubuntu bionic/main amd64 libegl1-mesa amd64 19.2.8-0ubuntu0~18.04.1~ppa3 [58.9 kB]
Get: 10 http://ppa.launchpad.net/ubuntu-x-swat/updates/ubuntu bionic/main i386 libgl1-mesa-glx i386 19.2.8-0ubuntu0~18.04.1~ppa3 [58.9 kB]
Get: 11 http://ppa.launchpad.net/ubuntu-x-swat/updates/ubuntu bionic/main amd64 libgl1-mesa-glx amd64 19.2.8-0ubuntu0~18.04.1~ppa3 [58.9 kB]
Get: 12 http://ppa.launchpad.net/ubuntu-x-swat/updates/ubuntu bionic/main amd64 libwayland-egl1-mesa amd64 19.2.8-0ubuntu0~18.04.1~ppa3 [58.9 kB]
Get: 13 http://ppa.launchpad.net/ubuntu-x-swat/updates/ubuntu bionic/main amd64 libxatracker2 amd64 19.2.8-0ubuntu0~18.04.1~ppa3 [1,511 kB]
Get: 14 http://ppa.launchpad.net/ubuntu-x-swat/updates/ubuntu bionic/main amd64 mesa-opencl-icd amd64 19.2.8-0ubuntu0~18.04.1~ppa3 [8,968 kB]
Get: 15 http://ppa.launchpad.net/ubuntu-x-swat/updates/ubuntu bionic/main amd64 mesa-va-drivers amd64 19.2.8-0ubuntu0~18.04.1~ppa3 [2,338 kB]            
Get: 16 http://ppa.launchpad.net/ubuntu-x-swat/updates/ubuntu bionic/main amd64 mesa-vdpau-drivers amd64 19.2.8-0ubuntu0~18.04.1~ppa3 [2,458 kB]         
Fetched 34.6 MB in 55s (634 kB/s)                                                                     

 

 

hericks
hericks
Joined: 1 Aug 11
Posts: 5
Credit: 9797556
RAC: 0

Hi,looks like the issue was

Hi,

looks like the issue was specificly related to

ac_rtld error: !s->is_rx

while you get

ac_rtld error: shdr->sh_size & 3

Not sure if it is the same...

you can try to follow https://wiki.ubuntu.com/Testing/EnableProposed

 

jay
jay
Joined: 25 Jan 07
Posts: 99
Credit: 84044023
RAC: 0

Greetings! Thank you for

Greetings!

Thank you for your reply. I had *wished* it would apply.

I did not know about the settings for "EnablingProposed". T H A N K Y O U  !!

I hit a error in the setup. Perhaps you can further teach me...

When I did an update, I get a file-not-found error:

W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/bionic-proposed/restricted/binary-amd64/Packages: 404  Not Found [IP: 91.189.88.150 80]

I have an AMD64 processor. I looked int the URL and did not find AMD64. It did list:

Index of /ubuntu-ports/dists/xenial-proposed/main

[ICO] Name Last modified Size


[PARENTDIR] Parent Directory   -
[DIR] binary-arm64/ 2020-01-29 15:16 -
[DIR] binary-armhf/ 2020-01-29 15:16 -
[DIR] binary-powerpc/ 2020-01-29 15:16 -
[DIR] binary-ppc64el/ 2020-01-29 15:16 -
[DIR] binary-s390x/ 2020-01-29 15:16 -
[DIR] debian-installer/ 2015-12-02 21:22 -
[DIR] dep11/ 2020-01-29 14:53 -
[DIR] dist-upgrader-all/ 2019-11-08 18:48 -
[DIR] i18n/ 2020-01-29 15:08 -
[DIR] installer-arm64/ 2019-04-18 23:16 -
[DIR] installer-armhf/ 2019-04-18 23:16 -
[DIR] installer-powerpc/ 2019-04-18 23:16 -
[DIR] installer-ppc64el/ 2019-04-18 23:16 -
[DIR] installer-s390x/ 2019-04-18 23:16 -
[DIR] signed/ 2019-02-12 09:38 -
[DIR] source/ 2020-01-29 15:16 -
[DIR] uefi/ 2018-03-22 19:08 -


Apache/2.4.18 (Ubuntu) Server at ports.ubuntu.com Port 80


 

I looked in main, restricted, universe, and multiverse. No amd64.

Am I missing something fundamental?
Thanks again, Jay

 

 

hericks
hericks
Joined: 1 Aug 11
Posts: 5
Credit: 9797556
RAC: 0

Hi Jay, I have eoan as dist.

Hi Jay,

I have eoan as dist. I think you have bionic, so you need to change any xenial to bionic,

regarding the piece of software I was talking about, you can check which version is installed with

apt policy libclc*

If it not using the version from proposed you can use

sudo apt install libclc*/bionic-proposed

That would install the patched version that I tested for myself (for eaon) and that helped me.

Cheers

 

 

 

jay
jay
Joined: 25 Jan 07
Posts: 99
Credit: 84044023
RAC: 0

[solved] Added PPA to get to

[solved]

Added PPA to get to mesa 20 build  (which included OCL)

Many THANKS to Paulo Dias !!

 

Note:

=== Revert to original drivers
    (ALWAYS REVERT TO THE ORIGINAL DRIVERS WHEN CHANGING
     BETWEEN PADOKA PPAs OR REMOVING PADOKA ENTIRELY===
To revert to standard Ubuntu drivers type the following in a prompt shell:
$ sudo apt-get install ppa-purge
$ sudo ppa-purge ppa:paulo-miguel-dias/mesa

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.