[Beignet] Backend visible to other apps?

2013-10-14 Thread Ian Daniher
Hey All!

I have beignet unit tests working, but pyopencl / rust-opencl / etc can't
find the backend.

I'm pretty sure I need to add something to /etc/OpenCL/vendors to make
beignet's presence known, but this doesn't seem to be done automatically
and documentation is spotty.

I'd love any pointers!

Thanks,
--
Ian
___
Beignet mailing list
Beignet@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/beignet


Re: [Beignet] Backend visible to other apps?

2013-10-14 Thread Simon Richter
Hi Ian,

On 14.10.2013 20:22, Ian Daniher wrote:

 I'm pretty sure I need to add something to /etc/OpenCL/vendors to make
 beignet's presence known, but this doesn't seem to be done automatically
 and documentation is spotty.

You need two things: the library needs to be built with ICD support
enabled (for that, you need ICD development headers), and a file in
/etc/OpenCL/vendors needs to point at the library (simply use the full
path as the file contents).

If you use Debian, the packages handle this.

   Simon
___
Beignet mailing list
Beignet@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/beignet


Re: [Beignet] Backend visible to other apps?

2013-10-14 Thread Steven Newbury
On Mon, 2013-10-14 at 20:48 +0200, Simon Richter wrote:
 Hi Ian,
 
 On 14.10.2013 20:22, Ian Daniher wrote:
 
  I'm pretty sure I need to add something to /etc/OpenCL/vendors to make
  beignet's presence known, but this doesn't seem to be done automatically
  and documentation is spotty.
 
 You need two things: the library needs to be built with ICD support
 enabled (for that, you need ICD development headers), and a file in
 /etc/OpenCL/vendors needs to point at the library (simply use the full
 path as the file contents).
 
 If you use Debian, the packages handle this.
 
If you use Gentoo I have a live ebuild which works well and integrates
with the Gentoo OpenCL infrastructure. (for gx86 multilib too;
amd64/x86)  I need to update my public overlay though.  I'll do that and
provide a link if requested.


___
Beignet mailing list
Beignet@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/beignet