Skip to content

Commit

Permalink
remove unused lines for HIP backend
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuuichi Asahi committed Jul 3, 2024
1 parent 2c616d2 commit 5b31df2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 3 additions & 1 deletion fft/src/KokkosFFT_HIP_plans.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ void _destroy_plan(std::unique_ptr<PlanType>& plan) {
template <typename ExecutionSpace, typename InfoType,
std::enable_if_t<std::is_same_v<ExecutionSpace, Kokkos::HIP>,
std::nullptr_t> = nullptr>
void _destroy_info(InfoType& plan) {}
void _destroy_info(InfoType&) {
// not used, no finalization is required
}
} // namespace Impl
} // namespace KokkosFFT

Expand Down
7 changes: 0 additions & 7 deletions fft/src/KokkosFFT_ROCM_plans.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ auto _create(const ExecutionSpace& exec_space, std::unique_ptr<PlanType>& plan,
static_assert(
InViewType::rank() >= fft_rank,
"KokkosFFT::_create: Rank of View must be larger than Rank of FFT.");
const int rank = fft_rank;

constexpr auto type =
KokkosFFT::Impl::transform_type<ExecutionSpace, in_value_type,
Expand All @@ -114,11 +113,6 @@ auto _create(const ExecutionSpace& exec_space, std::unique_ptr<PlanType>& plan,
int fft_size = std::accumulate(fft_extents.begin(), fft_extents.end(), 1,
std::multiplies<>());

auto* idata = reinterpret_cast<typename KokkosFFT::Impl::fft_data_type<
ExecutionSpace, in_value_type>::type*>(in.data());
auto* odata = reinterpret_cast<typename KokkosFFT::Impl::fft_data_type<
ExecutionSpace, out_value_type>::type*>(out.data());

// For the moment, considering the contiguous layout only
// Create plan
auto in_strides = compute_strides<int, std::size_t>(in_extents);
Expand Down Expand Up @@ -211,7 +205,6 @@ template <typename ExecutionSpace, typename InfoType,
void _destroy_info(InfoType& execution_info) {
rocfft_execution_info_destroy(execution_info);
}

} // namespace Impl
} // namespace KokkosFFT

Expand Down

0 comments on commit 5b31df2

Please sign in to comment.