MatSeqAIJGetKokkosView#

Returns a Kokkos View of the matrix nonzero values on the device, with up-to-date data.

Synopsis#

Not Collective, No Fortran Support

Input Parameter#

Output Parameter#

  • kv - the Kokkos View over the matrix nonzero values on the device

Notes#

If the matrix is not of type MATSEQAIJKOKKOS, an error will be raised.

Passing in a const View enables read-only access; passing in a non-const View enables read-write access. In the read-write case, the matching MatSeqAIJRestoreKokkosView() marks the device side as modified so subsequent operations see the new values.

One must return the View with a matching MatSeqAIJRestoreKokkosView() after finishing using the View.

See Also#

MatSeqAIJRestoreKokkosView(), MatSeqAIJGetKokkosViewWrite(), MatSeqAIJGetCSRAndMemType(), MatCreateSeqAIJKokkosWithKokkosViews(), VecGetKokkosView()

Level#

intermediate

Location#

include/petscmat_kokkos.hpp


Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages