Bug#948687: libclc-amdgcn: OpenCL does not work for amdgpu : LLVM Error message

2020-01-12 Thread Olaf Flebbe
Placed a pull request at 
https://salsa.debian.org/opencl-team/libclc/merge_requests/1


Hope this will help you in maintaing.

Best



Bug#948687: Info received (Bug#948687: libclc-amdgcn: OpenCL does not work for amdgpu : LLVM Error message)

2020-01-12 Thread Olaf Flebbe

Ok, found the issue. It is the "hardening" patch present in libclc

The hardening compiler flags are supposed to work on native code only. 
Within the scope of this package is to apply compiler flags to the 
shader bitcode. Obviously it will alter the  layout of the shader 
bitcode, detected by the runtime and resulting in an abort.


Proposing to remove that patch to libclc.



Bug#948687: libclc-amdgcn: OpenCL does not work for amdgpu : LLVM Error message

2020-01-11 Thread Olaf Flebbe
Oops the libclc source is current with respect to current llvm. Problem 
maybe located elsewhere




Bug#948687: libclc-amdgcn: OpenCL does not work for amdgpu : LLVM Error message

2020-01-11 Thread Olaf Flebbe
Package: libclc-amdgcn
Version: 0.2.0+git20190827-2
Severity: important

Running an OpenCL application fails on amdgpu on (for instance Vega (RX470)
cards) with error messages

ac_rtld error: !s->is_rx
LLVM failed to upload shader

The upstream bugtracker seems to suggest that libclc may be outdated:

https://gitlab.freedesktop.org/mesa/mesa/issues/1431




-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.3.0-3-amd64 (SMP w/16 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libclc-amdgcn depends on:
ii  libclang-common-9-dev  1:9.0.1-2
ii  libclc-dev 0.2.0+git20190827-2

libclc-amdgcn recommends no packages.

libclc-amdgcn suggests no packages.

-- no debconf information