On Tue, Apr 12, 2011 at 09:40, Fabrizio Polo <[email protected]> wrote: > Help! I'm trying to get PyOpenCL to work on Snow Leopard and I'm having > some real problems. I would describe it but the problems are exactly the > same as described here: > http://www.mail-archive.com/[email protected]/msg00209.html > Everything seems to work ok. It builds. But then I can't import pyopencl. > This is what I get: > >>>> import pyopencl > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "pyopencl/__init__.py", line 3, in <module> > import pyopencl._cl as _cl > ImportError: No module named _cl >>>> quit()
What Python are you using? > > Now, I'm trying to follow the directions given in that thread on how to get > around this problem. See here: > http://www.mail-archive.com/[email protected]/msg00212.html > > Step 1 is to start my mac in 64 bit mode. (I would like to know why this is > important). I can't manage to do this. I've tried holding 6, 4 while > booting until the Apple logo. I've tried to check my firmware > interface: ioreg -l -p IODeviceTree | grep firmware-abi and I get back > EFI64 (which seems good). I have a White MacBook with a Core 2 Duo 2.2ghz. > Everything seems to indicate that I should be able to start in 64 bit mode, > and yet Apple "doesn't support it" ? I've even tried some third party > software utility that will let you boot in 64 bit mode. It doesn't work. > Other people are telling me I need to edit some file with a hex editor. Those people are correct: OSX has a whitelist of macs that can boot in 64b kernel mode, and it only includes 'Pro' macs, but all macs these days technically will work. You have to edit that whitelist (that's the hex editor bit) to enable 64b kernel mode on other machines. That said, I have no idea why you would have to start the OSX kernel in 64b mode. You can switch which mode Python runs in with the environment variable: VERSIONER_PYTHON_PREFER_32_BIT=yes # for 32b VERSIONER_PYTHON_PREFER_32_BIT=no # for 64b I (just now) successfully built/run current git master on OSX 10.6.7 with shipped boost and no extra pyopencl configuration on system Python 2.6.1. It works just fine in 32b and 64b mode (all booted into 32b OSX kernel). I also built against homebrew (see mxcl/homebrew on github) boost, which is x86_64 only, and that has also worked fine, again with the system Python. -MinRK > > I'm very confused and all I want to do is write some OpenCL kernels!!! > > preemptive thanks for any help, I'm really in over my head here, > > Fabrizio Polo > > _______________________________________________ > PyOpenCL mailing list > [email protected] > http://lists.tiker.net/listinfo/pyopencl > > _______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
