diff --git a/fft/src/KokkosFFT_Cuda_types.hpp b/fft/src/KokkosFFT_Cuda_types.hpp index df8c7249..f5a1fe62 100644 --- a/fft/src/KokkosFFT_Cuda_types.hpp +++ b/fft/src/KokkosFFT_Cuda_types.hpp @@ -67,7 +67,7 @@ struct ScopedCufftPlan { ScopedCufftPlan(ScopedCufftPlan &&) = delete; cufftHandle plan() const noexcept { return m_plan; } - void commit(const Kokkos::Cuda &exec_space) { + void commit(const Kokkos::Cuda &exec_space) const { cufftResult cufft_rt = cufftSetStream(m_plan, exec_space.cuda_stream()); KOKKOSFFT_THROW_IF(cufft_rt != CUFFT_SUCCESS, "cufftSetStream failed"); } diff --git a/fft/src/KokkosFFT_HIP_types.hpp b/fft/src/KokkosFFT_HIP_types.hpp index 85bc74d7..4be4d397 100644 --- a/fft/src/KokkosFFT_HIP_types.hpp +++ b/fft/src/KokkosFFT_HIP_types.hpp @@ -67,7 +67,7 @@ struct ScopedHIPfftPlan { ScopedHIPfftPlan(ScopedHIPfftPlan &&) = delete; hipfftHandle plan() const noexcept { return m_plan; } - void commit(const Kokkos::HIP &exec_space) { + void commit(const Kokkos::HIP &exec_space) const { hipfftResult hipfft_rt = hipfftSetStream(m_plan, exec_space.hip_stream()); KOKKOSFFT_THROW_IF(hipfft_rt != HIPFFT_SUCCESS, "hipfftSetStream failed"); }