[petsc-users] Ghost vector with MPIKOKKOS under DMSwarm

MIGUEL MOLINOS PEREZ mmolinos at us.es
Mon Jan 19 06:56:12 CST 2026


Dear all,

I have a question about using DMSwarm data with Kokkos-enabled vectors.

My particle data (including ghost particles) are stored in a DMSwarm and for solver purposes I generate PETSc vectors using VecCreateGhostWithArray. I would like to use VecMPIKOKKOS for MPI+GPU computations. Am I correct that DMSwarm field memory cannot be directly wrapped into a VecMPIKOKKOS using VecCreateGhostWithArray or VecPlaceArray? Any idea on how to proceed?

Thanks in advance.

Best,

Miguel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20260119/ba1b8d6c/attachment.html>


More information about the petsc-users mailing list