Skip to content

Commit

Permalink
KokkoSparse::spmv::bsrmatrix_impl.hpp: don't consider constness for s…
Browse files Browse the repository at this point in the history
…calarness
  • Loading branch information
cwpearson committed Aug 16, 2023
1 parent 2a4a378 commit 9b337b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sparse/impl/KokkosSparse_spmv_bsrmatrix_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ class TensorCoresAvailable {

template <typename T>
constexpr static bool is_scalar() {
return std::is_scalar_v<T> ||
std::is_same_v<T, Kokkos::Experimental::half_t>;
return std::is_scalar_v<std::remove_cv_t<T>> ||
std::is_same_v<std::remove_cv_t<T>, Kokkos::Experimental::half_t>;
}

public:
Expand Down

0 comments on commit 9b337b4

Please sign in to comment.