From 944f2467750ad5155e6ea3677354824793fe8303 Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Sat, 21 Dec 2024 00:08:38 +0900 Subject: [PATCH] Add const qualifer for host transforms --- fft/src/KokkosFFT_Host_transform.hpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/fft/src/KokkosFFT_Host_transform.hpp b/fft/src/KokkosFFT_Host_transform.hpp index 5113acde..33db513e 100644 --- a/fft/src/KokkosFFT_Host_transform.hpp +++ b/fft/src/KokkosFFT_Host_transform.hpp @@ -11,37 +11,37 @@ namespace KokkosFFT { namespace Impl { template -void exec_plan(ScopedPlanType& scoped_plan, float* idata, fftwf_complex* odata, - int /*direction*/) { +void exec_plan(const ScopedPlanType& scoped_plan, float* idata, + fftwf_complex* odata, int /*direction*/) { fftwf_execute_dft_r2c(scoped_plan.plan(), idata, odata); } template -void exec_plan(ScopedPlanType& scoped_plan, double* idata, fftw_complex* odata, - int /*direction*/) { +void exec_plan(const ScopedPlanType& scoped_plan, double* idata, + fftw_complex* odata, int /*direction*/) { fftw_execute_dft_r2c(scoped_plan.plan(), idata, odata); } template -void exec_plan(ScopedPlanType& scoped_plan, fftwf_complex* idata, float* odata, - int /*direction*/) { +void exec_plan(const ScopedPlanType& scoped_plan, fftwf_complex* idata, + float* odata, int /*direction*/) { fftwf_execute_dft_c2r(scoped_plan.plan(), idata, odata); } template -void exec_plan(ScopedPlanType& scoped_plan, fftw_complex* idata, double* odata, - int /*direction*/) { +void exec_plan(const ScopedPlanType& scoped_plan, fftw_complex* idata, + double* odata, int /*direction*/) { fftw_execute_dft_c2r(scoped_plan.plan(), idata, odata); } template -void exec_plan(ScopedPlanType& scoped_plan, fftwf_complex* idata, +void exec_plan(const ScopedPlanType& scoped_plan, fftwf_complex* idata, fftwf_complex* odata, int /*direction*/) { fftwf_execute_dft(scoped_plan.plan(), idata, odata); } template -void exec_plan(ScopedPlanType& scoped_plan, fftw_complex* idata, +void exec_plan(const ScopedPlanType& scoped_plan, fftw_complex* idata, fftw_complex* odata, int /*direction*/) { fftw_execute_dft(scoped_plan.plan(), idata, odata); }