<div dir="ltr">Upstream patch (2 parts) that may be related (untested):<div><br></div><div><a href="http://lists.llvm.org/pipermail/libclc-dev/2018-March/002851.html">http://lists.llvm.org/pipermail/libclc-dev/2018-March/002851.html</a><br></div><div><br></div><div>Might be worth cherry-picking this patch to see if it helps, or simply picking up latest upstream git.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 9 May 2018 at 20:00, 10dmar10 <span dir="ltr"><<a href="mailto:10dmar10@gmail.com" target="_blank">10dmar10@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Package: libclc-r600<br>
Version: 0.2.0+git20180312-2<br>
Severity: normal<br>
<br>
Hi,<br>
<br>
after recent upgrading I wasn't able to run any OpenCL application anymore.<br>
<br>
Any attempt to compile an OpenCL kernel fails with following error:<br>
fatal error: cannot open file '/usr/lib/clc/juniper-r600--.<wbr>bc': Invalid record<br>
<br>
<br>
file /usr/lib/clc/juniper-r600--.bc<br>
/usr/lib/clc/juniper-r600--.<wbr>bc: symbolic link to cedar-r600--.bc<br>
<br>
file /usr/lib/clc/cedar-r600--.bc<br>
/usr/lib/clc/cedar-r600--.bc: LLVM IR bitcode<br>
<br>
Hardware: <br>
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Juniper XT [Radeon HD 5770]<br>
<br>
clinfo output (other OpenCL programms fail with same error): <br>
<br>
Number of platforms 1<br>
Platform Name Clover<br>
Platform Vendor Mesa<br>
Platform Version OpenCL 1.1 Mesa 17.3.9<br>
Platform Profile FULL_PROFILE<br>
Platform Extensions cl_khr_icd<br>
Platform Extensions function suffix MESA<br>
<br>
Platform Name Clover<br>
Number of devices 1<br>
Device Name AMD JUNIPER (DRM 2.50.0 / 4.16.6, LLVM 5.0.1)<br>
Device Vendor AMD<br>
Device Vendor ID 0x1002<br>
Device Version OpenCL 1.1 Mesa 17.3.9<br>
Driver Version 17.3.9<br>
Device OpenCL C Version OpenCL C 1.1<br>
Device Type GPU<br>
Device Profile FULL_PROFILE<br>
Device Available Yes<br>
Compiler Available Yes<br>
Max compute units 10<br>
Max clock frequency 850MHz<br>
Max work item dimensions 3<br>
Max work item sizes 256x256x256<br>
Max work group size 256<br>
=== CL_PROGRAM_BUILD_LOG ===<br>
fatal error: cannot open file '/usr/lib/clc/juniper-r600--.<wbr>bc': Invalid record<br>
Preferred work group size multiple <getWGsizes:675: build program : error -11><br>
Preferred / native vector sizes<br>
char 16 / 16<br>
short 8 / 8<br>
int 4 / 4<br>
long 2 / 2<br>
half 0 / 0 (n/a)<br>
float 4 / 4<br>
double 0 / 0 (n/a)<br>
<br>
********** REST OMITTED ***********<br>
<br>
<br>
<br>
<br>
-- System Information:<br>
Debian Release: buster/sid<br>
APT prefers testing<br>
APT policy: (990, 'testing')<br>
Architecture: amd64 (x86_64)<br>
<br>
Kernel: Linux 4.16.6 (SMP w/3 CPU cores)<br>
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)<br>
Shell: /bin/sh linked to /bin/dash<br>
Init: systemd (via /run/systemd/system)<br>
<br>
Versions of packages libclc-r600 depends on:<br>
ii libclang-common-6.0-dev 1:6.0-3<br>
ii libclc-dev 0.2.0+git20180312-2<br>
<br>
libclc-r600 recommends no packages.<br>
<br>
libclc-r600 suggests no packages.<br>
<br>
-- no debconf information<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Stuart Young (aka Cefiar)</div>
</div>