<span style="font-family: Arial;">Hi,<br><br>I am working on solving a system of linear equations with square matrix. I'm first factoring the matrix using LU decomposition.<br><br>I want to do the LU decomposition step using MAGMA on GPUs. MAGMA library implements LAPACK functions on a CPU+GPU based system.<br><br>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.<br><br>Is there any need for duplicating the data for this step?<br><br>Thanks!<br>Harshad<br><br><br></span>