From 88d4c43a08ea49cfcb6da9c2a098b0c3d69e7965 Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Mon, 6 Jan 2025 14:34:38 +0900 Subject: [PATCH] make commit method const --- fft/src/KokkosFFT_Cuda_types.hpp | 2 +- fft/src/KokkosFFT_HIP_types.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"); }