It looks like Buffer objects have the same problem. In this case they don't even have a get_buffer_info method, so there's no way to query buffer objects as far as I can see. Cheers,
David 2009/9/14 David Garcia <[email protected]> > Hi Andreas & folks, > I just downloaded and installed pyopencl 0.91 to try the changes. The code > looks cleaner now that we have constructors. Thanks a lot :) > > However, when I tried executing the code below I get an error: > > >>> ctx = cl.create_context_from_type(cl.device_type.CPU)>>> ctx.DEVICES > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File > "/Library/Python/2.6/site-packages/pyopencl-0.91-py2.6-macosx-10.6-i386.egg/pyopencl/__init__.py", > line 67, in result > % (type(self), name)) > AttributeError: <class 'pyopencl._cl.Context'> has no attribute 'DEVICES' > > If I do this then it works: > >>> ctx = cl.create_context_from_type(cl.device_type.CPU) > >>> ctx.get_info(cl.context_info.DEVICES) > [<pyopencl._cl.Device object at 0x10142f2f0>] > > Cheers, > > David >
_______________________________________________ PyOpenCL mailing list [email protected] http://tiker.net/mailman/listinfo/pyopencl_tiker.net
