[petsc-users] Using MAGMA subroutines instead of LAPACK in SLEPc

Matthew Knepley knepley at gmail.com
Thu Jun 20 15:42:54 CDT 2013


On Thu, Jun 20, 2013 at 10:24 PM, Harshad Sahasrabudhe
<hsahasra at purdue.edu>wrote:

> Hi,
>
> I'm trying to run the SLEPc Eigensolver on a machine with CPUs & GPUs. I
> found that a package called MAGMA implements LAPACK functions on
> heterogeneous systems (CPU + GPU). MAGMA has functions very similar to
> LAPACK so that we can go and replace a call to a LAPACK function with a
> call to a MAGMA function.
>
> Now my question is, where can I apply such a hack inside SLEPc/PETSc so
> that the Eigensolver in SLEPc actually uses MAGMA functions instead of
> LAPACK functions? I'm using the PETSc 3.3-p6 and SLEPc 3.3-p3 versions.
>
> Any help would be greatly appreciated!
>

You need to do this in PETSc configure. Use
--with-f-blas-lapack-lib=[<MAGMA libs>]. We have never tried this, so I
don't
know if they obey the entire interface.

  Thanks


> Thanks and Regards,
> 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/20130620/7adb0175/attachment.html>


More information about the petsc-users mailing list