OpenCL Issues

Jan Beich jbeich at FreeBSD.org
Fri Oct 6 22:54:03 UTC 2017


Steven Nikkel <steven_nikkel at ertyu.org> writes:

> On 2017-07-14 6:11 PM, Jan Beich wrote:
>
>> Steven Nikkel <steven_nikkel at ertyu.org> writes:
>>
>>> On 2017-07-14 8:13 AM, Jan Beich wrote:
>>>> See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217635
>>>>
>>>
>>> Thanks, work around from the bug report solves my issue with beignet
>>> and I can successfully use OpenCL on that host.
>>              ^^^^^^^^^^^
>>
>> Awesome! I'd like to update the port to a snapshot to pick up the fix in
>> question upstream, LLVM 4.0 support, more optimizations and catch
>> regressions early. Can you give it a try?
>>
>> https://reviews.freebsd.org/D11377 (see Download Raw Diff)
>>
>
> The update builds and installs. It runs clinfo fine, but I'm getting
> errors in my CL app, looks like it can't find the cl_amd_media_ops
> extension. Not sure where that error comes from as it's fine in the
> 1.3.1 from the existing port.
>
> Error building cl program on device 0
> Error code -11, message: Program build failure
> Build log returned 624 bytes
> Build Log:
> stringInput.cl:56:17: warning: implicit declaration of function
> 'amd_byteal ...
> stringInput.cl:12:19: note: expanded from macro 'SWAP'
> stringInput.cl:56:17: error: function with no prototype cannot use the
> spir ...
> stringInput.cl:12:19: note: expanded from macro 'SWAP'
> stringInput.cl:58:12: warning: implicit declaration of function
> 'amd_bitali ...
> stringInput.cl:11:20: note: expanded from macro 'ROTL'
> stringInput.cl:58:12: error: function with no prototype cannot use the
> spir ...
> stringInput.cl:11:20: note: expanded from macro 'ROTL'

I've updated the port to a release branch snapshot 52 commits after 1.3.1.
It fixed some regressions since 1.3.0 and got LLVM support up to 5.0.

Can you check if your app now works fine or not?


More information about the freebsd-questions mailing list