Antoine Martin <[email protected]> writes: > Does anyone know why this works: > python -c "import gtk;import > pyopencl;context=pyopencl.create_some_context(False);pyopencl.Program(context,'').build()" > > But this does not: > python -c "import > pyopencl;context=pyopencl.create_some_context(False);pyopencl.Program(context,'').build();import > gtk" > > It fails with: > Traceback (most recent call last): > File "<string>", line 1, in <module> > File "/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py", > line 40, in <module> > from gtk import _gtk > ImportError: dlopen: cannot load any more object with static TLS > > Note: it is the build() call that ends up triggering this TLS conflict. > Take it out and it works. > The same thing happens with PyCUDA. > > Re-ordering the imports worked around this particular issue, but I seem > to be getting other issues when I do that ('atexit' not firing and other > weirdness). > So this may have just papered over the real issue. How would I fix that? > (preferably without touching pygtk2...)
What OpenCL implementation are you using (sounds like Nvidia...)? Can you try another (say AMD CPU)? Check here for instructions: http://wiki.tiker.net/OpenCLHowTo Andreas
pgpaL1nYBBU0y.pgp
Description: PGP signature
_______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
