demo.py fails @ queue = cl.CommandQueue()
by Mclendon, William C III
I'm trying to run some demos of PyOpenCL under OSX Snow Leopard (10.6.8) and the demos aren't working for me...
I have tried both the macports installation of py26-pyopencl and have tried building from source and both do the same thing:
160 [examples ] > python demo.py
 <pyopencl.Device 'ATI Radeon HD 5870' at 0x1021b00>
 <pyopencl.Device 'Intel(R) Xeon(R) CPU X5650 @ 2.67GHz' at 0x1020400>
Choice, comma-separated :
Traceback (most recent call last):
File "demo.py", line 9, in <module>
queue = cl.CommandQueue(ctx)
pyopencl.LogicError: CommandQueue failed: invalid value
Anyone know if there's some extra thing I need to do or might I be missing something? As far as I can tell, this should work with the opencl that comes with the osx developer tools...