[petsc-users] Extracting data from a Petsc matrix

Matthew Knepley knepley at gmail.com
Sat Jul 13 11:17:32 CDT 2013


On Sat, Jul 13, 2013 at 10:52 AM, hsahasra at purdue.edu
<hsahasra at purdue.edu>wrote:

> Hi,
>
> I am working on solving a system of linear equations with square matrix.
> I'm first factoring the matrix using LU decomposition.
>
> I want to do the LU decomposition step using MAGMA on GPUs. MAGMA library
> implements LAPACK functions on a CPU+GPU based system.
>
> So my question is, how do I extract the data from a Petsc Mat so that it
> can be sent to the dgetrf routine in MAGMA.
>

http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatDenseGetArray.html

   Matt


> Is there any need for duplicating the data for this step?
>
> Thanks!
> Harshad
>
>
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130713/81303674/attachment.html>


More information about the petsc-users mailing list