Skip to content

Commit e6ebf22

Browse files
authored
CrsMatrix / BsrMatrix: set row_block_offsets when using deprecated StaticCrsGraph (kokkos#2666)
* CrsMatrix: set row_block_offsets when using deprecated StaticCrsGraph Signed-off-by: Carl Pearson <[email protected]> * BsrMatrix: set row_block_offsets when using deprecated StaticCrsGraph Signed-off-by: Carl Pearson <[email protected]> --------- Signed-off-by: Carl Pearson <[email protected]>
1 parent 7012485 commit e6ebf22

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

sparse/src/KokkosSparse_BsrMatrix.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,9 @@ class BsrMatrix {
404404
dev_config(B.dev_config),
405405
numCols_(B.numCols()),
406406
blockDim_(B.blockDim()) {
407+
#ifdef KOKKOS_ENABLE_DEPRECATED_CODE_4
408+
graph.row_block_offsets = B.graph.row_block_offsets;
409+
#endif
407410
}
408411

409412
/// \brief Construct with a graph that will be shared.

sparse/src/KokkosSparse_CrsMatrix.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,9 @@ class CrsMatrix {
421421
values(B.values),
422422
numCols_(B.numCols()),
423423
dev_config(B.dev_config) {
424+
#ifdef KOKKOS_ENABLE_DEPRECATED_CODE_4
425+
graph.row_block_offsets = B.graph.row_block_offsets;
426+
#endif
424427
}
425428

426429
//! Deep copy constructor (can cross spaces)

0 commit comments

Comments
 (0)