[petsc-users] Question on using petsc matrix with hip

Junchao Zhang junchao.zhang at gmail.com
Sun Feb 4 22:30:25 CST 2024


On Sun, Feb 4, 2024 at 9:57 PM Runfeng Jin <jsfaraway at gmail.com> wrote:

> Hi,
>
>     I see in document the mat status in hip is still in development, but I
> see some hip interface in MAT. I want to use petsc with primme(eigenvalue
> solver) to diagonalize the matrix in AMD GPU. The primme need user to
> provide MV (matrix-vector operation in y=AX) in GPU, and I want to use
> PETSc to realize it. Can PETSc support this in hip?  thank you!
>
petsc/hip backend supports sparse matrix vector multiplication (via AMD
hipsparce).  The matrix has to be in the CSR format (i.e., MATAIJ in
petsc).

>
> Runfeng Jin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240204/addad9b8/attachment.html>


More information about the petsc-users mailing list