MatSeqAIJRestoreKokkosView#
Returns a Kokkos View obtained with MatSeqAIJGetKokkosView().
Synopsis#
PetscErrorCode MatSeqAIJRestoreKokkosView(Mat, Kokkos::View<const PetscScalar *> *)
Not Collective, No Fortran Support
Input Parameters#
A - the matrix in type of
MATSEQAIJKOKKOSkv - the Kokkos View previously obtained with
MatSeqAIJGetKokkosView()
Notes#
If the matrix is not of type MATSEQAIJKOKKOS, an error will be raised.
When the matching MatSeqAIJGetKokkosView() returned a non-const View, the device side of the matrix is marked
modified so subsequent PETSc operations see the new values. The const overload is a no-op.
See Also#
MatSeqAIJGetKokkosView(), MatSeqAIJRestoreKokkosViewWrite(), MatSeqAIJGetKokkosViewWrite()
Level#
intermediate
Location#
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages