On May 28, 2021, at 11:13 AM, Mark Adams <mfadams@lbl.gov> wrote:On Fri, May 28, 2021 at 11:57 AM Stefano Zampini <stefano.zampini@gmail.com> wrote:If you are referring to your device set values, I guess it is not currently testedNo. There is a test for that (ex5cu).I have a user that is getting a segv in MatSetValues with aijcusparse. I suspect there is memory corruption but I'm trying to cover all the bases.I have added a cuda test to ksp/ex56 that works. I can do an MR for it if such a test does not exist.See the discussions here https://gitlab.com/petsc/petsc/-/merge_requests/3411I started cleaning up the code to prepare for testing but we never finished it https://gitlab.com/petsc/petsc/-/commits/stefanozampini/simplify-setvalues-device/On May 28, 2021, at 6:53 PM, Mark Adams <mfadams@lbl.gov> wrote:Is there a test with MatSetValues and CUDA?