Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Oct 2017 00:53:58 +0200
From:      Jan Beich <jbeich@FreeBSD.org>
To:        Steven Nikkel <steven_nikkel@ertyu.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: OpenCL Issues
Message-ID:  <o9pj-opkp-wny@FreeBSD.org>
In-Reply-To: <fd9c60a2-aa42-d477-6ca0-a0e02274426d@ertyu.org> (Steven Nikkel's message of "Fri, 14 Jul 2017 19:21:21 -0500")
References:  <b18982c9-54ea-69c2-13d3-b507617cff60@ertyu.org> <y3rr-kvpx-wny@FreeBSD.org> <1b3fafb4-1f41-1ef0-dce5-3c97ccb39570@ertyu.org> <o9sm-hawn-wny@FreeBSD.org> <fd9c60a2-aa42-d477-6ca0-a0e02274426d@ertyu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Steven Nikkel <steven_nikkel@ertyu.org> writes:

> On 2017-07-14 6:11 PM, Jan Beich wrote:
>
>> Steven Nikkel <steven_nikkel@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?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?o9pj-opkp-wny>