Skip to content

Commit

Permalink
make commit method const
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuuichi Asahi committed Jan 6, 2025
1 parent e3e7f0e commit 88d4c43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fft/src/KokkosFFT_Cuda_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
2 changes: 1 addition & 1 deletion fft/src/KokkosFFT_HIP_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 88d4c43

Please sign in to comment.