Skip to content

Commit

Permalink
fix: fftwHandle type in SYCL types
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuuichi Asahi committed Dec 4, 2024
1 parent fccb1dd commit 1503fc8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions fft/src/KokkosFFT_SYCL_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ struct FFTPlanType<ExecutionSpace, T1, Kokkos::complex<T2>> {
static constexpr oneapi::mkl::dft::domain dom =
oneapi::mkl::dft::domain::REAL;

using fftwHandle = ScopedFFTWPlanType<ExecutionSpace, T1, T2>;
using fftwHandle =
ScopedFFTWPlanType<ExecutionSpace, T1, Kokkos::complex<T2>>;
using onemklHandle = oneapi::mkl::dft::descriptor<prec, dom>;
using type = std::conditional_t<
std::is_same_v<ExecutionSpace, Kokkos::Experimental::SYCL>, onemklHandle,
Expand All @@ -126,7 +127,8 @@ struct FFTPlanType<ExecutionSpace, Kokkos::complex<T1>, T2> {
static constexpr oneapi::mkl::dft::domain dom =
oneapi::mkl::dft::domain::REAL;

using fftwHandle = ScopedFFTWPlanType<ExecutionSpace, T1, T2>;
using fftwHandle =
ScopedFFTWPlanType<ExecutionSpace, Kokkos::complex<T1>, T2>;
using onemklHandle = oneapi::mkl::dft::descriptor<prec, dom>;
using type = std::conditional_t<
std::is_same_v<ExecutionSpace, Kokkos::Experimental::SYCL>, onemklHandle,
Expand All @@ -144,7 +146,8 @@ struct FFTPlanType<ExecutionSpace, Kokkos::complex<T1>, Kokkos::complex<T2>> {
static constexpr oneapi::mkl::dft::domain dom =
oneapi::mkl::dft::domain::COMPLEX;

using fftwHandle = ScopedFFTWPlanType<ExecutionSpace, T1, T2>;
using fftwHandle = ScopedFFTWPlanType<ExecutionSpace, Kokkos::complex<T1>,
Kokkos::complex<T2>>;
using onemklHandle = oneapi::mkl::dft::descriptor<prec, dom>;
using type = std::conditional_t<
std::is_same_v<ExecutionSpace, Kokkos::Experimental::SYCL>, onemklHandle,
Expand Down

0 comments on commit 1503fc8

Please sign in to comment.