[Pkg-opencl-devel] Bug#769403: beignet: unhelpful error on trying to call nonexistent OpenCL kernel function

Zhigang Gong zhigang.gong at gmail.com
Fri Nov 14 07:23:11 UTC 2014


Hi,

A temporary fix for this issue is in 1.0.0 now:
commit 39f89175c677653c56e36c08c4510fc972da5358
Author: Zhigang Gong <zhigang.gong at intel.com>
Date:   Fri Nov 14 08:02:57 2014 +0800

    GBE: work around error reporting for unresolved symbols.

And I recommend all beignet users to update to this 1.0.0 which is
much better than previous versions.

On Thu, Nov 13, 2014 at 9:07 PM, Zhigang Gong <zhigang.gong at gmail.com> wrote:
> You are right, it's still in upstream master branch.  Will fix it soon.  Thanks.
>
> On Thu, Nov 13, 2014 at 8:37 PM, Rebecca N. Palmer
> <rebecca_palmer at zoho.com> wrote:
>> Package: beignet
>> Version: 0.9.3~dfsg-2
>> (That version is only in Alioth as yet, but as I haven't touched anything
>> related to this, I suspect the problem is upstream)
>>
>> If an OpenCL kernel attempts to call a non-existent function (e.g.
>> "b[i]=cossss(a[i])", as in the attached), pocl returns a helpful "undefined
>> symbol: cossss" error message, but beignet simply crashes with "Segmentation
>> fault".
>>
>> gdb backtrace:
>>
>> #0  0x00007ffff26b7eb1 in llvm::Function::getIntrinsicID() const ()
>>    from /usr/lib/beignet//libgbe.so
>> No symbol table info available.
>> #1  0x00007ffff18419e2 in ?? () from /usr/lib/beignet//libgbe.so
>> No symbol table info available.
>> #2  0x00007ffff2702c07 in
>> llvm::FPPassManager::runOnFunction(llvm::Function&)
>>     () from /usr/lib/beignet//libgbe.so
>> No symbol table info available.
>> #3  0x00007ffff250b433 in ?? () from /usr/lib/beignet//libgbe.so
>> No symbol table info available.
>> #4  0x00007ffff2705649 in llvm::legacy::PassManagerImpl::run(llvm::Module&)
>> ()
>>    from /usr/lib/beignet//libgbe.so
>> No symbol table info available.
>> #5  0x00007ffff18446a9 in ?? () from /usr/lib/beignet//libgbe.so
>> No symbol table info available.
>> #6  0x00007ffff17eeb02 in ?? () from /usr/lib/beignet//libgbe.so
>> No symbol table info available.
>> #7  0x00007ffff18a5f10 in ?? () from /usr/lib/beignet//libgbe.so
>> No symbol table info available.
>> #8  0x00007ffff17f325b in ?? () from /usr/lib/beignet//libgbe.so
>> No symbol table info available.
>> #9  0x00007ffff5a0386d in ?? () from /usr/lib/beignet/libcl.so
>> No symbol table info available.
>> ---Type <return> to continue, or q <return> to quit---
>> #10 0x00007ffff59fbdf5 in clBuildProgram () from /usr/lib/beignet/libcl.so
>> No symbol table info available.
>>



More information about the Pkg-opencl-devel mailing list