[Beignet] Building beignet with OpenCL 2.0 support in distros

Bruno Pagani bruno.n.pagani at gmail.com
Sat Jan 21 13:26:57 UTC 2017


Hi there,

First post here, so first of all thanks for building Beignet and this
1.3 release!

I’m ArchLinux packager for beignet[0], and I’m trying to figure out
how/if I should package Beignet with OpenCL 2.0 support.

From what I understand, compiling with -DENABLE_OPENCL_20=1 just results
in two added files:

/usr/lib/beignet/beignet_20.bc
/usr/lib/beignet/beignet_20.pch

But to get to this result, I had to bypass the check at compilation time
since I’m not compiling on SKL+. However some users might very well be
using SKL+.

So, my question mostly is: outside of the issue stated in the README
about use of `-cl-std=CL1.2`, is there any downside in compiling with
OpenCL 2.0 support, in particular when considering the package will be
used on pre-SKL machines? Especially, why is the build process depending
on the hardware it is build on? This is not a good thing in general for
packaging in distro.

Thanks,
Bruno

[0] https://aur.archlinux.org/packages/beignet

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 520 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/beignet/attachments/20170121/0a0f9661/attachment.sig>


More information about the Beignet mailing list