...sorry: here is the attachment :)

Erik Zorzin
address: Viale Miramare 235, 34136 Trieste - ITALY
phone: (+39) 3291555703
webpage: http://www.zorzin.com

(sent from my MacBook Air, Erik Zorzin - HOME)

On Wed28 Feb 2018 at 16:29:47, Andreas Kloeckner (lists@informa.tiker.net) wrote:

Hi Erik,

Erik Zorzin - HOME <erik@zorzin.com> writes:
> I am desperate :)
> I am trying to install PyOpenCL on a Linux machine (Manjaro, arch-based) for several days now.
> I have an Nvidia GeForce GT640, I have installed the last drivers, OpenCL, OpenGL, ... everything.
> I have installed PyOpenCL with the --cl_enable_gl flag.
> I have the correct drivers and OpenGL libraries (as far I can see from glxinfo | grep OpenGL).
> My problem is that I cannot run any code involving the GL interop.
> The situation looks very similar to what described here:
> https://lists.tiker.net/pipermail/pyopencl/2017-April/002285.html
> but in my case I had a look the the cffi_cl.py file and it looks in the version I have the bug has been corrected already by the developers.
> Every time I try to get a context this way:
> ...
> ctx = cl.Context(properties=[(cl.context_properties.PLATFORM, platform)] + get_gl_sharing_properties(), devices = [platform.get_devices()[0]])
> ...
> the python script crashes with a "Segmentation fault (core dumped)".
> dmesg gives many errors like:
> ...
> segfault at XXXXXX ip YYYY  sp ZZZZZZZZ error 5 in libGLX_nvidia.so.390.25
> segfault at XXXXXX ip YYYY  sp ZZZZZZZZ error 4 in libGLX_nvidia.so.390.25
> ...

Can you provide a traceback (using gdb, say)?

> However, if I compile and run the interop examples written in C in the Nvidia SDK everything works fine. For this I am sure my environment works.

Are those the OpenCL or the CUDA interop examples?