intel / beignet

Beignet is an open source implementation of the OpenCL specification - a generic compute oriented API. Here is Beignet Source Code Mirror in github- This is a publish-only repository and all pull requests are ignored. Please follow https://wiki.freedesktop.org/www/Software/Beignet/ for any of your improvements
GNU Lesser General Public License v2.1
95 stars 40 forks source link

clCreateFromGLBuffer not implemented #5

Open torokati44 opened 6 years ago

torokati44 commented 6 years ago

I tried to run the "OpenCL Simple OpenGL Interop" code sample from the NVidia Developer site.

After some minor porting, it worked perfectly - without having the GL_INTEROP macro defined.

If said macro is defined, and CL-GL buffer sharing is actually used, I get this error:

error: Not implemented cl_gl: <...>/beignet/src/cl_mem_gl.c:47: cl_mem_new_gl_buffer: Assertion `0' failed. Aborted (core dumped)

I use Beignet 1.3.2, LLVM 5.0, Mesa 17.4.0, Fedora 27, Linux 4.14.14.

torokati44 commented 6 years ago

I feel like this might never be fixed, based on this: https://www.phoronix.com/scan.php?page=news_item&px=Intel-New-Compute-Runtime

Is this correct?