Hi all, Has anyone tried to use PyOpenCL with OSX10.8? For me the compilation is successful, but I'm getting the following error:
Python 2.7.3 (default, Jul 28 2012, 10:31:30) [GCC 4.2.1 Compatible Apple Clang 4.0 ((tags/Apple/clang-421.0.57))] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import pyopencl Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/bogdan/.virtualenvs/py2/lib/python2.7/site-packages/pyopencl/__init__.py", line 4, in <module> import pyopencl._cl as _cl ImportError: dlopen(/Users/bogdan/.virtualenvs/py2/lib/python2.7/site-packages/pyopencl/_cl.so, 2): Symbol not found: _clCreateProgramWithBuiltInKernels Referenced from: /Users/bogdan/.virtualenvs/py2/lib/python2.7/site-packages/pyopencl/_cl.so Expected in: flat namespace in /Users/bogdan/.virtualenvs/py2/lib/python2.7/site-packages/pyopencl/_cl.so OpenCL framework seems to be connected to the _cl.so: $ otool -L /Users/bogdan/.virtualenvs/py2/lib/python2.7/site-packages/pyopencl/_cl.so /Users/bogdan/.virtualenvs/py2/lib/python2.7/site-packages/pyopencl/_cl.so: /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 56.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0) There is also a minor issue during the compilation: clang does not quite understand the sequence "-Wl -framework OpenCL", and treats "-Wl" as if it were a warning-related option. This can be fixed by replacing '-Wl', '-framework', 'OpenCL' by '-Wl,-framework,OpenCL' in siteconf.py (or, better, somewhere in setup.py), but it does not help with the symbol problem. _______________________________________________ PyOpenCL mailing list PyOpenCL@tiker.net http://lists.tiker.net/listinfo/pyopencl