Skip to content

Commit

Permalink
Fix signed/unsigned comparison warning
Browse files Browse the repository at this point in the history
This is only hit when spmv is called with integer scalars,
which doesn't happen in our CI but does often in Tpetra.
  • Loading branch information
brian-kelley committed Mar 20, 2024
1 parent 0c49c21 commit 606a530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sparse/impl/KokkosSparse_spmv_spec.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ struct SPMV_MV<ExecutionSpace, Handle, AMatrix, XVector, YVector, true, false,
static_assert(std::is_integral_v<typename AMatrix::non_const_value_type>,
"This implementation is only for integer Scalar types.");
KokkosKernels::Experimental::Controls defaultControls;
for (typename AMatrix::non_const_size_type j = 0; j < x.extent(1); ++j) {
for (size_t 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);
typedef SPMV<ExecutionSpace, Handle, AMatrix, decltype(x_j),
Expand Down

0 comments on commit 606a530

Please sign in to comment.