MatSeqAIJGetKokkosViewWrite#

Returns a Kokkos View of the matrix nonzero values on the device for write-only access.

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.

This routine does not synchronize the device with the host first. The caller is expected to overwrite all entries in the View; reading from it may return stale or garbage data.

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

See Also#

MatSeqAIJRestoreKokkosViewWrite(), MatSeqAIJGetKokkosView(), MatSeqAIJRestoreKokkosView()

Level#

intermediate

Location#

include/petscmat_kokkos.hpp


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