From c8ba790b25c700b5866ce03ae31e6ff783413700 Mon Sep 17 00:00:00 2001 From: Thomas Padioleau Date: Wed, 9 Oct 2024 08:02:05 +0200 Subject: [PATCH] Rely on the user allocation (#159) --- fft/src/KokkosFFT_Transform.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fft/src/KokkosFFT_Transform.hpp b/fft/src/KokkosFFT_Transform.hpp index 7b9028c..a7b3464 100644 --- a/fft/src/KokkosFFT_Transform.hpp +++ b/fft/src/KokkosFFT_Transform.hpp @@ -332,7 +332,7 @@ void ihfft(const ExecutionSpace& exec_space, const InViewType& in, OutViewType out_conj; rfft(exec_space, in, out, new_norm, axis, n); KokkosFFT::Impl::conjugate(exec_space, out, out_conj); - out = out_conj; + Kokkos::deep_copy(exec_space, out, out_conj); } // 2D FFT