Hi,

I am trying to create & pass a sub region of an OpenCL buffer to my kernel, but 
it is not working.  It seems, that even though get_sub_region is document as a 
method of the Buffer class, this is not present in my version of pyopencl.  The 
error I am receiving is:

AttributeError: <class 'pyopencl._cl.Buffer'> has no attribute 'get_sub_region'

and, indeed, there doesn't appear to be any method with that name in the 
version I am using:

In [27]: pyopencl.Buffer.
pyopencl.Buffer.__abstractmethods__  pyopencl.Buffer.__module__
pyopencl.Buffer.__base__             pyopencl.Buffer.__mro__
pyopencl.Buffer.__bases__            pyopencl.Buffer.__name__
pyopencl.Buffer.__basicsize__        pyopencl.Buffer.__ne__
pyopencl.Buffer.__call__             pyopencl.Buffer.__new__
pyopencl.Buffer.__class__            pyopencl.Buffer.__reduce__
pyopencl.Buffer.__delattr__          pyopencl.Buffer.__reduce_ex__
pyopencl.Buffer.__dict__             pyopencl.Buffer.__repr__
pyopencl.Buffer.__dictoffset__       pyopencl.Buffer.__setattr__
pyopencl.Buffer.__doc__              pyopencl.Buffer.__sizeof__
pyopencl.Buffer.__eq__               pyopencl.Buffer.__str__
pyopencl.Buffer.__flags__            pyopencl.Buffer.__subclasscheck__
pyopencl.Buffer.__format__           pyopencl.Buffer.__subclasses__
pyopencl.Buffer.__ge__               pyopencl.Buffer.__subclasshook__
pyopencl.Buffer.__getattr__          pyopencl.Buffer.__weakref__
pyopencl.Buffer.__getattribute__     pyopencl.Buffer.__weakrefoffset__
pyopencl.Buffer.__gt__               pyopencl.Buffer.get_host_array
pyopencl.Buffer.__hash__             pyopencl.Buffer.get_info
pyopencl.Buffer.__init__             pyopencl.Buffer.hostbuf
pyopencl.Buffer.__instancecheck__    pyopencl.Buffer.mro
pyopencl.Buffer.__itemsize__         pyopencl.Buffer.obj_ptr
pyopencl.Buffer.__le__               pyopencl.Buffer.release
pyopencl.Buffer.__lt__   

I am using pyopencl version 2011.1.2 on OSX Snow Leopard.  Am I somehow doing 
something wrong, or is this method for some reason not available?

Thanks,
Dustin Arendt
_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to