Skip to content

Commit

Permalink
Add const qualifer for host transforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuuichi Asahi committed Dec 20, 2024
1 parent 0c6b33b commit 944f246
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions fft/src/KokkosFFT_Host_transform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,37 +11,37 @@ namespace KokkosFFT {
namespace Impl {

template <typename ScopedPlanType>
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 <typename ScopedPlanType>
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 <typename ScopedPlanType>
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 <typename ScopedPlanType>
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 <typename ScopedPlanType>
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 <typename ScopedPlanType>
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);
}
Expand Down

0 comments on commit 944f246

Please sign in to comment.