Tpetra parallel linear algebra
Version of the Day
|
#include <Tpetra_Details_IntRowPtrHelper.hpp>
Helper for CrsMatrix BlockCrsMatrix. Converts rowptrs of the local matrix to int if it's not already int-valued, and overflow won't occur. This enables TPLs to be used in KokkosSparse::spmv and KokkosSparse::spgemm
This functionality is temporary. When KokkosKernels 4.4 is released, the default offset (rowptrs element type) in KK's ETI will switch to int, and Tpetra's matrix types will also switch to int. This will make the int rowptrs handling here unnecessary, and CrsMatrix/BlockCrsMatrix can simply store the SPMVHandle themselves.
IntLocalMatrix,: | if LocalMatrix is a CrsMatrix, this parameter is automatically a CrsMatrix with integer-typed rows pointers. Otherwise (BlockCrsMatrix), a corresponding integer-typed BlockCrsMatrix will need to be provided by the |
Definition at line 63 of file Tpetra_Details_IntRowPtrHelper.hpp.