From 319cb36103964947cae840aea8e6a8ecbb8e5dfc Mon Sep 17 00:00:00 2001 From: Ulrich Hetmaniuk Date: Tue, 11 Jan 2022 13:59:36 -0700 Subject: [PATCH] Remove test for extent = 1 as subview of LayoutRight yields LayoutStride --- .../impl/KokkosSparse_spmv_bsrmatrix_spec.hpp | 26 +++++-------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/src/sparse/impl/KokkosSparse_spmv_bsrmatrix_spec.hpp b/src/sparse/impl/KokkosSparse_spmv_bsrmatrix_spec.hpp index 5a0907dd7a..cbbbd39f12 100644 --- a/src/sparse/impl/KokkosSparse_spmv_bsrmatrix_spec.hpp +++ b/src/sparse/impl/KokkosSparse_spmv_bsrmatrix_spec.hpp @@ -288,27 +288,13 @@ struct SPMV_MV_BSRMATRIX impl_type; for (typename AMatrix::non_const_size_type j = 0; j < X.extent(1); ++j) { - auto x_j = Kokkos::subview(X, Kokkos::ALL(), j); - auto y_j = Kokkos::subview(Y, Kokkos::ALL(), j); + const auto x_j = Kokkos::subview(X, Kokkos::ALL(), j); + auto y_j = Kokkos::subview(Y, Kokkos::ALL(), j); impl_type::spmv_bsrmatrix(controls, mode, alpha, A, x_j, beta, y_j); } }