Skip to content

Commit

Permalink
Fix inconsistent IndexType (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
tpadioleau authored Oct 14, 2024
1 parent f3a3385 commit 647f235
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/src/KokkosFFT_normalization.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void normalize_impl(const ExecutionSpace& exec_space, ViewType& inout,
"KokkosFFT::normalize",
Kokkos::RangePolicy<ExecutionSpace, Kokkos::IndexType<std::size_t>>(
exec_space, 0, size),
KOKKOS_LAMBDA(const int& i) { data[i] *= coef; });
KOKKOS_LAMBDA(std::size_t i) { data[i] *= coef; });
}

template <typename ViewType>
Expand Down
2 changes: 1 addition & 1 deletion common/src/KokkosFFT_padding.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void crop_or_pad_impl(const ExecutionSpace& exec_space, const InViewType& in,
"KokkosFFT::crop_or_pad",
Kokkos::RangePolicy<ExecutionSpace, Kokkos::IndexType<std::size_t>>(
exec_space, 0, n0),
KOKKOS_LAMBDA(int i0) { out(i0) = in(i0); });
KOKKOS_LAMBDA(std::size_t i0) { out(i0) = in(i0); });
}

template <typename ExecutionSpace, typename InViewType, typename OutViewType>
Expand Down

0 comments on commit 647f235

Please sign in to comment.