Skip to content

Commit

Permalink
Merge pull request #1697 from cwpearson/fix/kk-1696
Browse files Browse the repository at this point in the history
cast Kokkos::Impl::integral_constant to int
  • Loading branch information
lucbv authored Feb 23, 2023
2 parents 6d73c14 + 8aa7fa2 commit 5153da3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/src/KokkosKernels_PrintUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ inline std::enable_if_t<idx_array_type::rank >= 2> kk_print_1Dview(
return;
}
os << "[" << view.extent(0);
for (int i = 1; i < idx_array_type::rank; ++i) {
// ::rank is a Kokkos::...::integral_constant, not appropriate for `i`
for (int i = 1; i < int(idx_array_type::rank); ++i) {
os << "x" << view.extent(i);
}
os << " multi-vector]" << std::endl;
Expand Down

0 comments on commit 5153da3

Please sign in to comment.