<div dir="ltr">Package: libclc-amdgcn<br>Version: 0.2.0+git20160907-3<br>Severity: grave<br>Justification: renders package unusable<br>Tags: upstream patch<br><br>Hardware information:<br>  - platform: Clover (Mesa)<br>  - device: AMD OLAND (DRM 2.48.0 / 4.9.0-2-amd64, LLVM 3.9.1)<br><br>With the libclc version from testing nearly all OpenCL programs won't run on AMD GPUs.<br><br>For example, tying to compile the following trivial kernel fails in the clBuildProgram step:<br><br>__kernel void square(__global const float* input, __global float* output, const size_t count) {<br>    size_t i = get_global_id(0);<br>    if (i < count) {<br>        output[i] = input[i] * input[i];<br>    }<br>}<br><br>with the following (CL_BUILD_PROGRAM_FAILURE) error:<br><br>./generic/lib/workitem/get_global_id.cl:4:30: in function square void (float addrspace(1)*, float addrspace(1)*, i32): unsupported call to function get_local_size<br><br>Bug has been reported upstream: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=99856">https://bugs.freedesktop.org/show_bug.cgi?id=99856</a><br><br>Applying the attached patch <a href="https://bugs.freedesktop.org/attachment.cgi?id=130136">https://bugs.freedesktop.org/attachment.cgi?id=130136</a> makes the kernel build properly.<br><br>Can you please apply the patch to ensure the upcoming Debian Stretch release will support OpenCL compute on AMD GPUs ?<br><br>Thank you.<div><br></div></div>