[petsc-dev] Matshell with PETSs solvers using GPU

Han Tran hantran at cs.utah.edu
Fri Nov 4 09:45:42 CDT 2022


Hi,

I am aware that PETSc recently supports solvers on GPU. I wonder whether PETSc supports MatShell with GPU solvers, i.e., I have a user-defined MatMult() function residing on the device, and I want to use MatShell directly with PETSc GPU solvers without any transfer back and forth between host and device. If this is possible, could you let me know how to do this (an example, if any, would be very appreciated)?

Thank you!
Han


More information about the petsc-dev mailing list