Bug#921890: clblas: error: variables in the local address space can only be declared in the outermost scope of a kernel function

Rebecca N. Palmer rebecca_palmer at zoho.com
Sat Feb 9 21:45:21 GMT 2019


Package: clblas
Version: 2.12-1
Control: tags -1 patch upstream
(upstream tag based on checking the source, not testing)

Some clblas operations fail on beignet-opencl-icd with

stringInput.cl:179:24: error: variables in the local address space can 
only be declared in the outermost scope of a kernel function

Checking the source confirms that they are declaring __local variables 
in an inner scope, which is not allowed by the OpenCL standard: 
https://www.khronos.org/registry/OpenCL/sdk/2.1/docs/man/xhtml/local.html

This affects example_chpmv, example_snrm2, example_sspmv, example_stpmv, 
example_stpsv, example_strmv, example_strsv.

The attached patch makes the examples run, but has *not* been tested 
beyond them (which I suspect don't check correctness): the test suite 
fails to build with what looks like 
https://github.com/clMathLibraries/clBLAS/issues/338.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: toplevel-locals.patch
Type: text/x-diff
Size: 19556 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20190209/127e8925/attachment-0001.patch>


More information about the debian-science-maintainers mailing list