Re: [petsc-users] kokkos gpu/cpu copy

2025-04-05 Thread Steven Dargaville
Perfect, that seems to have fixed the issue. Thanks for your help! Steven On Thu, 3 Apr 2025 at 04:52, Junchao Zhang wrote: > Hi, Steven, >Thanks for the test, which helped me easily find the petsc bug. I have > a fix at > https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/merge_

Re: [petsc-users] kokkos gpu/cpu copy

2025-04-02 Thread Junchao Zhang
Hi, Steven, Thanks for the test, which helped me easily find the petsc bug. I have a fix at https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/merge_requests/8272__;!!G_uCfscf7eWS!dEECoiAgY3gt4OtiEoIEoGuacFHbL1whaXexphGauRP-CI_sNm-iHlr3Aqh1kQRUkVGWcgNgtRJsaiMGB0Mt_63EjYXr$ . VecKok

[petsc-users] kokkos gpu/cpu copy

2025-04-02 Thread Steven Dargaville
Hi I have some code that does a solve with a PCMAT preconditioner. The mat used is a shell and inside the shell MatMult it calls VecPointwiseDivide with a vector "diag" that is the diagonal of a matrix assigned outside the shell. If I use mat/vec type of cuda, this occurs without any gpu/cpu copi