Skip to content

Commit

Permalink
Use int in for-loop to avoid warning
Browse files Browse the repository at this point in the history
Co-authored-by: Damien L-G <dalg24+github@gmail.com>
  • Loading branch information
tcclevenger and dalg24 committed Jan 18, 2024
1 parent d97db06 commit f3f32c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/unit_test/TestReducers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ struct TestReducers {
Kokkos::TeamPolicy<ExecSpace>(league_size, team_size), tnf);
auto result_h =
Kokkos::create_mirror_view_and_copy(Kokkos::HostSpace(), result);
for (auto i = 0; i < result_h.extent(0); ++i) {
for (int i = 0; i < result_h.extent_int(0); ++i) {
ASSERT_EQ(result_h(i), reference_sum) << "N: " << N;
}
}
Expand Down

0 comments on commit f3f32c5

Please sign in to comment.