What about a direct access to seqaijcusp Mat? Is there a function call which return the pointed to the cusp::csr_matrix ? <br>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? <br>
what is the option -cusp_synchronize for? <br><br>Thanks. <br>------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 28 Sep 2011 23:22:02 -0500<br>
From: Barry Smith <<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>><br>
Subject: Re: [petsc-users] direct access of seqcusp Vec<br>
To: PETSc users list <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>><br>
Message-ID: <<a href="mailto:1CFA4EF7-E716-4942-BE0F-6AB2E4EF78E5@mcs.anl.gov">1CFA4EF7-E716-4942-BE0F-6AB2E4EF78E5@mcs.anl.gov</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
<br>
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<br>
<br>
Barry<br>
<br>
<br>
<br>
On Sep 28, 2011, at 10:46 PM, Shiyuan wrote:<br>
<br>
> Hi,<br>
> How can we acess the data of a seqcusp Vec directly? Is it stored as consecutive 1d array in the device momery?<br>
> Thanks.<br>
><br>
> Shiyuan<br>
<br>
<br>
<br>
------------------------------<br>