[petsc-users] direct access of seqcusp Vec

Barry Smith bsmith at mcs.anl.gov
Wed Sep 28 23:22:02 CDT 2011


VecCUSPGetArrayReadWrite()  gives you access to the CUSP array that lives on the device memory. You can then do things to it using the CUSP header file definitions

   Barry



On Sep 28, 2011, at 10:46 PM, Shiyuan wrote:

> Hi, 
>    How can we acess the data of a seqcusp Vec directly? Is it stored as consecutive 1d array in the device momery? 
> Thanks.
> 
> Shiyuan    



More information about the petsc-users mailing list