[petsc-users] direct access of seqcusp Vec

Shiyuan gshy2014 at gmail.com
Thu Sep 29 14:56:09 CDT 2011


What about a direct access to seqaijcusp Mat? Is there a function call which
return the pointed to the cusp::csr_matrix ?
Also, i notice that, the flops count from --log_summary are different if we
switch on/off -vec_type seqcusp and -mat_type seqaijcusp? Why is that?
what is the option -cusp_synchronize for?

Thanks.
------------------------------

Message: 2
Date: Wed, 28 Sep 2011 23:22:02 -0500
From: Barry Smith <bsmith at mcs.anl.gov>
Subject: Re: [petsc-users] direct access of seqcusp Vec
To: PETSc users list <petsc-users at mcs.anl.gov>
Message-ID: <1CFA4EF7-E716-4942-BE0F-6AB2E4EF78E5 at mcs.anl.gov>
Content-Type: text/plain; charset=us-ascii


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



------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110929/1619974e/attachment.htm>


More information about the petsc-users mailing list