[petsc-users] Hypre runtime switch CPU/GPU

Milan Pelletier milan.pelletier at protonmail.com
Wed Oct 6 14:31:35 CDT 2021


Dear PETSc users,

Is there a way to switch a runtime setting for PETSc+Hypre to run on CPU, even when it has been compiled to allow for GPU support?
I looks like setting the matrix and vector types to respectively "seqaij" and "seq" results in GPU computation when Hypre is used as a preconditioner. I thought GPU would be used only when mat_type is set to "hypre", following the examples provided with the last release.

Thanks for the help,
Best regards,

Milan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20211006/7a68eab0/attachment.html>


More information about the petsc-users mailing list