The vec.getArray() functions returns a NumPy array. I think it'd be great to see a vec.getGPUArray() that returns a PyCUDA GPUArray <http://documen.tician.de/pycuda/array.html>. Thoughts?
Thanks! Ashwin On Tue, Jul 8, 2014 at 8:13 PM, Jed Brown <[email protected]> wrote: > r<#secure method=pgpmime mode=sign> > Ashwin Srinath <[email protected]> writes: > > > Hello, petsc-users, > > > > In PETSc, we have VecCUSPGetArray to access the underlying array from a > Vec > > of type 'cusp'. Does petsc4py offer something similar? If not, I'm > > considering using petsc4py and pyCUDA together in some way, and I'd be > > extremely grateful for any advice on doing that. > > It does not currently exist. What type would you like to see returned? > If we can find a sufficiently generic approach, it can be added. >
