Should be fixed in eb1182a.

Andreas

Sean Lynch <[email protected]> writes:

> There is something very strange going on, because I cannot see any
> difference between how create_from_gl_buffer and create_from_gl_texture are
> declared, and yet:
>
> seanl@michiru ~/project/voxel (git)-[master] % python noisetest.py
>
>
> Traceback (most recent call last):
>   File "noisetest.py", line 8, in <module>
>     import pyopencl as cl
>   File
> "/home/seanl/project/voxel/pyenv/lib/python3.5/site-packages/pyopencl-2015.2.4-py3.5-linux-x86_64.egg/pyopencl/__init__.py",
> line 35, in <module>
>     import pyopencl.cffi_cl as _cl
>   File
> "/home/seanl/project/voxel/pyenv/lib/python3.5/site-packages/pyopencl-2015.2.4-py3.5-linux-x86_64.egg/pyopencl/cffi_cl.py",
> line 36, in <module>
>     from pyopencl._cffi import ffi as _ffi
> ImportError:
> /home/seanl/project/voxel/pyenv/lib/python3.5/site-packages/pyopencl-2015.2.4-py3.5-linux-x86_64.egg/pyopencl/_
> cffi.cpython-35m-x86_64-linux-gnu.so: undefined symbol:
> create_from_gl_texture
>
> From nm on the module:
>
> 0000000000044f30 T create_from_gl_buffer
> 00000000000453f0 T create_from_gl_renderbuffer
>                  U create_from_gl_texture
> 0000000000041970 T create_image_2d
> 00000000000423a0 T create_image_3d
>
> There is, however, a mangled version of create_from_gl_texture, and NOT for
> create_from_gl_buffer:
>
> 0000000000044a00 T _Z22create_from_gl_texturePP6clbaseS0_mjij
>
>
>
> On Mon, Mar 28, 2016 at 10:16 AM, Sean Lynch <[email protected]> wrote:
>
>> Fantastic. I'll try it out after I put the kids to bed tonight (California
>> time). And I'm happy to contribute tests.
>>
>> On Mon, Mar 28, 2016 at 10:10 AM, Andreas Kloeckner <
>> [email protected]> wrote:
>>
>>> Sean Lynch <[email protected]> writes:
>>>
>>> > Beignet doesn't support clCreateFromGLBuffer, but it does support
>>> > clCreateFromGLTexture. PyOpenCL supports clCreateFromGLBuffer, but I get
>>> > NotImplementedError for GLTexture. Does anyone know what needs to be
>>> done
>>> > to make GLTexture work?
>>>
>>> I've made a preliminary implementation:
>>>
>>> https://github.com/pyopencl/pyopencl/commit/de58fbc6dac05428883e64e04dbf80268a30d0e9
>>>
>>> Could you please submit some code that can be used to test it? (ideally
>>> as a patch/PR to the test suite)
>>>
>>> Thanks!
>>> Andreas
>>>
>>
>>


_______________________________________________
PyOpenCL mailing list
[email protected]
https://lists.tiker.net/listinfo/pyopencl

Reply via email to