viennacl / pyviennacl-dev

Developer repository for PyViennaCL. Visit http://viennacl.sourceforge.net/ for latest releases.
MIT License
32 stars 6 forks source link

MemoryHandle.buffer() (pyviennacl/backend.py:117) using cl.MemoryObject.from_int_ptr instead of cl.Buffer.from_int_ptr #40

Open RobinKa opened 8 years ago

RobinKa commented 8 years ago

MemoryHandle.buffer() tries to use cl.MemoryObject.from_int_ptr which doesn't exist. Instead cl.Buffer.from_int_ptr should be used (see here).

inducer commented 8 years ago

Well, to be fair, it probably worked in PyOpenCL pre-2015.2, before the switch to CFFI. I can try to bring compatibility back if it's essential...