Skip to content

Commit

Permalink
fix: in_tmp type based on review
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuuichi Asahi committed Oct 30, 2024
1 parent 692b765 commit 1f2c66c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions fft/src/KokkosFFT_Plans.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,14 +315,14 @@ class Plan {
using ManagableOutViewType =
typename KokkosFFT::Impl::manageable_view_type<OutViewType>::type;

// FIXME in_tmp should be in InViewType,
// We will merge crop_or_pad and transpose, and remove the need for in_tmp
// InViewType in_tmp;
ManagableInViewType in_tmp;
ManagableInViewType in_s;
InViewType in_tmp;
if (m_is_crop_or_pad_needed) {
using LayoutType = typename ManagableInViewType::array_layout;
ManagableInViewType const in_s(
in_s = ManagableInViewType(
"in_s", KokkosFFT::Impl::create_layout<LayoutType>(m_shape));
// ManagableInViewType const in_s(
// "in_s", KokkosFFT::Impl::create_layout<LayoutType>(m_shape));
KokkosFFT::Impl::crop_or_pad(m_exec_space, in, in_s);
in_tmp = in_s;
} else {
Expand Down

0 comments on commit 1f2c66c

Please sign in to comment.