Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jul 2017 10:56:44 -0500
From:      Steven Nikkel <steven_nikkel@ertyu.org>
To:        Jan Beich <jbeich@FreeBSD.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: OpenCL Issues
Message-ID:  <c4d689ba-654e-205f-6a39-097bdea5ab50@ertyu.org>
In-Reply-To: <8tjn-v9jp-wny@FreeBSD.org>
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> <8tjn-v9jp-wny@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2017-07-17 1:53 AM, Jan Beich wrote:
> 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.
> 
> What does clinfo show? Is cl_amd_media_ops listed in among extensions?
> Can you try building against LLVM 3.9 (MESA_LLVM_VER=39) or LLVM 5.0
> (MESA_LLVM_VER=-devel) via lang/beignet/Makefile.local? Can you post
> a link to the source, assuming it's an open project?
> 
> I can't reproduce and not familar enough with OpenCL to guess. Maybe bisect.
> 

The cl_amd_media_ops extension isn't listed in clinfo for the working or 
non working beignet case.

This is the specific source generating that error:
https://github.com/dcti/dnetc-client-base/blob/master/rc5-72/opencl/rc5-4pipe.cl

The overall source isn't currently setup to build in FreeBSD, that is 
what I'm working on.

I noticed it's wrapped in a test to check for the extension before using 
it. Not sure if that is the correct way or not.

Tried building patched beignet with LLVM 3.9, different error message, 
fails an internal consistency check in the code.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c4d689ba-654e-205f-6a39-097bdea5ab50>